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

What is the best way to pass the web url of a link embedded in a PDF document?

$
0
0

I have a WPF app in which is hosted an instance of axAcroPDF. I've included it via a System.Windows.Forms.UserControl that is a child of a System.Windows.Forms.Integration.WindowsFormsHost.

The PDF Document is essentially a flow chart in which there are links that are currently set to open a webpage by url. When the links are clicked in a standard adobe Acrobat X application they work fine, however when they are clicked within the WPF application's axAcroPDF component nothing happens. Furthermore I have also on another tab within my app a System.Windows.Controls.WebBrowser on which I would like the linked url's to be opened. I need to construct a method, event listener and event handler so that when the link in the pdf file is clicked in the axAcroPDF object the url is passed to a method that will call System.Windows.Controls.WebBrowser.Navigate() passing it the url as an argument. I've saught help within the WPF developer community and got some advice to use the "execute a javaScript" link behavior to call a method within my WPF app passing it the url as a string argument, but have been unable to implement this within my code. I click the link with the javascript but it does not result in a method call of the method in my WPF app. Can anyone help me with possibly a more simple way to just listen for the event that already exists with the "open a web link" action?

 

Thanks for any help,

 

Matthew


.rsp file

$
0
0

Greetings, I'm trying to see the samples provided by the SDK. When I complie most of the samples without changing the .rsp file as suggested by the documentation (Adding READER_PLUGIN, removing PI_ACROCOLOR_VERSION=0x00060000, and set the value of ACRO_SDK_LEVE to 0x000A0000) I get them compiled without any error. Unfortunatley when building them after changing the .rsp file as suggested I got a lot of errors.

 

For example: BatesNumbering Sample after setting the correct setting for .rsp file, I got these errors:

 

********

1>------ Rebuild All started: Project: BatesNumbering, Configuration: Debug Win32 ------

1>Deleting intermediate and output files for project 'BatesNumbering', configuration 'Debug|Win32'

1>Compiling...

1>PIMain.c

1>Compiling...

1>BatesNumberingInit.cpp

1>BatesNumbering.cpp

1>d:\sdk100_v1_win\adobe\acrobat 10 sdk\version 1\pluginsupport\samples\batesnumbering\sources\batesnumbering.cpp(261 ) : error C2065: 'PDDocAddBatesNumberingSELPROTO' : undeclared identifier

1>d:\sdk100_v1_win\adobe\acrobat 10 sdk\version 1\pluginsupport\samples\batesnumbering\sources\batesnumbering.cpp(300 ) : error C2065: 'PDDocRemoveBatesNumberingSELPROTO' : undeclared identifier

1>Generating Code...

1>Creating browse information file...

1>Microsoft Browse Information Maintenance Utility Version 9.00.21022

1>Copyright (C) Microsoft Corporation. All rights reserved.

1>Build log was saved at "file://d:\sdk100_v1_win\Adobe\Acrobat 10 SDK\Version 1\PluginSupport\Samples\BatesNumbering\win32\Debug\BuildLog.htm"

1>BatesNumbering - 2 error(s), 0 warning(s)

========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

*****

 

Another example: DdeServer:

 

1>------ Rebuild All started: Project: DdeServer, Configuration: Debug Win32 ------

1>Deleting intermediate and output files for project 'DdeServer', configuration 'Debug|Win32'

1>Compiling...

1>PIMain.c

1>Compiling...

1>DdeServerInit.cpp

1>DdeServer.cpp

1>d:\sdk100_v1_win\adobe\acrobat 10 sdk\version 1\pluginsupport\samples\ddeserver\sources\ddeserver.cpp(164) : error C2065: 'PDPageAddNewAnnotSELPROTO' : undeclared identifier

1>d:\sdk100_v1_win\adobe\acrobat 10 sdk\version 1\pluginsupport\samples\ddeserver\sources\ddeserver.cpp(164) : error C2064: term does not evaluate to a function taking 4 arguments

1>d:\sdk100_v1_win\adobe\acrobat 10 sdk\version 1\pluginsupport\samples\ddeserver\sources\ddeserver.cpp(165) : error C2065: 'PDAnnotSetTitleSELPROTO' : undeclared identifier

1>d:\sdk100_v1_win\adobe\acrobat 10 sdk\version 1\pluginsupport\samples\ddeserver\sources\ddeserver.cpp(165) : error C2064: term does not evaluate to a function taking 3 arguments

1>d:\sdk100_v1_win\adobe\acrobat 10 sdk\version 1\pluginsupport\samples\ddeserver\sources\ddeserver.cpp(166) : error C2065: 'PDTextAnnotSetContentsSELPROTO' : undeclared identifier

