Search Object in document... Retrieve all object by type ?

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
lifegame
Posts: 7
Joined: Thu Nov 04 2004

Search Object in document... Retrieve all object by type ?

Post by lifegame »

Can search object in the PDF with name ?

I'm a programmer, and I would like to search object by the name,
or retrieve all object by Type. (22 acObjectTypeStickyNote)

I have try to retrieve object by function (ActivateObject or GetObjectByName) but if object does not exist my application cause GPF.

I'm with PowerBuilder, and Try Catch Error is not a good idea...

Thanks...

:D
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Are you adding the PDF Creator as a visual control to your datawindow or are you just declaring a reference to it?

Try to declare the PDF Creator as reference than retreive all objects.

Here is a sample Powerbuilder code that retreives all objects from a pdf document

Code: Select all

pdfcrt = create oleobject

pdfcrt.ConnectToNewObject("PdfCreactiveX.PDFCreactiveX")

pdfcrt.open ("c:\Temp\sample1.pdf","")

pdfcrt.SetLicenseKey(LicensedTo, ActivationCode) 

objectArray = pdfcrt.ObjectAttribute("Pages[1]","Objects")

integer i

For i = 1 to Upperbound(ObjectArray[])
	  obj = objectArray[i]
  	  Messagebox("", string(obj.Attribute("Name")))
Next
Post Reply