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

How to Use Optimized PDF or Reduced PDF in C#.net through Adobe SDK?

$
0
0

In C#.net how to use Optimized PDF Functionality by using adobe SDK.


Reader XI: Removing Tools|Sign|Comment from Menu and Toolbar

$
0
0

Has anyone been able to accomplish this? This is a rather annoying 'feature' of Reader XI

plugin doesn't work in Reader11

$
0
0

I have a customized plug-in which works fine in Reader9 and 10. In Reader 11, when call DdeInitialize I got DMLERR_NO_CONV_ESTABLISHED error.Can someont here help me please? Thanks a lot.

Create PDF document via Acrobat OLE/Automation?

$
0
0

Hi,

 

Is it possible to utilize the OLE/Automation feature of Acrobat Professional, instead of Acrobat SDK, to create a PDF document and add objects into it?

 

Thanks

Reading a PDF stream for LZW decompression?

$
0
0

Hello..  I'm really struggling here.

 

I am currently using the Rosetta Code implementation for LZW decompression (C++).  This implementation requires numerical imput.  That is.. the input in it's compressed state is in numerical form.. a series of numbers.   My problem is this:

 

I want to read the compressed LZW stream (compressed only in LZW and not encoded in ASCII 85) into a buffer and that is then passed to the decompression algorithm for decompression.  I open the pdf in binary mode, read each character and convert it to an int and load each integer into the buffer .  Once the buffer (which is an int vector) is loaded, I pass this to the algorithm for decompression. 

 

Unfortunately the data will not decompress.  I seem to get the same output as I put into it in a character form.   I have included white space (noskipws) and also tried the opposite.  I have also tried (using bitwise shift operation) to create 12 bit chunks and then loading those into an int vector.  This isn't working either.    I'm thinking it has something to do with how I am reading the data in the first place.  What do all these little glyphs represent (in the compressed stream)?  How do I go about reading compressed data into a buffer if the algorithm I am using requires numberical input common to LZW compression?   

 

Should I include white spaceHow should I read the compressed data?

 

Any clues would be greatly appreciated.

 

Thanks very much. 

How to create automatically PDF with Adobe OLE/Automation without pop-up?

$
0
0

Hi,

 

I developped an application (langage Windev) which extract datas from  PDF documents and split them in many PDF documents.

I use Adobe Arcobat Pro (version 10.1.8).

I call the method "save" from the object AcroExch.PDDoc and  the method "close" from the object AcroExch.AVDoc.

It works good mostly but sometimes, after the treatment of a document, I have this message at beginning of the treatment of the following document:

 

          Adobe Acrobat recovered one or more documents that have not been properly recorded before the Acrobat stop.

          Click Yes to open the documents retrieved.

      AdobeErrorSave.png

 

However, the methods "call" and "save" return no errors...

 

Do you knowwhat is thereason? Or how to catchthis message?

 

 

Regards,

word 2013 pdfmaker

$
0
0

Windows 7

Word 2013 32 bit

Adobe pro XI 11.0.5

Using vba to create pdfs using pdfmaker.

 

Using CreatePDFEx with options,1    during the conversion to pdf,  prompted with a Word dialog message

"Do you want to save changes you made to Acrxxx.doc"   the xxx changes each time.

The word document has been saved

additional code is inserted to confirmed that the word document is saved prior to conversion to pdf.

 

this looks like adobe is creating an additional temp document prior to conversion,  would like to know:

Interesting the extension on the word document is a .doc and not a .docx

 

how to prevent this message box from displaying

 

 

many thanks

Christine

execDialog

$
0
0

 

I'm using
app.execDialog(dialog1);
function. Before Ok or Cancel button click, i want interact with acrobat document. but i can't do it. because i use modal dialog box.

Thanks for ur Replays....


VBA Project Password Dialogue Box Shown after Closing Excel when Acrobat PDFMaker COM Addin is Enabl

$
0
0

VBA Project Password Dialogue Box Shown after Closing Excel when Acrobat PDFMaker COM Addin is Enabled

 

I have developed many applications the last 20 years in different environments (ASP, SQL, VBA, VB, etc) . Recently I have had reports about a bug that I believe derives from a com add-in called “Acrobat PDFMaker Office COM Addin” (PDFMaker.OfficeAddin) developed by Adobe.

 

The application that generates this problem is built in Excel. It has a custom Userform with a listbox in it. The position of the listbox is different depending on a number of parameters and is programmatically changed. However, whenever the Userform has been shown and the user is closing the file the VBA Project Password dialogue box pops up. The password pop-up has to be cancelled 2-5 times before it disappears.

 

The problem is of course very annoying and difficult to explain to clients that have paid me for the solution. I have spent a lot time trying to resolve the problem, but with little success.

 

