Quantcast
Channel: Adobe Community : All Content - Acrobat SDK
Viewing all 2571 articles
Browse latest View live

How to read and update fields in Dynamic XFA forms

$
0
0

Hi,

 

I have been trying for a long time (with Adobe Acrobat Pro version X) to find a proper way to programmatically read and update field values in pdf documents with dynamic xfa forms.

 

My ultimate goal is to perform this from an external application, but as a first step I would be very happy to learn how - and be able to test this with JavaScript from the debugger window in Acrobat.

 

I would be very thankful for any tips that could help me moving on - e.g.. through simple example code, reference to documentation, or other sort of information.

 

Thanks a lot

Olav


seperation preview snip shows wrong color

$
0
0

Hi

     We would like to get the color in pdf like "output preview" in acrobat 11. by following the seperation preview snip in sdk sample we developed a plugin in which the RGB is returned as CMYK. Is anything  i am missing?Sample.png

Cannot read field value back in from Pre Populated PDF form signed through Echosign

$
0
0

Good Afternoon,

 

I am writing on behalf of my client we have a small issue with documents we are sending via EchoSign that we need guidance with please.

 

We are pre-populating a pdf document with 78 values and options for the values

Screen.jpg

 

We can send the document for singing via EchoSign but when we get the signed PDF back only 7 fields on the document are accessible via code – we have checked the options on each of the signature fields to ensure that they aren’t set to “flatten” the file after the signature has been entered onto the document and they don’t seem to have set to flatten.

 

We need the ability to read every field back in as the signer of the document may well have changed field(s) and we need to capture that.

 

The 7 fields we can access in the file are the documents signature (the hidden one) and all 6 of the “checkboxes” that are on the document.

 

Something Else that is bizarre is that fact that we cannot save a copy of the signed document as XML but we can save as an excel copy..

 

Can somebody please help?

Many Thanks

Using Visual Studio 2012 c#

$
0
0

Hi

I am wanting to confirm that with the SDK I can use Visual Studio 2012 c# to merge several PDF's and create watermarks saving out to another PDF

 

Cheers

Acrobat Exit (AcroExch.App)

$
0
0

Hi,

 

Does somebody know why the application Acrobat is always running after this script ??? The method Exit seems to be without effects...

 

MyObjectAVDOC = CreateObject("AcroExch.AVDoc")

MyObjectPDDOC = CreateObject("AcroExch.PDDoc")

MyObjectAPP = CreateObject("AcroExch.App")

MyObjectAVDOC>>Open(MyPdfFile,"")

MyObjectPDDOC = MyObjectAVDOC>>GetPDDoc()

MyObjectPDDOC>>save(1,MyPdfFile)

MyObjectAVDOC>>Close(1)

MyObjectAPP>>Exit()

 

Regards,

 

Antoine

What is the correct way to determine the install location of Acrobat/Reader to install plugins?

$
0
0

We were previously using the following registry key to determine where we need to install our Acrobat/Reader plugin.

 

HKEY_LOCAL_MACHINE\Software\Adobe\Adobe Acrobat\%d\InstallPath  

HKEY_LOCAL_MACHINE\Software\Adobe\Acrobat Reader\%d\InstallPath  

(and append \plugin_ins to that result)

 

With Acrobat DC, I no longer see that registry key.

 

I was planning on changing our code to instead look here to determine the install paths:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Acrobat.exe\Path

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AcroRd32.exe\Path

 

Is this the recommended way of determining where to install plugins? I would rather not have our installation break when they update Acrobat/Reader the next time (for example maybe in the future they decide to change the executable name...)

Function MenuItemExecute("DIGSIG:CompareDocuments") not wroking when running in server

$
0
0

Hi guys,

 

Someone has any idea why this function wouldn't work when running on a WCF web service deployed in a server?

 

when I run it locally it runs just fine, does the job it is supposed to do. But when I deploy the app into a server, it gets 'stuck' in this call MenuItemExecute("DIGSIG:CompareDocuments").

 

Anyone has any idea what could possibly be wrong?

 

In both machines, local and server I have Adobe XI Pro installed.

 

