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

Embedding indexes inside PDF file

$
0
0

Hi,

 

My requirement is to convert PDF files (Which have text content) to pdf files with embedded indexes to accelerate search operation. I want do the conversion in batch process that it will be configured to run according to a given schedule.

 

1- Which product allow me to achieve that ?

2- Can i do it programatically in my own code by using APIs from Adobe ? If yes where i can find those APIs ?

 

NB: Please, can someone tell me how to talk to an expert fro Adobe. I want know if Adobe tools offer a solution to this problem or not.

 

Best Regards.


PDF embdded indexes

$
0
0

I have a requirement ,

 

I want convert in batch process a big number of PDF documents to PDF documents with embedded indexes. From perfromance point a view, how many seconds it takes to convert 10 MB document (all content it 's text)?

 

Can I do this conversion programatically. Is there any API that allow me to achieve this requirement ?

 

Regards

Need Acrobat api for pdf distiller in asp.net.

$
0
0

Hi,

 

  I am doing manual pdf distiller using acrobat, but i need the api code for c# to distiller for asp.net c# code.

VBA Code error with Adobe Acrobat 10 Type Library

$
0
0

Hi,

 

I have some code I created in Word VBA to combine several separate PDFs into a single PDF.  The code works fine with the Adobe Acrobat 9.0 Type Library and Adobe Reader 9.0 installed.

 

But, with the Adobe Acrobat 10 Type Library and Adobe Reader 10 installed, the code fails at the marked code below.  Any suggestions??

 

    Dim acrobatApp As Acrobat.acroApp

    Set acrobatApp = CreateObject("AcroExch.App")

 

 

    Dim mainPDF As Acrobat.AcroPDDoc

    Set mainPDF = CreateObject("AcroExch.PDDoc")  ****THIS IS WHERE THE CODE STOPS WITH A "TYPE MISMATCH" ERROR****

   

    Dim nextPage As Acrobat.AcroPDDoc

    Set nextPage = CreateObject("AcroExch.PDDoc")

       

    Dim numPages As Integer

   

    'Loop through all selected VLS, and add each one to the end of the main PDF

    For i = 0 To lstSelected.ListCount - 1

        mainPDF.Open CurDir & "\" & Replace(ThisDocument.Name, ".doc", "") & ".pdf"

        numPages = mainPDF.GetNumPages

        nextPage.Open lstSelected.List(i)

       

        If mainPDF.InsertPages(numPages - 1, nextPage, 0, nextPage.GetNumPages, True) = False Then

            MsgBox "Cannot insert pages"

        End If

       

        If mainPDF.Save(PDSaveFull, CurDir & "\" & Replace(ThisDocument.Name, ".doc", "") & ".pdf") = False Then

            MsgBox "Cannot save"

        End If

       

        'MsgBox lstSelected.List(i)

        nextPage.Close

    Next i

How to check , any pdPage contains 3DAnnot or not ?

$
0
0

We have only pdPage object and how to check , this page contains 3DAnnot or not ?

 

 

And How to remove annot from Page ?

Convert different types of files and merged them into one pdf

$
0
0

Hi, everyone. I'm girl from China.

 

There is folder containing severl files of different types, like doc, msg, jpeg etc.   And I want to convert and merge them into one pdf following a certain order. I know that PDFmaker can do that nicely, but the problem is that I have like 3000+ fodlders that requires the same work.

 

I want to do it with VBA and Acrobat. I have a Acrobat XI Standard Version and a perfect license, by the way

And I have got the code(Thanks, Karl Heinz Kremer) of merging two pdfs into one, but how can I convert them into pdf first?

 

Thank you very much.

If I can finish this, I would like to publish my code on this forum.

How to Convert PDF to Image

$
0
0

How can i convert PDF to Image using adobe java toolkit?

View PDF-documents on a Windows form

$
0
0

Hello

 

I am looking for a smart way to display/view PDF-documents on a Windows form.

 

My environment:

-VisualStudio.NET 2005/2008

-Target device: Touch screen with Windows7 embedded

 

What I have done so far:

I used the COM-ActiveX 'AcroPDF.dll' from my development system. It seems, it came from an AcrobatReaderX installation.

On my development system everything worked fine.

As a consequence, I had to integrate 3 dependent dlls/assebemblies into my application setup for installation on the target device:

-Iterop.AcroPDFLib.dll

-AxInterop.AcroPDFLib.dll

-AcroPDF.dll

 

Surprisingly to me, the control did not work before I had additionally installed the AcrobatReaderX on the target device too.

 

My questions:

-Is there a recommended way how to display PDF-documents on a Windows form when developing with VisualStudio.NET?

-Where can I find more reliable information about the correct use of the COM-ActiveX 'AcroPDF.dll' (inclusive deployment)?

-Is it normal that Acrobat Reader has to be installed on the target device even though I just want to view the files in the control and not in the Reader?


How to obtain latitude and longitude info using acrobat sdk?

$
0
0

Hello,

 

I am trying to mimic the display of spatial coordinate values (latitude and longitude) on mouse move event in a geospatial PDF

(ISO 32000 standard "http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/adobe_su pplement_iso32000.pdf" page 51).

 

Basic requirement: I need to add more functionality to geo-spatial PDF like giving the option for users to change the coordinates systems. 

 

Can any one help me find how to access the spatial information in geospatial PDF programatically using acrobat c++ sdk??

Relative links in PDF (issue with AxAcroPDF)

$
0
0

We have a .NET application that uses the AxAcroPDF control to view PDF documents.  Some of these PDF documents have relative links to other PDF documents.  The relative links do not work correctly and we receive the following Security message  "Acrobat does not allow connection to:" {full path to pdf}.

 

We've tried enabling enhanced security and adding privileged locations to supress the message but this does not work.

 

Could someone please explain if it is going to be possible to get the relative links within PDF files working as we've already spend a few days looking at this.  Moditfying the links isn't really an option as the documents belong to a 3rd party customer and there is a lot of them.

 

We are using Acrobat 9 and IE 9.

Calling Trusted javascript function from plugin

$
0
0

I am developing one pluging , In that on one button click of  dialog box i am calling one javascript , follwing is the code of javascript

 

myTrustedFunction = app.trustedFunction(

function()

{

          app.beginPriv();

          var filterOptions = { target: security.EncryptTargetDocument };

          var policy =security.chooseSecurityPolicy( { oOptions: filterOptions } );

          app.endPriv();

}

);

I am using c++ in the backend to develop the plugin. and i am calling this javascript on the button click of the dialog box .Even though  i used trusted function after executing the code i am getting the following error on the java script console

 

NotAllowedError: Security settings prevent access to this property or method.

App.trustedFunction:3:Doc undefined:Exec

 

is there any solution to it ?

AxAcroPDFLib - Reader keeps Initializing... forever

$
0
0

On 32-bit Windows 7 PCs that have Adobe Reader 10.1.8 (but NOT Adobe Acrobat), the AxAcroPDF reader does not work at all. When the LoadFile() method is used with an appropriate path, all we see is "Initializing....". It never initializes, even after reloading with LoadFile() again.

 

This problem has *not* been replicated on a 64-bit system with Adobe Reader 10.1.8 and Adobe Acrobat 10.1.7. From what I have read, this control is supposed to work with Adobe Reader OR Adobe Acrobat. Please clarify this if I am wrong. A question related to that - when added this reference to the project, the description of the reference is  "Adobe Acrobat Browser Control Type Library 1.0". Why would Adobe name it this if Acrobat is not required to run it (from what I've been reading - here is an example http://forums.adobe.com/message/2421447)?

 

This is my main problem, but while I'm at it, here's another little bug. Setting the path to the src property will always return an error. Adobe will state that the file does not begin with "%PDF-", when yeah, it totally does, it's a PDF file, I open it with a text editor and that is there. It's not corrupt or locked either.

 

Any ideas why this is happening?


Thanks,

Paul

Help with ASFixedRect

$
0
0

I dont understand why this works:

 

     AVDoc currentAVDoc = AVAppGetActiveDoc();

     PDDoc currentPDDoc = AVDocGetPDDoc(currentAVDoc);

     PDPage pdPage = PDDocAcquirePage (currentPDDoc, 1);

 

          PDTextSelectRangeRec rec;

          rec.end = 12;

          rec.ofsEnd = 0;

          rec.ofsStart = 0;

          rec.start = 10;

 

          PDTextSelect textSelection = PDTextSelectCreateRanges(pdPage,&rec,1);

          AVDocSetSelection(currentAVDoc, ASAtomFromString("Text"), (void *)textSelection, true);

          AVDocShowSelection (currentAVDoc);

          PDPageRelease (pdPage);

 

 

But this dose not:

 

     AVDoc currentAVDoc = AVAppGetActiveDoc();

     PDDoc currentPDDoc = AVDocGetPDDoc(currentAVDoc);

     PDPage pdPage = PDDocAcquirePage (currentPDDoc, 1);

 

     ASFixedRect rec2;

          rec2.bottom = 0;

          rec2.left = 0;

          rec2.right = 1000;

          rec2.top = 1000;

 

     PDTextSelect      textSelection = PDDocCreateTextSelect(currentPDDoc,1,&rec2);

 

     AVDocSetSelection(currentAVDoc, ASAtomFromString("Text"), (void *)textSelection, true);

     AVDocShowSelection (currentAVDoc);

     PDPageRelease (pdPage);

DCTDecode filter used for image with Indexed color space?

$
0
0

I've seen examples of images in PDF that have BitsPerComponent=8, with an Indexed Color Space, but the filter is DCTDecode.  This doesn't seem intuitive to me, as JPG supports 24-bit RGB and 8-bit gray.  I haven't heard of 8-bit color JPG so I'm just wondering how this is done?

 

I'm just trying to understand how this works if someone could please indulge me with a technical explanation it would be most appreciated.  I understand how the image is represented using the colorspace, I just don't understand how this filter is applicable to 8-bit data.

 

Please note, I understand that it's not an actual JPG file, that the data is only using the compression scheme.

createDataObject() method is not working in Adobe Reader

$
0
0

have a fillable pdf with few text boxes in it and a save button. When the user fills the form and clicks the save button using Acrobat Pro I am able to save the data as an attachment in pdf, But the problem is When the user opens the pdf using Adobe Reader and try to do the same thing as above I am getting following error.

enter image description here

I have been searching for a week but no luck. Is there any way to make createDataObject() function work in Adobe Reader? or Is there any other way we can embed data into pdf?

Note: I am using Acrobat Javascript for this functionality. And I am using Adobe Reader version 11 and Acrobat pro version 11 and my OS is Windows.


How to get number of underlined words or highlighted words?

$
0
0

Is there any way to get underlined annotated words or words which are highlighted with specific color from a pdf file usng acrobat javascript? I tried but could not able to read.

how to get a specific page's field values in pdf ?

$
0
0

I am using acrobat javascript to read a pdf file. Is there any way to read textfield values which are present in a specific page?

Is there any way to know that model tree is open or not ?

$
0
0

Hello ,

 

     can anyone tells me how i can check if currently model tree is open or not using c++ sdk or java script or some other way?

 

Thanks,

Hide 3D annotation toolbar

$
0
0

Hello ,

 

     i am developing c++ plugin which insert 3 annotation in page.

     I want to know ,how i can hide the toolbar of that 3D annotation using c++ sdk or java script or some other way ?

 

Thanks,

show side toolbar

$
0
0

how to show side toolbar bydefault always open ?

Viewing all 2571 articles
Browse latest View live