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

conditional calculation

$
0
0

hi,

i have adobe acrobat form. there r 3 fields called "total quantity", " total price" and "discount". if total quantity is >250 then discount will be 10% of " total price" and if total quantity is >500 then discount will be 15% of " total price" . anyone can help me for this code.

 

 

thanks

Ali


Acrobat pro 9.0 セットアップ

$
0
0

Acrobat pro 9.0 セットアップ時に「入力したシリアル番号は有効ではありません。」となり、先へ進めない。

Convert from PDF to Visio File

$
0
0

I have a PDF file with mutiple workflows and org chart. Lost the base Visio File from which the Org Chart was prepared , could I do reverse Engineering and convert from PDF to Visio File.

 

 

Thanks

Deepa Ganesh

[signature deleted by host]

How do I insert a header that I've made onto a PDF document?

$
0
0

I am trying to insert a header onto a PDF file that has already been created, please advise.

How to overcome error "Instance member GETSECURITYPOLICIES does not exist"

$
0
0

We're accessing Adobe Acrobat XI Pro V 11.0.11 from within Notes 8.5.3.  We're creating one or more pdf's, merging them into one, then applying a security policy so that users can't edit without a password.

 

Code Snippet:

' Create the Adobe Acrobat objects

 

Set AcroApp = CreateObject("AcroExch.App")

 

....Merged file is successfully created at this point, then trying to apply password via security policies...

 

' Add password protection to the document using the Adobe Acrobat Security Policy defined on the workstation.

 

' The name of the policy is defined in a configuration DB.


Set jso = EntryRepDocument.GetJSObject()

 

If jso IsNothingThen

 

errorstr =  "Could not obtain a JavaScript object for the document."

 

GoTo msgHandler

EndIf

 

Call jso.app.beginPriv()

 

' Obtain the Adobe Acrobat Security policies


policyArray = jso.security.getSecurityPolicies()

 

It's at this point the error is being logged (although sometimes it works). Any suggestions would be greatly appreciated

How do I programmatically populate text in a PDF?

$
0
0

I would like to programmatically populate text in a PDF in my PowerBuilder built  application.

 

How do I do this?

What tools do I need to make this happen?

What is the licensing requirement?


Thanks

AvCommand list and description

$
0
0

Hello,

 

I would like to know if there's a list and description of all AVCommand available for an SDK plugin.

I've searched in Adobe Reference, Developer guide, forum but I have not found any usefull.

 

I've only found a list (with poor descriptions) in 'AVCmdDefs.h' (SDK 9 and SDK XI), but It seems the list is not complete!

For example:

 

'PaperCapture' command that should perform OCR, is not in list.

'Remove Hidden Information' tool is not in the list

 

 

Is this possible that AvCommands ar so poorly documented?

Someone can give me helpful informations?

 

Thank you

Acrobat Reader DC15 ActiveX crashes

$
0
0

Hi,

Acrobat Reader DC15 through the MFC ActiveX wrapper causing crash to our application while closing the opened PDF file. It’s happening when we try to close the last file if multiple PDF files are opened. This crash is specific to Adobe Reader DC15 and working fine with version XI. The program code hasn't changed and crash occurs while calling DestroyWindow(). The only difference is installing Adobe Reader DC15 (version X and XI worked fine for years).

 

Crash is still there even after disabling Protected mode. Cleanup of Adobe DC using Adobe cleaner tool is also not resolving the issue.

 

Reproduced in both Windows 7 Professional 64 bit and Windows2008R2 64bit OS.One thing I noticed is that the crash is occurring while we call DestroyWindow() on closing the pdf file. If multiple PDF files are opened then the crash occurs only when we close the last pdf file and all other PDF files were closed successfully. The same code is working fine in Adobe XI and earlier versions.

 

Code Snippets:-

class CAcroReader : public CWnd

 

class  CAcroView {

 

     CAcroReader    m_acroReader;

 

};

....

m_acroReader.CreateControl(REFCLSID clsid,LPCTSTR pszWindowName, DWORD dwStyle, const RECT& rect,CWnd* pParentWnd,UINT nID,CFile* pPersist = NULL,

  BOOL bStorage = FALSE,BSTR bstrLicKey = NULL); // To create an ActiveX control that will be represented in the MFC program by a CWnd object

...

...

m_acroReader.LoadFile()

{

    // To open the PDF file

    InvokeHelper(0x2, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, fileName);

}

...

...

CAcroView::~CAcroView() {

m_acroReader.DestroyWindow(); // While closing the file

}

 

stack dump:

0153d7bc 75132161 00020688 0000004a 00040580 user32!NtUserMessageCall+0x15

0153d7fc 7513617a 0198fdf0 00000000 5f83c127 user32!SendMessageWorker+0x5e9

0153d820 6edafb4e 00020688 0000004a 00040580 user32!SendMessageA+0x7f

0153d99c 6edafe11 00020688 0000004a 00040580 AcroPDF!DllGetClassObject+0xdf0c

0153d9b4 6edd6392 00020688 00040580 0153d9d4 AcroPDF!DllGetClassObject+0xe1cf

0153d9ec 6edd5280 2d0e6508 09545f68 0000001c AcroPDF!DllUnregisterServer+0x19568

0153da1c 6edd194c 0153da30 00000000 098078d0 AcroPDF!DllUnregisterServer+0x18456

0153da34 6edb604c 2c4ce260 47247446 00000000 AcroPDF!DllUnregisterServer+0x14b22

0153da68 6edb61da 21aa1330 0153dab0 6f9dba95 AcroPDF!DllGetClassObject+0x1440a

0153da74 6f9dba95 09807954 274198cc 21a7c780 AcroPDF!DllGetClassObject+0x14598

