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

acroexch.avdoc.openinwindowex toolbar inconsistent

$
0
0

Hi.  I used the sample ActiveViewVB program from the Acrobat SDK to develop an application which allows the user to view documents and also do searches using an index I set up using SQL tables.  I am using Acrobat 11.  I need functionality to allow the users to go to a specific page and also to be able to zoom. The application mostly works fine.   The problem I have is that when I open the document using acroexch.avdoc.openinwindowex, setting the openFlags to AV_DOC_VIEW, if I set useOpenParams to True and

the pageMode to PDUseThumbs or PDUseBookmarks, I get more menu options than I want (create PDF, add signature, etc).  If I set pageMode to PDUseNone or set UseOPenParams to False, I do not get the extensive menu at the top.  I get a kind of shadow menu which appears at the bottom of the screen.  When I first open a document, this shadow menu includes zoom options and the ability to enter a page number and go to it, which is what I want.  However, if I close this page and open a new page, without closing the complete application, on the new page I get a smaller menu at the bottom, which does not include these options ( has only save, print,go forward or backward).  Is this a bug?  Is there a combination of options I can use which will assure that this displays correctly all the time?


Remove hidden information using Avcommand

$
0
0

Hi

how to  remove hidden information using Avcommand.

for example: to run ocr we are using Paper capture similarly for remove hidden information what should we use

 

Thanks

How to set OCR Text Recognition general setting programatically using plugin

$
0
0

Hi

     How to set/change OCR Text Recognition general setting programatically using plugin

 

Thanks & Regards

Balamurugan V

I have a question about the anchor point(corner points) of the path object.

$
0
0

Ihave developeda plug-inusingAcrobat Pro DC SDK.

Iwant toeditthepathobjectin Acrobat.
It was able toedit theanchor pointsinIllustrator, but not inAcrobat.

InAcrobat,I haveunderstood thattheanchorpointthere is anothermeaning, such asannotationslink.


The followingis thequestion.
   1.What do you call thiscornerpointinAcrobat?
   2.Is it possible toview thecornerpoint via Acrobat SDK?

How to rename a Named Destination

$
0
0

Hello,

Is there a way to rename a named destination by code?

 

In order to be as more clear as possible I explain my prolem:

1. I have a PDF file with a lot of named destinations;

2. I need to parse each destination by code and rename it;

3. I need to save the modified PDF file at the and of my parsing routine.

 

I can get the PDNameTree Object with this line:

PDNameTree pdNT = PDDocGetNameTree( pdDoc, ASAtomFromString( "Names" ) );

but after that I'm not able to get each destination name, and I'm not sore that this is the right way...

 

 

Please could anyone help me?

 

Thank you

Stefano B.

Export pdf bookmarks with vba

$
0
0

Hi,

 

I would like to list all bookmarks in a PDF file and export it in Excell. Is it possible to access the PDF bookmarks with VBA? Somebody have VBA code exemple for listing PDF bookmarks?

 

Thank

I would like to distinguish the object that was created in the plug-in.

$
0
0

I would like to distinguish between general objectsand otherobjectsthat created by theplug-ins.
Can the plug-in set the object's own name or a own tag via acrobat SDK?


Please tell me if you have any good idea.


Acrobat XI/DC SDK, Win/Mac

I cannot find text in .PDF doc using Pro X ver 10.1.13 (points to wrong location), works in Reader ver 10.1.13

$
0
0

Finding text works with Reader but when I use Pro X it points to the wrong location (both version 10.1.13). What am I doing wrong?


In a plugin, how do we get access to the characters(s) of a textrun?

$
0
0

Hi,

 

in a Acrobat XI or Acrobat DC plugin. I am not clear how to get the text in a textrun.

I can get the box, but can I access the character(s)?

 

Example of code

 

 

         ASInt32 objectType = PDEObjectGetType((PDEObject) pdeElement);

         if (objectType == kPDEText){

             int numTextRuns = PDETextGetNumRuns((PDEText)pdeElement);

             for (int i = 0; i < numTextRuns; i++){

                 PDETextGetBBox((PDEText)pdeElement, kPDETextRun, i, &bbox);

              

             }

         }

 