Recently I read in a forum that it was caused by the Acrobat PDFMaker COM Addin. I could not believe this, but when I disabled the add-in everything works fine. Also, in machines that does not have the add-in installed there are no problems reported.

http://www.excelguru.ca/forums/showthread.php?1009-quot-VBA-project-pa ssword-quot-window-opens-after-closing-the-excel-workbook

 

How to Reproduce the BUG (5mins) (Courtesy Randall):

To reproduce this bug anyone can simple create a new MacroEnabled workbook, 1) Add a Userform with a close button, 2) Protect the VBProject code (this is critical), 3) Add code to Load or .Show the Userform in the WB Open or Activate procedure, 4) Add Userform property changing code (e.g. .Top=, .Left=, .Caption=) in the Userform Init procedure (this is critical), 5) Save & Close the workbook. 6) Relaunch the workbook ensuring that the Userform opens and then close it via the button you provided on the Userform. 7) Exit the WB via Menu option File-Exit (this is critical). Wait for it, wait for it (about 5 secs) :-) the VBProject Password Prompt to appear, repeatable.

 

As a workaround I have tried to disable the add-in on start-up but the line Application.ComAddIns("PDFMaker.OfficeAddin").Connect = False

will throw an error “This add-in is installed for all users on this computer and can only be connected or disconnected by an administrator.”

 

