Quantcast
Channel: Adobe Community : Discussion List - Acrobat SDK
Viewing all 2791 articles
Browse latest View live

Need help on Acrobat SDK Plugin Licensing

$
0
0

Hi,

I am really confused by the SDK licensing based on the forum posts and the license terms on the Acrobat website.

 

I wish to build plug-in that will be implemented with Acrobat Pro DC version only and not with Adobe Reader.

Are there any cost attached to the SDK? To my understanding, if we are not planning to have the plugin for Adobe Reader, there is no need for RIKLA program. However, do we need to pay or get approval for plugins for Acrobat Pro DC?

 

Are there any restrictions in distributing plug-in made using the SDK for users with Acrobat Pro DC only ?


Create pdf from excel

$
0
0

Hi everyone.
Is there any way to create a pdf from a excel with a different format, i mean, create the pdf from 0 but using the cells data.
For example, i have a table (on excel) with students and their exam notes, there is any way to create a pdf with a different format, with a logo image at the top with the table with an ammount of cells inside that depends on several facts that had been introduced on the excel. It CANT be the same  as the excel format.

 

Thanks

cache thumbnails that have been generated at least within a file open session

$
0
0

I understand that saving thumbnail images of pages in files was eliminated to reduce file size. However the current state of viewing pdf documents in thumbnail view could be drastically improved by not having to redraw thumbnails every time the scroll bar is moved so that a thumbnail goes offscreen and a new thumbnail pops up.  Also, having to redraw every thumbnail if a single page is rotated makes no sense.

 

Obviously this is not an issue if you only have 5 or six thumbnails, but if you've dragged the thumbnail pane wide enough to get an overview of an 80 page document, this can be really, really annoying, especially if you're editing the document by moving pages around.

 

Could someone with some clout please fix this very easy problem?

 

Thank you very much!

AVToolButtonSetComputeVisibleProc sets the enabled state of the button

$
0
0

I have an add-in that adds a toolbar to acrobat. This toolbar contains 3 buttons. Based on the active document, some of these buttons should be visible, and others should not be.

 

When I add the button to the toolbar I am using the AVToolButtonSetCompteVisibleProc function to set my visible callback. In a very simple example I have set my callback to simply return false. When debugging the code, I can see that this callback is called, however the effect is that the button is disabled, not hidden.

 

The version of acrobat is Acrobat Pro DC Version 2018.011.20063

AVAppFrontDocDidChange Question

$
0
0

Hello, I am trying to implement AVAppFrontDocDidChange in Adobe Reader DC 15.010.20060 When the callback is called I make the following calls:

 

AVWindow hWindow = AVDocGetAVWindow ( doc);

 

ASText titleText = ASTextNew ();

 

ASTextSetPDText ( titleText, szCaptionOut);

 

AVWindowSetTitle ( hWindow, titleText);

 

ASTextDestroy ( titleText);

 

After calling that, The titlebar of the App is never actually updated, but if i make the following call:

 

ASText titleTextNew = ASTextNew ();

 

AVWindowGetTitle ( hWindow, titleTextNew );

 

LPCSTR lpcszTextNew = ASTextGetEncoded(titleTextNew, 0);

 

 

It is set with the correct text.

 

Do I have to do anything special in Reader DC, to get it to refresh the active documents titlebar?

Plug-in for Extracting PDF Link Properties/Actions

$
0
0

I have a large PDF document, over 900 pages, with a large number of links throughout the document (~1,000) for:

 

  1. Page View links; and
  2. Web Page reference links.

 

Is there plugin available to extract a list of these links, along with their properties/actions, for the following reason(s):

  1. verify that a link has an action associated with it (i.e. Go to a page view, Open a web page, etc.); and/or
  2. verify that a link is connected to the correct page view, within the document.

 

Example:  My cover page currently has 70 "page view" links. I would like to efficiently see what pages those links are linked to, without having to view each individual link and its properties. This would quickly show me links that have no actions and allow me to verify my links are correctly linked to their designated page views.

Excel VBA To Turn Off PDF Layers