1>d:\sdk100_v1_win\adobe\acrobat 10 sdk\version 1\pluginsupport\samples\ddeserver\sources\ddeserver.cpp(166) : error C2064: term does not evaluate to a function taking 3 arguments

1>d:\sdk100_v1_win\adobe\acrobat 10 sdk\version 1\pluginsupport\samples\ddeserver\sources\ddeserver.cpp(167) : error C2065: 'PDTextAnnotSetOpenSELPROTO' : undeclared identifier

1>d:\sdk100_v1_win\adobe\acrobat 10 sdk\version 1\pluginsupport\samples\ddeserver\sources\ddeserver.cpp(167) : error C2064: term does not evaluate to a function taking 2 arguments

1>Generating Code...

1>Creating browse information file...

1>Microsoft Browse Information Maintenance Utility Version 9.00.21022

1>Copyright (C) Microsoft Corporation. All rights reserved.

1>Build log was saved at "file://d:\sdk100_v1_win\Adobe\Acrobat 10 SDK\Version 1\PluginSupport\Samples\DdeServer\win32\Debug\BuildLog.htm"

1>DdeServer - 8 error(s), 0 warning(s)

========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

 

 

Any help?!!!!

Project preprocessor definitions

Full screen mode with VB

$
0
0

Hello everyone,

 

I'm working on a small MS Access database for maintaining and displaying spareparts.

I have two ActiveX-controls with "Adobe PDF Reader " in the OLE-property.

I have already managed to display the PDFs needed there. Now I need to access the "open in full screen mode" - property in the PDF-documents, so they are displayed without any bars etc.

I have linked the AcroPDF.dll but I did't find a solution with it.

The users of the database will only have the Acrobat Reader on their systems.

 

Thanks for your help in advnace

Regards

Roman

Inquiry

$
0
0

Hello every one, I have never used Adobe SDK and I would like to use it to build a plug-in for Acrobat for one of my schools projects.

 

 

Is it possible to build a plug-in that enable user to estabilsh links (create links) to another Pdf document (here I mean to a specific point in the other document --link between anchors--). I have seen the weblink plugin, but I need to make links between text selectors of the two different documents. Moreover, I would like to enable the creation of links between the Pdf text to a specific selector (anchor) in a webpage (As you know this URL will contain Xpointer expression).. If yes, please tell me what API I should study?!!

 

 

Thanks in advance,

How to get names and values of all forms on the page?

$
0
0

I need to receve names and values of all forms(TextFields, checkboxes etc...) on the page using VB.

Is there a way to do this within Acroexch or JSobject?

Thanks

Retrieving text problem Pdetextselect

$
0
0

http://forums.codeguru.com/showthread.php?441325-Adobe-Plugin-Question &p=2126991#post2126991

 

I have used the above link to get text from marked annotation in pdf.

In the above code i have not cleared with

FRSelection                         selection; FRSelectionContext               context; 

What are these references?

 

I have used avdoccopyselection instead of above but the selection is not clear it selects the text above the bounding box of annotation rectangle.i have check with all the perfect rectangles but it selects wrongly.

 

Please clear me the above references and bounding rectange annotation to retrieve text .

Thanks.

How to count number of related radibuttons in the doccument?

$
0
0

The field "radiobutton" can have several related radiobuttons.

How to count quantity of radibuttons with the same name in the doccument?


Merge files with a batch script

$
0
0

I have 8,000 files and I want to merge the files that have the same prefix name in the filename. i.e.

122TX4939.pdf

122TX4939 Support.pdf

122TX4939 Additional.pdf

 

333RS111.pdf

333RS111 Support.pdf

 

555DA77.pdf

 

Results:

The first 3 would get merged into 1 file:

122TX4939.pdf

122TX4939 Support.pdf

122TX4939 Additional.pdf

 

The next 2 would get merged into 1 file:

333RS111.pdf

333RS111 Support.pdf

 

The last file would get copied or merged byitself

555DA77.pdf

 

and they would be in a destination folder other than the folder with the 8,000 pdf files.

How can i do this in a script?

Adobe Acrobat XI SDK Samples problem

$
0
0

I am having problems building and running SDK samples.

When built “out of the box”, the WebLinkDemo fails while getting HFT for AcroColor.

After some googling, I found Adobe Acrobat XI SDK Release Notes:

http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/a crobat/pdfs/release-notes-acrobatxisdk.PDF

 

Following their directions:

deleted

/D PI_ACROCOLOR_VERSION=0x00060000

inserted

/D READER_PLUGIN

 

WebLinkDemo builds OK, but required SnippetRunner fails to compile with multiple errors like:

