Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all 10848 articles
Browse latest View live

Why can't build BasicPlugin when use AFExecuteThisScript?

$
0
0

If i add this code to BasicPlugin, can't build ok.

   char jsScript[1025];

  sprintf(jsScript, "var a = this.addAnnot({page:%d,type:'FreeText'}); a.name='%s';a.contents='%s';a.textFont=font.Helv;a.textSize=12;a.rect=[%d,%d,%d,%d]; a.fillColor=color.white; a.textColor=color.%s; a.width=0; a.alignment=0;",i,"txt",""+j, bbox.left,bbox.top, bbox.right, bbox.bottom,"red");

     AFExecuteThisScript (myPDDoc , jsScript, NULL);

log:

e:\acrobat 10 sdk\version 1\pluginsupport\samples\basicplugin\sources\basicplugin.cpp(98) : warning C4101: 'ptr' : unreferenced local variable

e:\acrobat 10 sdk\version 1\pluginsupport\samples\basicplugin\sources\basicplugin.cpp(97) : warning C4101: 'annot' : unreferenced local variable

e:\acrobat 10 sdk\version 1\pluginsupport\samples\basicplugin\sources\basicplugin.cpp(99) : warning C4101: 'buf' : unreferenced local variable

e:\acrobat 10 sdk\version 1\pluginsupport\samples\basicplugin\sources\basicplugin.cpp(100) : warning C4101: 'atom' : unreferenced local variable

e:\acrobat 10 sdk\version 1\pluginsupport\samples\basicplugin\sources\basicplugin.cpp(96) : warning C4101: 'i2' : unreferenced local variable

Generating Code...

Compiling manifest to resources...

Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0

Copyright (C) Microsoft Corporation. All rights reserved.

Linking...

  Creating library .\Debug/BasicPlugin.lib and object .\Debug/BasicPlugin.exp

BasicPlugin.obj : error LNK2001: unresolved external symbol _gAcroFormHFT

Debug/BasicPlugin.api : fatal error LNK1120: 1 unresolved externals

Creating browse information file...

Microsoft Browse Information Maintenance Utility Version 9.00.21022

Copyright (C) Microsoft Corporation. All rights reserved.

 

 

If i remove row    AFExecuteThisScript (myPDDoc , jsScript, NULL); , it  build ok,

Why can't build BasicPlugin when use AFExecuteThisScript?


Re: Why can't build BasicPlugin when use AFExecuteThisScript?

Re: Why can't build BasicPlugin when use AFExecuteThisScript?

How can get coordinates of PDEElement?

$
0
0

This is my code add a Rectangle to PDEElement:

AVRect rect;

PDEElementGetBBox (pdeElement, &bbox);

AVPageViewRectToDevice (pageView, &bbox, &rect);

sprintf(jsScript, "var a = this.addAnnot({page:%d,type:'Square'}); a.name='%s';a.rect=[%d,%d,%d,%d];  ",i,"P"+j, rect.left ,rect.top , rect.right, rect.bottom);   AFExecuteThisScript (myPDDoc , jsScript, NULL);

 

Position of Rectangle  in Result not correct.

How can get coordinates of PDEElement?

Thanks all.

Re: How can save a PDEElement to a image?

$
0
0

OK, but that feature doesn't use PDE APIs to do the job.

 

But if you are doing that, then you can use simply coerce a PDEElement of type pdeImage to a PDEImage and use the appropriate APIs

Re: How can get coordinates of PDEElement?

$
0
0

Why are you converting to device rects.  Skip that step and you should be fine.

 

BUT if you are already using the C++ APIs, why switch to JavaScript?  Why not do all this using PD calls such as PDPageAddAnnot?

Re: How can get coordinates of PDEElement?

$
0
0

I'm sorry, I had try this code and it add ok, but not exist color, so i can't see rectangle.

PDAnnot annot;

//Create a PDAnnot object

  annot = PDPageCreateAnnot (pdPage, ASAtomFromString("Square"),&bbox);

  PDPageAddAnnot(pdPage,-2, annot);

How set boder color of rectangle?

Re: How can get coordinates of PDEElement?


Re: How can save a PDEElement to a image?

$
0
0

PDEImage and use the appropriate APIs

Has API support ?

Can you give me a refer document ?

Re: How can save a PDEElement to a image?

$
0
0

The same document you should already be using, plugin API.

License for SDK use in company’s internal application

$
0
0

  Hi,

 

I have a question regarding the Acrobat Software Developer Kit and Adobe Acrobat user licenses.

 

We developed a text analysis software prototype for the internal use of one of our client.