$
0
0

Hello,

 

Background - I have a couple PDF floorplans with close to 100 cubicles and due to internal staff turnover, it needs to be updated often.  I was able to use Excel vba to dynamically update the cublicle assignments, but since the floorplans were plotted with all the layers, including dimensions, fixtures to plumbing, the drawings are very clutter.

 

My question - is it possible to turn layers on/off with VBA.  Something like AvDoc.Lyaers("xxx").visible = false

 

Thanks.

How to get the PDEContainer using PDSMCGetPDEContainer

$
0
0

Hi Team

 

I want to get the exact location of the figure and formula from the tagged PDF. i am able to read the tagged structure from the PDF using below code, but i got struck ed to get the PDEcontainer by using PDSMCGetPDEContainer. how to obtain the pdecontainer i am i missing anything here?

 

ASAtom kidType = PDSElementGetKidWithMCInfo(element,  //The PDSElement containing the kid that is retrieved

                                                    kidIndex, //The index of the kid.

                                                    &kid,     //The kid being accessed (depending on the kid's type) or NULL.

                                                    &mcidInfo,//The kid's information object or NULL.

                                                    NULL,     //Pointer to the kid or NULL.

                                                    &CosPage);    //The CosObj of the page containing the kid or NULL

        char buf[256], title[128];

        buf[0] = title[0] = '\0';

 

        if (kidType == StructElem_K){

      

      

            ASInt32 title_size = PDSElementGetTitle (kid, reinterpret_cast<ASUns8*> (title));

            char IDS[128];

            IDS[0]  = '\0';

            ASInt32 ID_size = PDSElementGetID (kid, reinterpret_cast<ASUns8*>(IDS));

            strcat (buf, reinterpret_cast<char *>(IDS));

            string CurentName(buf);

            if (CurentName.find("Figure") != string::npos)

            {

                string test(buf);

                PDSMC Obj = (PDSMC) mcidInfo.mcid;

                PDEContainer pdeContainer = PDSMCGetPDEContainer((PDSMC)Obj);// iam getting error

                PDEContent  content = PDEContainerGetContent (pdeContainer);

            }

            GetElemInfo(kid);

        }

 

 

Thanks,

Balamurugan V


Extract complete hyphenated word from .pdf using acrobat.tlb in .NET

$
0
0

I posted this question on Stackoverflow but did not receive any usable answers.

 

I have just joined the Adobe forums in the hope someone knowledgeable here will be able to answer this specific Adobe Acrobat SDK automation question.

 

*******************************************************************

I am parsing a .pdf using the acrobat.tlb library

Hyphenated words are being split across new lines with the hyphens removed.

e.g. ABC-123-XXX-987

Parses as:
ABC
123
XXX
987

If I parse the text using iTextSharp it parses the whole string as displayed in the file which is the behaviour I want.

However, I need to highlight these strings (serial numbers) in the .pdf and iTextSharp is not placing the highlight in the correct location... hence acrobat.tlb

I am using this code, from here: http://www.vbforums.com/showthread.php?561501-RESOLVED-2003-How-to-highlight-text-in-pdf

