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...
Search Object in document... Retrieve all object by type ?
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
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