0153dab0 6f9db9e5 21aa1330 6f9d99e9 00000001 mfc80!COleControlSite::~COleControlSite+0x9b [f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\occsite.cpp @ 94]

0153dab8 6f9d99e9 00000001 6f9dc12e 00000000 mfc80!COleControlSite::`scalar deleting destructor'+0x8

0153dac0 6f9dc12e 00000000 21a8f0d8 00000000 mfc80!COleControlSiteOrWnd::~COleControlSiteOrWnd+0xe [f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\occcont.cpp @ 162]

0153dad0 6f971fd8 21a9d720 21a8f0d8 05293461 mfc80!COleControlSite::DestroyControl+0x61 [f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\occsite.cpp @ 374]

0153dadc 05293461 47263521 21a9d720 21a8f0c8 mfc80!CWnd::DestroyWindow+0x56 [f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\wincore.cpp @ 995]


Color entire phrase such as "api reference" on specific page

$
0
0

Hi,

 

I am looking out to search for specific phrase for example "api reference for" from a PDF page and color the phrase.

 

I have the page number, and the position of the starting word and the ending word of the phrase on the page number. For example, I have 100 words on the page, and I want to color the 53rd to 55th word on the page.

 

Please suggest how can I can do the same, either using javascript or plugin.

 

Regards,

Manoj

Tool icon with Acrobat DC and Retina display replaced by standard one

$
0
0

With Acrobat DC my tool icon is replaced by a standard icon on a Mac with Retina display (both iMac 27 and MacBook Pro). No problem with Macs and standard displays and Acrobat 9/X/XI and Retina. So you can work, but when working with different tools you have to know the position of the icon you want to use. I have compiled the samples and their icons are also not shown, so I guess, it is a problem of Acrobat. Any ideas?

 

Jo

Acrobat Pro DC SDK

$
0
0

Adobe sprung the announcement of Acrobat Pro DC on us today.  Is there any information about a plug-in SDK for this version of Acrobat?  Our users are reporting that their Acrobat XI plug-ins don't work with DC, which may have something to do with the application being 64-bit, especially on Mac.

SDK function FindText doesn't work from Acrobat X

$
0
0

I have written this question more than one time in this forum, but Adobe developers do not reply.

See the object. Other details it is possible to find in the following discussions:

http://forums.adobe.com/thread/826756

http://forums.adobe.com/message/3762837

https://forums.adobe.com/thread/1032471

https://forums.adobe.com/message/6080063

https://forums.adobe.com/message/4646354

https://forums.adobe.com/message/6531764

If Adobe developers want to solve this problem, I am available for any trial or details (also source code that it works with Acrobat 9 and it doesn't work from Acrobat X).

Regards

How to convert a pdf into mulipage html using adobe acrobat pro dc sdk in c#

$
0
0

Hi,

I am trying to convert a pdf into multi page html. I am using JSObject for it. I can convert it into single page html, but i am not able to convert it into multi page html split by document headings. Can any body help me to solve this issue. Thanks

How to enable/disable annotations and markup tools using c#?

$
0
0

I have created a pdf viewer using c#, and when i open a pdf all the annotations and markup tools are disabled. how will i enable them programmatically using c#? please see the image below.

 

Problem.png

 

thanks in advance

Can I reduce the width of lines of a pdf then generate very high res monochrome image using the SDK?

$
0
0

I need to do the followings:

 

1. Take a multiple page PDF

2. Generate image for each page separately

    Images are 600 dpi to 1200 dpi depending upon the size.

    I also need to be able to find all the vector elements and iterate through them

                   determine what type of element they are

                               based on the element type do certain manipulation

 

3. While creating the image,

        need to adjust line widths.  if the lines have 0 width then change them to 1

            in fact change all the widths to 1 (essentially thinning out all the lines) to make them clear.

 

Please let me know if this can be done.


How to Shrink pdf page content

$
0
0

Hi

     I would like to rotate the pdf landscape page to portrait along with content and shrink the all content in that particular page to fit the portrait shape.

Using CosObj is its possible or is there is some other api. (using acrobat sdk 10(plugin))

 

Thanks

Bala

Create a simple plugin to auto-overwrite when signed

$
0
0

I am looking for a way to write a simple plugin that just changes the standard process of digitally signing the PDF.  Out of the box, at the end of creating your signature, a dialog comes up and ask you to save the document.  I want this plugin to skip that step and to go ahead and automatically overwrite the existing file in its current location.  I was able to do this with the DocSign SDK sample but i dont want to have to put that whole plugin on every users machine and basically re-write most of the code to make all the rest of the signing process back to "out-of-the-box" configuration. 

 

PS. using Acrobat Pro XI

Deleting XAP metadata entries from a plug-in

$
0
0

A plug-in can call PDDocSetXAPMetadataProperty to set individual RDF entries into the document metadata. But my requirement is to remove RDF entries, like the imaginary call PDDocDeleteXAPMetadataProperty ( pddoc , "http://www.npes.org/pdfvt/ns/id/" , "GTS_PDFVTVersion" ) ; Clearly one can parse and edit the entire XML stream, but I wonder if I have missed a trick?

 

(Edited to fix method names)

Acrobat Reader DC Command line Options

$
0
0

Hi to all,

 

I need to print PDF file directly from command line; in Acrobat Reade XI I have used /h /t switches, but now it is wrong.

 

Anyone does know the new options for Reader DC?

 

My OS is Windows 7 32 bit with IE 11

 

thanks

Adobe PDF Reader Control

$
0
0

Greetings all,

I am trying to add Adobe PDF Reader control to my project, once I drag-drop on the form, it shows the following error:

Any Idea how to solve it?

 

Thanking youVBError.png

Viewing all 2571 articles
Browse latest View live


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