' filey = "*your full file name including directory here*"

        AcroExchApp = CreateObject("AcroExch.App")

        AcroExchAVDoc = CreateObject("AcroExch.AVDoc")

        ' Open the [strfiley] pdf file

        AcroExchAVDoc.Open(filey, "")      

 

 

        ' Get the PDDoc associated with the open AVDoc

        AcroExchPDDoc = AcroExchAVDoc.GetPDDoc

        sustext = "accessorizes"

        suktext = "accessorises"

        ' get JavaScript Object

        ' note jso is related to PDDoc of a PDF,

        jso = AcroExchPDDoc.GetJSObject

        ' count

        nCount = 0

        nCount1 = 0

        gbStop = False

        bUSCnt = False

        bUKCnt = False

        ' search for the text

        If Not jso Is Nothing Then

            ' total number of pages

            nPages = jso.numpages          

 

 

                ' Go through pages

                For i = 0 To nPages - 1

                    ' check each word in a page

                    nWords = jso.getPageNumWords(i)

                    For j = 0 To nWords - 1

                        ' get a word

 

 

                        word = Trim(CStr(jso.getPageNthWord(i, j)))

                        'If VarType(word) = VariantType.String Then

                        If word <> "" Then

                            ' compare the word with what the user wants

                            If Trim(sustext) <> "" Then

                                result = StrComp(word, sustext, vbTextCompare)

                                ' if same

                                If result = 0 Then

                                    nCount = nCount + 1

                                    If bUSCnt = False Then

                                        iUSCnt = iUSCnt + 1

                                        bUSCnt = True

                                    End If

                                End If

                            End If

                            If suktext<> "" Then

                                result1 = StrComp(word, suktext, vbTextCompare)

                                ' if same

                                If result1 = 0 Then

                                    nCount1 = nCount1 + 1

                                    If bUKCnt = False Then

                                        iUKCnt = iUKCnt + 1

                                        bUKCnt = True

                                    End If

                                End If

                            End If

                        End If

                    Next j

                Next i

jso = Nothing

        End If

The code does the job of highlighting the text, but the FOR loop with the 'word' variable is splitting the hyphenated string into component parts prohibiting me from highlighting the complete string.

 

For i =0To nPages -1
  
' check each word in a page
  nWords
= jso.getPageNumWords(i)
  
For j =0To nWords -1
  
' get a word

  word
= Trim(CStr(jso.getPageNthWord(i, j)))

 

Does anyone know how to maintain the whole string using acrobat.tlb? My quite extensive searches have drawn a blank.

 

Many thanks...

Enable Commenting and Analysis by Javascript

$
0
0

I receive a no. of pdf files daily which need to be send for Reviewing. We are trying to develop a workflow through which I can enable Commenting and Analysis on received pdf and start the process of Reviewing by sending an email. Do we have any option in Javascript SDK for this ? I see a old post of 2010 that says it is not possible , Is that true now also. Please help.

How to get filled form with AcroPDF interface

$
0
0

Hello,

I'm trying to use AcroPDF interface to show a PDF form, get it filled by the user, and get back the filled-up form, to save it into my database.