Thanks,

Marco

HitTest not returning a valid position when the render mode is Verticies?

$
0
0

The hitInfo object in the mouseEvent callback is always giving me a position of (0, 0, 0) when the render mode is Verticies or Shade Verticies. If I change the render mode to Solids I get a valid position. Any ideas?


Need to hide/refrain all tools/controls etc from adobe reader plugin for Internet Explorer

$
0
0

System:  

Windows 7

Internet Explorer 9

Adobe Reader DC

 

I'm developing a software where Internet Explorer 9.0 is embeded. User should not be allowed to have access to the filesystem through the software. With the new toolbars/controls on adobe reader plugin he/she can easily do this with a click of a button.

I want user to be able to read a pdf on browser but not being able to save/print etc and idealy i would like all toobars/controls/panes etc being hidden by default.

 

I checked here http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/AcrobatDC_pdf_open_par ameters.pdf but a really strange thing happens. When I use the parameters on the url (#toolbar=0&scrollbar=0&navpanes=0&pagemode=none) everything works fine. But since i can't detect every random url that may contain a pdf file and add the parameters, i tried to insert them as parameters whenever Adobe Acrobat Reader DC opens. So i edited:

 

HKEY_CLASSES_ROOT\AcroExch.Document.DC\shell\Read\command     DeafultValue = "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" /A "statusbar=0 navpanes=0 toolbar=0 scrollbar=0 pagemode=none" "%1"

 

But it does not work!! Am i doing sth wrong? Is there another solution to this major security issue?

 

After that i tried removing only the buttons that give access to the file system through Adobe Reader's preferences, but changes can not be made permanently.

 

Could someone help me pls?

 

PS: returning to another version of Adobe Reader is also acceptable if it solves the problem, but i can not find any version erlier than 10 to download

Issue using Adobe Acrobat DC Browser Control Implementation in Visual Studio 2013

$
0
0

Hello,

 

I'm trying to use the Acrobat DC Browser control in a WinForms app I made for work.  The control I used before was the Adobe Reader Control but I'm not seeing that anymore in my COM elements.  When I try to use the Acrobat DC Browser Control it exceptions out tell me that it failed to create tcomponent AxHost, Library not registered, error 0X8002801D (type_e_libnotregistered).  Is there a way I can get this library registered with use in VS 2013?  If not, where can I go to get the Adobe Reader COM re-added?  Error screenshot below.

 

AdobeAcrobatDCBrowserControlError.png

 

Thanks

Using VBA to remove Security in PDF file

$
0
0

16-10-2015 9-26-50 AM.png

Hi bros,

Could you please advise me how to remove "Secured" from pdf file (without any password) by VBA. I am trying to use Excel VBA but I really dont have any idea about the code to set the property of pdf to be "No security" even if the pdf file did not have any protected password.

 

Thanks you much!

How can I dis-able the "Recent" Panel —PERMANENTLY?

$
0
0

I hate Welcome Panels of all kinds but usually they have a "Do NOT Show Again" button.

 

Acrobat does not appear to provide that courtesy?

 

Where is this panel stored on my computer so that I can delete it?

Adobe SDK & Web Applications

$
0
0

Hi All,

We need to develop a web application that is integrated a flow of signatures/approval.

The web application will be written in Java, therefore we would like to know if you can integrate and leverage the services offered by SDK ADOBE, that as documentation seems to be written in .NET !

We will develop the application in JAVA...

It's easy / possible to integrate the two ??

 

My suspect is that the development may be only done in .NET!

 

Thanks in advance,

Greatings

Pietro

Excel VBA Error when I try to open an AcroExh.PDDoc document - Method 'GetInfo' of object 'CAcroPDDoc' failed

$
0
0

Hi All,

 

I have really weird error message on my Excel VBA code, which has been working fine for months. And it occurs when I try to open Rep1 below

 

Dim AcroApp As Acrobat.CAcroApp

Dim Rep1 As Acrobat.CAcroPDDoc

sAcct = "UCITS"

sDate = Format(shtSoD.Cells(1, 2).Value, "YYYYMMDD")

Set AcroApp = CreateObject("AcroExch.App")

Set Rep1 = CreateObject("AcroExch.PDDoc")

sRep1FullName = ThisWorkbook.Path & "\" & sAcct & "_" & "r1" & "_" & sDate & ".pdf"

  

Rep1.Open (sRep1FullName)

 

The I get the run-time error + the message

 

Method 'GetInfo' of object 'CAcroPDDoc' failed

 

I have only Adobe Acrobat Pro DC installed and my VBA code references the Adobe Acrobat 10.0 Type Library.  And I haven't made any changes to my PC (that I know of!)

 

Any help greatly appreciated! (and I hope i posted this in the correct forum)

Can we load PDF File into Acrobat.AcroAVDoc object with Opening PDF File in .NET

$
0
0

Hi,

 

can any one help me to load PDF file into Acrobat.AcroAVDoc object without opening PDF file.

 

Thanks,

Bipin


Playing Videos from PDF

$
0
0

Hi everyone!

 

I'm setting up a presentation and I want the video I'm embedding into the pdf to play full screen - is there a way to make that happen? Currently it will play only to the size it's set as which when I try an make it full screen, it cuts the top of the video off. Is there a way to connect it to QT rather than flash?

 

Thanks!

Always prints with Default Printer using AVDocPrintPagesWithParams with Acrobat X+

$
0
0

I am writing a plugin and am using AVDocPrintPagesWithParams to print.  The plugin uses the Acrobat 9 SDK.  In Acrobat 9, I am able to print to any selected printer.  In Acrobat 11 and Acrobat DC the defaultly configured printer is always used no matter what printer I pass as a parameter.  I have configured the driverNameW, printerNameW, and portNameW along with driverName, printerName, portName. 

 

I saw a similar problem in a previous post, but it was unresolved.  One suggestion was to use the Acrobat 11 SDK, but there was no reply if that solution worked.  I have to support Acrobat 9, so I can't use the Acrobat 11 SDK.

Writing Simplified Chinese characters only works if using Arial Unicode MS font

$
0
0

Hi,

I am trying to add Unicode text to a PDF document. Using the AddGlyphsSnip.cpp example I have managed to achieve this without too many problems. However, if I try and export to PDF using a different Type 0 CID type 2 font I just get garbled text. The only fonts I have found to work are Arial Unicode MS and Adobe SongStd-Light. Am I missing something obvious.

 

I have read the PDF specification and tried to extract as much information from these forums and the API documentation but all are rather light on detail.

 

Please help!

 

Kind regards

PDEElementGetBBox return wrong value

$
0
0

Hi

     I have developed a plugin which delete the object like text, image and path with respect to user input coordinates. In some cases the value obtained from PDEElementGetBBox return the wrong value.

     Code which I Used

 

if (PDEObjectGetType((PDEObject) pdeElement) == kPDEPath)

  {

  PDEElementGetBBox (pdeElement, &bbox);

 

  float PathTop = ASFixedToFloat(bbox.top);

  float PathBottom = ASFixedToFloat(bbox.bottom);

  float PathLeft = ASFixedToFloat(bbox.left);

  float PathRight = ASFixedToFloat(bbox.right);

 

 

  if(Condition is true)

  {

       PDEContentRemoveElem(pdeContent,j);

  }

  }


bbox return wrong value


Is anything i am missing

how can I use PDDocGetXAPMetadataProperty

$
0
0

I am trying to use the PDDocGetXAPMetadataProperty function:

metaData = PDDocGetXAPMetadataProperty( doc, ASTextFromPDText( ns.get_namespace().c_str() ),ASTextFromPDText( ns.get_path().c_str() ));

 

But I'm getting this errors:

‘PDDocGetXAPMetadataProperty’ was not declared in this scope

Function 'PDDocGetXAPMetadataProperty' could not be resolved

 

I have added to my project the path to: PDMetadataCalls.h ( PDFLSDK11.0.3/Include/Headers ). This is the header that declares the mentioned function.

I'm compiling with GCC on Linux.

 

 

Could I get some suggestion please ?

Viewing all 2571 articles
Browse latest View live