Thank you

Hide acrobat on launching apple script

$
0
0

HI,

I use following command to open acrobat and merge pdf files

using terms from application "Adobe Acrobat"

        with timeout of (20 * 60) seconds

            tell application "Adobe Acrobat"

             

                set show splash at startup to false

             

                set firstFile to (item 1 of itemList)

             

                open firstFile with invisible

             

                set AppleScript's text item delimiters to ":"

                set tempList to firstFile's text items

                set AppleScript's text item delimiters to {""}

                set firstDocument to last item of tempList

             

                repeat with i from 2 to count of itemList

                 

                    set nextFile to (item i of itemList) as text

                 

                    open nextFile with invisible

                 

                    set AppleScript's text item delimiters to ":"

                    set tempList to nextFile's text items

                    set AppleScript's text item delimiters to {""}

                    set nextDocument to last item of tempList

                 

                    set PageNum to count of «class cpag» of document nextDocument

                 

                    insert pages document firstDocument after -1 from document nextDocument starting with 1 number of pages PageNum

                 

                    close document nextDocument without saving

                end repeat

             

                close document firstDocument with saving

             

            end tell

        end timeout

    end using terms from

 

The above correctly merges pdf files.

 

Problem:

1) The above script launches the acrobat in front window

 

Required:

1) I do not want to the acrobat windows to be show in the front window. it should be hidden/remain in the dock

 

tried:

Instead of tell application "Adobe acrobat "   i tried

tell application "Adobe acrobat to run

 

This launches the acrobat and remains in dock

 

But following errors are shown

 

"unable to  read the dictionary of the application or extension because it is not scriptable."

"cant get document"

"the document ".pdf" cannot be opened script editor cannot open files in "Adobe PDF document format"

 

 

Is there solution available for it.

How to create javascript Search object in C#?

$
0
0

How to create javascript search object in C#?

I want to have an access to search pluging to find words with special characters (such as brackets). That is impossible to do using neither js Doc getPageNthWord method (it ignores special characters) nor using IAC AVDoc method FindText method (since it does not work in Acrobat XI). Is it even possible?

Acrobat Pro DC save as question

$
0
0

I created an action using on-board wizard. The resulting code is below:

 

this is the action created by the onboard action creator. It works with tiff selected in export format, but not jpeg.

 

<?xml version="1.0" encoding="UTF-8"?>

<Workflow xmlns="http://ns.adobe.com/acrobat/workflow/2012" title="photosheet" description="" majorVersion="1" minorVersion="0">

    <Sources defaultCommand="WorkflowPlaybackSelectFile">

        <Folder path="/C/PDFBatch"/>

    </Sources>

    <Group label="DoIt">

        <Command name="WorkflowPlaybackSaveFiles" pauseBefore="false" promptUser="false">

            <Items>

                <Item name="AddToBaseName" type="boolean" value="false"/>

                <Item name="DocSaveDestType" type="string" value="WorkflowPlaybackSaveInAFolder"/>

                <Item name="DontOverwrite" type="boolean" value="true"/>

                <Item name="EmbedIndex" type="boolean" value="false"/>

                <Item name="FS" type="atom" value="DOS"/>

                <Item name="FileVariation" type="integer" value="0"/>

                <Item name="HandleOutput" type="boolean" value="true"/>

                <Item name="HandlerUniqueID" type="string" value="com.adobe.acrobat.jpeg"/>

                <Item name="InsertAfterBaseName" type="text" value=""/>

                <Item name="InsertBeforeBaseName" type="text" value=""/>

                <Item name="NumbericNaming" type="boolean" value="false"/>

                <Item name="OptimizePDF" type="boolean" value="true"/>

                <Item name="PreselectedFolderPath" type="text" value="/C/Photosheet/Temp_Photos"/>

                <Item name="PresetName" type="text" value="Standard"/>

                <Item name="RunPDFOptimizer" type="boolean" value="false"/>

            </Items>

        </Command>

        <Separator/>

    </Group>