>c:\code\adobe\acrobat xi sdk\samples\snippetrunner\sources\snippets\shared\acetranspdetextcolo rsnip.cpp(60): error C2065: 'PDEContentGetNumElemsSELPROTO' : undeclared identifier

 

SELPROTO seems to be the commot suffix.

 

Any suggestions?
Thank you!

adobe acrobat profressional can support "IBM Filenet case manager " integration

$
0
0

Can you tell me whether the adobe acrobat profressional can support "IBM Filenet case manager " integration, such as it can be integrate with sharepoint.

With VBA in excel, how can I copy a pdf document (page by page into different worksheets)

$
0
0

I want both a page image and the text from that page on each worksheet but am struggling with the acrobat object model....

How to get the number of pages in a PDF file with AcroPDF ActiveX control

$
0
0

Hi,

 

I am using the AcroPDF ActiveX control provided by Acrobat Reader and Professionals(version 9). I just wonder if I using LoadFile to load a PDF document, how can I know the number of pages in that PDF? I do not find any properites or methods that can do that.

 

Thanks

 

Alan

Problems in loading PDF document in AcroPDF ActiveX control

$
0
0

Hi,

 

Currently I am using AcroPDF activex control provided by Acrobat Reader/Professional(9.0). There is a strange thing, when I call LoadFile to load a PDF file for the first time, there are nothing appear in the ActiveX window. I need to destroy the control and then reload that control and recall LoadFile to load the same document for the second time, then the PDF pages will appear. That is very strange.

 

Thanks

 

Alan

Search PDFs for image not found – Red X

$
0
0

We generate hundreds of PDFs per day.

Sometimes our system will generate a PDF without an image, just the red X.

Is there any way to search the PDF and find the ones with red Xs in them?

We’re running on AIX (UNIX) so some type of grep command would be great.

Thanks


Using a TSA in own signature handler

$
0
0

Good day,

 

Can someone help me with the steps involve in creating using a TSA inside a custom signature handler api?

 

When I set the TSA as my default time server as sign my signature field with the normal Adobe Default handler, it uses the TSA and the signature properties reflects this. I wnat to know how I can use a TSA with my custom handler. I sign signature fields using the PROP_PSENG_SignFormatPKCS7DetachedDigest. How can I include a TSA? I've tried adding a TimeStamp dictionary to my SV dictionary of the signature field, but it does not seem to have any affect on the signature...

 

Any help would be greatly appreciated.

Regards,

Magda

VBA inserting form fields, different positions result for different users.

$
0
0

I'm certianly at a loss for wrapping my head around this.

 

Adobe Acrobat 9 Standard (v 9.5.4)

Excel 2010  (VBA)

 

The problem:  When I create the PDF document from Excel, I search for a string of text in order to capture the Quads for the containing rectangle.  Then I use the quads to insert a control with numeric offsets.  The problem that I am facing is that the offsets seem to be causing the controls to be in different locations for different users.  For example, when I send (-26, -2, 100, 10) {x-offset, y-offset, width, height}; the control aligns exactly where I want it.  But when another user user runs the exact same routine, or opens the PDF that I created, the fields are no longer positioned correctly.

 

Is there some setting that I am missing? EDIT, SOLVED:  My Acrobat had a custom point to pixel setting.  (Preferences > Page Display > Resolution)

 