How can I do this (the interface doesn't allow me to save it into a temporary file or to get back the pdf or an image of it) ?

Thanks for your help

I am not able to see my Android application in Share menu list while sharing pdf from adobe 18.3 version application

$
0
0

I am not able to see my Android application in Share menu list while sharing pdf from Adobe 18.3 version application but below versions of Adobe app, I am able to see my app in Share menu.

i placed the intentFilter in activity as follows
[IntentFilter(new[] { Intent.ActionSend }, Categories = new[] { "android.intent.category.DEFAULT" }, DataMimeType = "application/pdf")]

Do I need to change in my Android to make it work? any ideas?

Please help me resolve the issue

Thank you,

Babu

Populate pdf fields using vba

$
0
0

I'm trying to fill in an existing PDF file fields using access VBA by the code below. "User Name:" is one field on my pdf. I'm trying to enter a value to this field. When I run this with an appropriate file path it gives me an error saying: Run-time error '424': Object required.  The Adobe file version is Adobe Acrobat XI Pro.

 

 

Private Sub Adobefill_Click()

Dim FileNm, gApp, avDoc, pdDoc, jso

 

FileNm = "C:\projects\test\"

Set gApp = CreateObject("AcroExch.app")

 

Set avDoc = CreateObject("AcroExch.AVDoc")

If avDoc.Open(FileNm, "") Then

    Set pdDoc = avDoc.GetPDDoc()

    Set jso = pdDoc.GetJSObject

 

    jso.getfield("User Name:").Value = "[user name redacted by moderator by request]"      '<-------- I get an error here

    pdDoc.Save PDSaveIncremental, FileNm 'Save changes to the PDF document

    pdDoc.Close

End If

 

'Close the PDF; the True parameter prevents the Save As dialog from showing

  1. avDoc.Close (True)

 

'Some cleaning

Set gApp = Nothing

Set avDoc = Nothing

Set pdDoc = Nothing

Set jso = Nothing

End Sub

VBA - automatiser la fonction "Export all" d'un fichier pdf réponses

$
0
0

Bonjour à tous,

 

Environnement: Acrobat Pro DC

Je souhaiterais trouver un programme VBA qui automatise l'exportation d'un fichier réponses pdf (équivalent de la fonction "Export all..." dans le fichier pdf réponses).

L'idéal serait un export au format csv et classé dans le bon ordre des Tab.

 

Merci d'avance à tous pour votre aide précieuse !

How to bind a sign in adobe acrobat dc 18th version?

$
0
0

i have a image field, and i need to bind a pdf with the image field using base 64 of the image. How to do it?

 

var x = "base64 of an image";

ImageField.rawValue = x;


ReferenceError: OptionsOnSec is not defined

$
0
0

Dear All,

 

I use Python to call Acrobat JavaScript to convert PDF to EXCEL. The code is like following:

 

        aApp = win32.Dispatch('AcroExch.App')        pdDoc = win32.Dispatch('AcroExch.PDDoc')        if pdDoc.Open(r + "\\" + e):            jsObject = pdDoc.GetJSObject()            jsObject.SaveAs(des + "\\" + e + ".xlsx", "com.adobe.acrobat.xlsx")            jsObject = None            pdDoc.Close()        pdDoc = None        aApp.Exit()        aApp = None

 

I have converted 6000+ PDF successfully without any problem.

 

But recently when I reused this code to conver another 4000+ PDF, for about 600 PDF, there were errors: "ReferenceError: OptionsOnSec is not defined".  The other PDF are converted successfully without any problem.

 

I have searched google for this key word "OptionsOnSec" but only found "2 results (0.38 seconds) " and none of them are helpful.  So I think maybe internal forum will be helpful.

 

Could anyone provide me with any advice?

 

Thank you so much for your help!

about warning of Adobe Reader AstiveX Printall

$
0
0

hello all,

I used Adobe Reader AstiveX  ,

1.loadfile  XXX.pdf

2.  Printall

then  show a  warning ,like this

how to disable this warning ,i dont need it .

thank u

How do I add Annotations in the existing PDF through C#?

$
0
0

Hi,

 

I m trying to add the rectangle annotation to the existing PDF but not able to achieve that.Please help to solve this. I m using Adobe Acrobat 9 pro. I tried with the below C# code,

string inputfilepath="C:\\RedLine.pdf"

//Object for Adobe application and Document

AcroApp gApp;

AcroAVDoc acroAVDoc;

 

//Initialize Acrobat Application

gApp = new AcroApp();

 

//Open PDf Document

acroAVDoc = new AcroAVDoc();

acroAVDoc.Open(inputfilepath, "output");

 

//To show the Application

gApp.Show();

 

CAcroPDDoc acroPDDoc = (CAcroPDDoc)acroAVDoc.GetPDDoc();

 

//Rectangle bounds

AcroRect acroRect = new AcroRect();

acroRect.Left = 906;

acroRect.right = 815;

acroRect.Top = 377;

acroRect.bottom = 142;

CAcroPDAnnot acroPDAnnot = acroPDPage.AddNewAnnot(2, "Rectangle", acroRect);

acroPDAnnot.SetContents("Testing the Acrobat Redline");

 

Thanks in advance,

SASIKUMAR

merge PDF files programmatically using VBA

$
0
0

Hi,

i hope someone can help.

 

I have PDF files that i want to merge, the problem is that the fillable Fields are all same have.

After merging all fillable Fileds have the same values

 

Kind regards

PDF Editor tool in web application

$
0
0

Hi,

 

I am developing a c# code trying to implement pdf editor. I need a page to show the pdf and allow the users to add annotations, redact and save the pdf. Can you help with a sample code. Please guide with the steps that need to follow to get it working in C# web application page.

 

Please help me to how to have the editor tool with all the menu items.

Viewing all 2791 articles
Browse latest View live


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