I have read in some forum that the problem occurs if the ActiveX DLL does not properly release the reference to the workbook that contains the password-protected VBA project (http://support.microsoft.com/kb/280454)

 

Any help to resolve the problem or find a workaround is much appreciated.

 

Niklas

GetAnnot only returning Compare:Replace comments

$
0
0

I'm using Adobe's "Compare Documents" tool (in Acrobat XI Professional) to create a list of differences between two documents that I can extract using VBA.  For some reason, GetAnnot is only returning Compare:Replace comments and ignoring Compare:Delete or Compare:Insert comments.

 

GetNumAnnots is only returning the number of replace comments as well.

 

Any suggestions?

CreateFile API returns Access Denied from Adobe plugin on Windows 7.

$
0
0

Hi all,

 

I was trying to create a file on Desktop using CreateFile Win32 API from a Adobe Reader plugin on a Windows 7 64 bit machine. This is working fine on XP machine. But, when I tried to run this on a Windows - 7 6-bit machine, it is giving Access Denied error.

 

When I tried to do this in a stand-alone application, it is working fine.

 

Can anyone help me what is going wrong here.

 

--

Thanks in advance

Prasanth

GetAnnot(nIndex) returns the same annotation though variable nIndex is incremented

$
0
0

In "test.pdf", there are 30 annotations, but "GetAnnot(nIndex)"  can just returns the first 2 annotations, though variable "nIndex" is incremented from 0 to 30,  variable "N" repeat 0 and 1.

 

The pdf file is fine, and other pdf files have the same problem, What's the problem?

 

Acrobat X , VB

Code:

 

Private Sub Form_Load()
Dim PDDoc As Acrobat.AcroPDDoc
Dim PDPage As Acrobat.AcroPDPage
Dim PDAnnot As Acrobat.AcroPDAnnot
Dim NumAnnots As Long
Dim NumPage As Long
Dim I As Long
Dim nIndex As Long

 

Dim AnTxt As String
Dim N As Long

 

Set PDDoc = CreateObject("AcroExch.PDDoc")
PDDoc.Open "D:\test.pdf"
NumPage = PDDoc.GetNumPages
If NumPage > 0 Then
    For I = 0 To NumPage - 1
       Set PDPage = PDDoc.AcquirePage(I)
       NumAnnots = PDPage.GetNumAnnots()
       If NumAnnots > 0 Then
          For nIndex= 0 To NumAnnots - 1

 

              Set PDAnnot = PDPage.GetAnnot(nIndex)
              N = PDPage.GetAnnotIndex(PDAnnot)

              AnTxt = PDAnnot.GetContents()
          Next
       End If
    Next
End If
PDDoc.Close
End Sub

Event tracking plugin

$
0
0

Hi all,

 

Please bare with me I'm new to the whole extensions scene and I have a few questions regarding my options in achieving the following goals:

 

We have a third party app we would like acrobat/reader to report to every time any pdf is:

- opened, whether online (npapi browser plugin or similar) or locally

- printed

- subject of clipboard (text copied to clip.. highly doubt this is possible)

- closed

 

On any of these events, we need to notify the third party app of the full file path and/or URL of the pdf. How would we contact the app, REST post?

 

Is it possible to send the entire text of the pdf to the third party app?

Is it possible to generate a thumbnail of the pdf?

 

Would we need a DLL or JavaScript extension?

 

Thanks in advance!

Acrobat Automate - execute menu item “HTML Web Page”

$
0
0

I am trying to automate Acrobat from VS 2010 to convert pdf to html.

I know I should use  acrobatApp->MenuItemExecute(...); but I didn't find the name of menu item "HTML Web Page" that should be passed as argument. Any help?

Custom panel/tab/frame in Arcobat window

$
0
0

I know that I can create modal/modless window(with any controls) inside Acrobat main window. The question is: can I create such window as part of Acrobat GUI?

 

For example the content of my window will be displayed as one of the navigation panes(Thumbnails, Bookmarks).

 

Thanks for your answers.


How to Create PDF from file using Acrobat SDK with C# or VB.NET?

$
0
0

Hi,

 

Here I am using Acrobat 7 to create PDF, using the File->Create PDF->From File option.

 

Now I want to do this process by using Acrobat SDK with C# or VB.NET, so please give me a suggestion how can I do.

 

 

Note:

 

Here I am using DOC file to convert.


Regards,

Thirusanguraja Venkatesan

Building dynamic dialogs for Acrobat.

$
0
0

I am attempting to figure out how to build dynamic dialogs within Acrobat using Javascript.

 

I am attempting to write a generalized PDF page splitter.  The user selects a PDF document, and then the script analyzes the open document and determines that there are N pages in the document.  I am going to run through the document and make each page its own PDF.  Each page will be considered a certain kind of page, for example, Cover, Article, Ad, etc.  and the type of page it is will affect the naming convention I use when making the new, one-page file.  For example, let's say that pages 36, 37 and 38 are page, ad and article, respectively.  Then the names I will be using for each output file will be as follows:

 

P12345Pg_036.pdf

P12345Ad_037.pdf

P12345Ar_038.pdf

 

But there is no way for my code to actually look at a given page and decide that it is page, article, ad, or one of four cover types, etc.  So I want to build a dialog that looks something like this (assume a O is meant to be a radio button):

 

Page          Pagetype

1                  O Page      O Inner cover Front         O  Outer cover Front     O Ad           O   Article

2              O Page  O Inner cover Front     O  Outer cover Front O Ad       O   Article
3              O Page  O Inner cover Front     O  Outer cover Front O Ad       O   Article
4              O Page  O Inner cover Front     O  Outer cover Front O Ad       O   Article

...

N              O Page  O Inner cover Front     O  Outer cover Front O Ad       O   Article

 

This means a dynamic dialog.

 

I have looked at the Acrobat API and determined that defining a dialog looks something like this:

var DialogABC = {

                                   initialize: function(dialog){},

                                   commit : function(dialog){},

                                   ...

                                   description:{}

                           };

 

app.execDialog(DialogABC)

 

What I do not know how to do is create the dialog specification on the fly.  Do I treat it as a string or is there some other way of making this happen?  HOw can I make a dynamic description that allows for a variable number of rows?

 

Please let me know if you have any thoughts.  A good reference or example would serve just as well.

 

TIA!

John

Has anyone (ever) gotten a highlight to work?

$
0
0

I'm working on programmatically highlighting text in a PDF.  I've followed the docs in the SDK and the best I can do is get it to add a comment to the Comments pane.  No highlighting ever shows on the document.  I've searched the forum and the web and all I can find is other people with the same problem and no solutions.  Has anyone ever pulled this off?

 

I'm using VBA and JSO:

 

 

rawQuads = outJSO.getPageNthWordQuads(page, wordnumber)

Set annot = outJSO.AddAnnot

Set props = annot.getProps

props.Type = "Highlight"

annot.setProps props

 

coords(0) = rawQuads(0)(2)

coords(1) = rawQuads(0)(3)

coords(2) = rawQuads(0)(0)

coords(3) = rawQuads(0)(7)

 

'This link works correctly and at the expected coordinates

Set link = outJSO.addLink(pg, coords)

link.setAction ("this.pageNum = " & currentWord - 1)

link.BorderColor = outJSO.Color.Red

link.borderWidth = 1

 

Set props = annot.getProps

props.Page = page

props.Author = "Validation Tool"

props.quads = rawQuads(0)

props.rect = coords

props.popupRect = coords

props.Delay = False

props.Hidden = False

props.strokeColor = outJSO.Color.Green                       

props.Contents = "Please check this cross-reference"

 

annot.setProps props

outJSO.syncAnnotScan

Convert PDF File to PS file with SDK Acrobat

$
0
0
Hi,

With Delphi, How convert PDF File into PS file

I use SDK Acrobat

Regard's

Laurent

Where can I find an example of SDK XI populating form fields?

$
0
0

Where can I find an example of SDK XI populating form fields?

Viewing all 2571 articles
Browse latest View live


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