</Workflow>

Acrobat not responding, import Word to Portfolio

$
0
0

Each time I attempt to import a Word doc. Acrobat Standard DC won't respond and needs to be killed.

 

Rook

Can I generate pdf document that has Acrojs functionality with the sdk?

$
0
0

Hi, I was wondering if I can create a pdf document with Acrojs functionality in it from the sdk. I'm looking to see if I can create an application in C# that generates a pdf document with a form scripted with Acrojs. Is this possible? Thank you guys for your attention.

How to add an image (png from the file system).

$
0
0

How to add an image (png (i want to boot from the file system)) and textfields into the exist pdf document by the acrobat plugin? I look toward the tool "Add Image" Andes "Add Text" (this plugins?), which is already in the Acrobat toolbar. If yes, how to use their functions in my own plugin?  Maybe I'm digging in the wrong direction, you may suggest the correct solution to this problem.

 

In general, I'm trying to add to thePDFdocumentimages and textfrom mydatabase. But it is alsonecessary thatthese imagesand the textwas easy toremovefrom the document, withCleanUpstrandartuser toolsAcrobat.

 

Grateful for any help


Asian font text, PDEContentGetElem(), PDEElementCopy(), PDEContentAddElem() and clipping

$
0
0

I've got working code (at least six months old) that builds a single page PDF from a collection of single page PDFs by merging the page contents. Fonts embedded in the source PDFs are making it into the destination PDF, with no explicit code support. Optional content and logical structure in the source PDFs appear in the destination PDF. It all works except for one problem that has been found recently. Asian font text is getting clipped. So far the instances I've seen are that the top of the text is clipped. Any ideas on why Asian font text would be different than other text? Currently the code makes no distinction between text and any other type of PDEElement.

 

Any information or ideas would be appreciated.

 

Alan

Convert PDF-Page Thumbnail to PNG or JPEG

$
0
0

Hello,

 

Is it possible to get the Thumbnails to the pages in a PDF-File and save them as a JPEG or PNG File on a local drive?

 

Thanks in advance.

Rename font name using SDK

$
0
0

Hi

     Is it is possible to rename font name using plugin. For example I want to rename font Arial to my own custom name.

 

 

Thanks and regards

Balamurugan V

VB6 automation using OLE not saving checkmarks (Acrobat X)

$
0
0

I am using vb6 with Acrobat to fill in a pdf fill form. It is working well however when i try to click a radio button it checks it but when it saves and tries to reopen it, the radio buttons are no longer checked and it seems to be gone. The text fields seem to be working fine however the radio buttons seem to have a problem.

I am using Acrobat X, and i show the document to make sure it is in fact checking as i walkthrough it. I save the document it doesn't check anything but if i manually check it and save it, it will work. Only when it is through the automation it does not. Is there any documented issues about this?

Get Page Color using Acrobat SDK

$
0
0

Hi

     I would to get the pdf page color using plugin

 

So far i have tried

 

HWND window;

AVDoc adoc;

  PDDoc pdoc;

  PDPage page;

  HDC dc=NULL;

  ASFixedMatrix matrix;

  adoc = AVAppGetActiveDoc();

  pdoc = AVDocGetPDDoc(adoc);

  page = PDDocAcquirePage(pdoc, 1);

  PDPageGetFlippedMatrix(page,&matrix);

   dc = CreateCompatibleDC(NULL);

  PDPageDrawContentsToWindow(page, NULL, (void *)dc, false, &matrix, NULL, NULL, NULL);

  char * name= (char*)malloc(4);

  ASBool tete = PDPageGetPalette(page, (void *)dc, name);

  if(tete)

  {

  AVAlertNote("ok");

  }

  PDPageRelease(page);

 

 

But i was not able to get the output. where i am wrong

 

Thanks

Balamurugan v

Viewing all 2571 articles
Browse latest View live


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