Private Function makePdfControl(ByVal pdfPage As Integer, keyTerm As String, Optional ByVal keyTermLookAhead As Integer = 0, Optional ctrlType As String = "text", Optional cCoords As Variant = 0)

 

    'pdfPage is the target page of the document

    'keyTerm is the assembled search term: "Date Shipped >> DATESHIPPED"

    'keyTermLookAhead is the number of words assembed into KeyTerm, zero based: "Date Shipped" >>  "DATESHIPPED" >> "DATE" = 0, "SHIPPED" = 1

    'ctrlType determines the type of control to place on the form; default is text

    'cCoords carries an array of integers: x-offset, y-offset, width, and height

 

    txt = ""

    Dim fkt As Integer 'counter for keyTermLookAhead

    Dim matchFound As Boolean 'flag that a match has been found

    Dim maxWords As Integer 'the maximum number of words in pdfPage

    Dim coord(3) As Integer 'local array container to provide interface for cCoords

 

    p = 0

 

    matchFound = False

    maxWords = jso.getPageNumWords(pdfPage)

 

    Do While p + keyTermLookAhead <= maxWords 'search all words in the target page; break if not found

 

        p = p + 1

 

        For fkt = 0 To keyTermLookAhead

 

            txt = txt & jso.getPageNthWord(pdfPage, p + fkt)

 

        Next fkt

 

        If UCase(txt) <> UCase(keyTerm) Then 'the assembly of terms is complete, check if match

            txt = "" 'prepare "txt" for next assembly

            matchFound = False

        Else

            matchFound = True 'we've struck gold, exit the loop preserving val of "p" as the first word in the assembly

            Exit Do

        End If

 

    Loop

 

    If matchFound = True Then

 

        Dim qtmp() As Variant

        Dim q(7) As Double

 

        qtmp = jso.getPageNthWordQuads(pdfPage, p)(0) 'collect the rectangle containing the first word of the search; output is a base-0x7 array

 

        For a = 0 To 7

 

            q(a) = qtmp(a) 'collect the data

 

        Next a

 

        If VarType(cCoords) <> 8204 Then '8204 means that we've inserted an array into the Varient type var cCoords

            coord(0) = 0

            coord(1) = 0

            coord(2) = 100

            coord(3) = 15

        Else

            coord(0) = cCoords(0) 'x-offset value

            coord(1) = cCoords(1) 'y-offset value

            coord(2) = cCoords(2) 'width value

            coord(3) = cCoords(3) 'height value

        End If

 

        x0 = coord(0) 'x-offset var

        y0 = coord(1) 'y-offset var

 

        w = coord(2) 'ctrl width

        h = coord(3) 'ctrl height

 

        x = q(0) + x0

        y = q(7) - h + y0

 

        'origin point of doc matrix is lower-left corner

        'origin point of control is lower left corner of the rectangle containing the first word of the search phrase

        'offsets are placed from this point, negative x shifts to the left, negative y shifts down

        'values are in points, not pixels

        Set f = aForm.Fields.Add(keyTerm, ctrlType, pdfPage, x, y, x + w, y + h) '(uplf, lwlf, lwrt, uprt) 'add the control to the form using values passed in

 

    End If

 

End Function

 

The above function is used while looping through the pages of the created PDF document.  I am using the following function to create the document from Excel:

 

Private Sub exportToPDF()

 

    DoEvents

 

    Application.ScreenUpdating = False

 

    Call showTabs(False)

 

    ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, _

                                       Filename:=pdfPathData, _

                                       Quality:=xlQualityStandard, _

                                       IncludeDocProperties:=False, _

                                       IgnorePrintAreas:=False, _

                                       OpenAfterPublish:=False

 

    Call showTabs(True)

 

    Call locateDoc

 

    Application.ScreenUpdating = True

 

End Sub

 

Message was edited by: ilivingston:  solved

Weblink driver

$
0
0

I am creating a Weblink filter driver (based on WebLinkDemo sample from SDK) to handle one particular type of links.

Everything works OK, except for the “filtering” part:

if I determine that I DON’T want to handle this link – how do I invoke the Acrobat’s default handler?
I’ve tried returning false from my FollowLink() function – there was no visible effect.

I’ve also tried calling WWWOpenURL(avDoc, sURL, sFormData) as it soundls like it would do what I want, also with no visible effect.

At the moment I simply get the path to the default browser and run it with the passed in URL:

 

char* browserPath = GetAppSpecifier(false/*ASBool promptUser*/);

ShellExecute(0, 0, browserPath, sURL, 0, SW_SHOWNORMAL);

 

Is that the ONLY way to handle unwanted links?

 

Thank you!

Extract Text from pdf using C#

$
0
0

Hi,

 

We are Solution developer using Acrobat,as we have reuirement of extracting text from pdf using C# we have downloaded adobe sdk and installed. We have found only four exmaples in C# and those are used only for viewing pdf in windows application. Can you please guide us how to extract text from pdf using SDK in C#.

 

 

Thanks you for your help.

 

Regards

kiranmai

Batch printing job Acrord32 exe kill not working in ASP .Net app

$
0
0

We have a wierd issue in batch printing job when printing couple of files. It opens a small popup window and silently print a file which is working fine with Word and excel files, printing files, closing word and excel windows but when it comes a turn of printing pdf file in job. It opens Acrobat Reader window and prints pdf file then it hangs application and Acrobat Reader window remains open. It does not close Acrobat Reader window when killing the process. It does not print next file in job. It was working good with Acrobat Reader version 8 it was closing Acrobat Reader window and printing next file in the job. We have Acrobat Reader version 11 and this issue appeared.

 

For Each clsProcess As System.Diagnostics.ProcessIn System.Diagnostics.Process.GetProcesses()

 

If clsProcess.ProcessName.Contains("AcroRd32") Then

If Not clsProcess.HasExited Then

                  clsProcess.Kill() 

 

                    clsProcess.WaitForExit(30000)

 

 

               End If

          End If

Next

                

 

If anybody knows the solution how its going to work will be greatly appreciated.

Viewing all 2571 articles
Browse latest View live


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