For one specific step of the process, we need to extract text from pdf to html : Our solution uses Acrobat SDK IAC to automate this exportation process.

 

We now want to deploy the software on the company’s information system:

* The software will be hosted on the company’s internal servers.

* The frequency of Acrobat IAC API calls is estimated to be 20 calls per day.

 

I would like to know what license is needed for this kind of use:

* Is it possible to use a regular user license for this purpose or do we need a specific one for professional uses ?

* Is the number of calls to the API limited with the regular license ?

 

Thank you in advance for your answer.

Best regards 

Re: License for SDK use in company’s internal application

$
0
0

Using the Acrobat SDK requires Adobe Acrobat. You cannot run Acrobat on a server (or in a server-like environment) - details are in the EULA that you accepted when you installed Acrobat. This means that you cannot use your application - which would require Acrobat - on a server. There is no server license for Acrobat. Besides the legal issue, Acrobat is not suitable for server use from a technical point of view.

Re: How can get coordinates of PDEElement?

$
0
0

You are looking at the values as floating point – but they are NOT, they are Fixed (ASFixed).  If you look at them as fixed point, they will be fine.

I need to access Doc object, out side of PDF.

$
0
0

My PDF form is displaying into Frame. I need to submit PDF form from outside of PDF and post data into particular action in PHP. I know one function Doc.submitForm() but currently I am not able to access Doc object outside of PDF.

 

Can you please help me?

 

[Moved from the Forum Comments forum (which is for issues regarding these forums themselves) and into a PDF-specific forum - moderator]

Re: VBA createChild Bookmark Action not working

$
0
0

I actually ended up fixing the issue. It was generating the bookmarks successfully but the action I was assigning to each individual bookmark was non existent. Turns out the PDF generated out of Microsoft Access was in PDF/A format which I believe was the issue with the actions. Thanks!


Re: I need to access Doc object, out side of PDF.

$
0
0

You need to use the postMessage bridge to communication between the PDF and your hosting page.

Re: I need to access Doc object, out side of PDF.

How can saveAs a PDDoc to image file?

$
0
0

My code process save PDDoc to Image:

PDDoc NewDoc = PDDocCreate ();

ASPathName imagepath ="E:\\Acrobat 10 SDK\\TestData\\Image.png"

imagepath = ASFileSysCreatePathName(NULL, ASAtomFromString("Cstring"),  str, 0);

 

AVDocOpenFromPDDoc(NewDoc, NULL);

PDDocSave(NewDoc, PDSaveFull | PDSaveLinearized, imagepath, NULL, NULL, NULL);

But result Image.png error can't  open.

How can saveAs a PDDoc to image file?

Thanks all.

Re: How can saveAs a PDDoc to image file?

$
0
0

Image.png is a PDF document, not a image file.

Re: Acrobat Reader DC Command line Options

$
0
0

I sent hours trying to get Datalogics pdf components to work. First their website doesn't have any pricing or buy button, which is any annoying time waster. Then once you download the evaluation version, you discover that you can't actually use it until someone in sales mails you a eval.lic file. Other companies are able to provide downloadable evaluations versions which actually work. So you might find that you get more customers if you can do the same.

Exception thrown: 'System.TypeInitializationException' in Datalogics.PDFL.dll

An exception occurred. Here is the related information:

System.TypeInitializationException: The type initializer for 'Datalogics.PDFL.PDFLPINVOKE' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'DL150PDFLPINVOKE': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

   at Datalogics.PDFL.PDFLPINVOKE.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_PDFL(Excep tionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, ExceptionDelegate invalidCastDelegate, ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate systemExceptionDelegate)

   at Datalogics.PDFL.PDFLPINVOKE.SWIGExceptionHelper..cctor()

   --- End of inner exception stack trace ---

   at Datalogics.PDFL.PDFLPINVOKE.SWIGExceptionHelper..ctor()

   at Datalogics.PDFL.PDFLPINVOKE..cctor()

   --- End of inner exception stack trace ---

   at Datalogics.PDFL.PDFLPINVOKE.new_Library__SWIG_0()

   at Datalogics.PDFL.Library..ctor()

   at PDFutil.PDFutil.DatalogicsPrintPDF(Stream PDFtoPrint, String orderId) in \\QUEENOFHEARTS\Users$\max\My Documents\github\roboAnna2\LabelPrint\C#\PDFutil\PDFutil.cs:line 190statusDesc OK

post response headers

Access-Control-Allow-Origin: *

 

Finally, I got my eval.lic file, but still it doesn't work. There's no docs on how to install the components. I added it as a reference to my C# project like any other component, but seems it can't find some sidecar files. After many hours I give up.

Viewing all 10848 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>