Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

filling a pdf-file

143 views
Skip to first unread message

Martin

unread,
Jan 18, 2001, 7:51:12 AM1/18/01
to
I have several forms in pdf-format.
There are editable fields in the pdf-document. How is this editing done
using powerbuilder?


Ken Halbert

unread,
Jan 18, 2001, 9:28:41 AM1/18/01
to
Adobe Acrobat 4.x (not to be confused with Acrobat Reader) exposes
functionality via automation that facilitates the programatic manipulation
of PDF form field data. The following code fragment demonstrates such an
implementation:

oleobject lnv_Document, &
lnv_Form, &
lnv_Field

lnv_Document = CREATE oleobject
lnv_Document.ConnectToNewObject("AcroExch.AVDoc")
lnv_Document.Open("c:\temp\myfile.pdf", "")
lnv_Form = CREATE oleobject
lnv_Form.ConnectToNewObject("AFormAut.App")
lnv_Field = lnv_Form.Fields.Item("myPDFfield")
lnv_Field.Value = "My text to display."
.
.
.
lnv_Form.DisconnectObject()
lnv_Document.Close(FALSE)
lnv_Document.DisconnectObject()
DESTROY lnv_Form
DESTROY lnv_Document

You can download the Adobe Acrobat SDK from
http://partners.adobe.com/asn/developer/acrosdk/acrobat.html

Unfortunately, Adobe does not support the SDK when used with PowerBuilder.
I have experiened stability problems when accessing Acrobat automation via a
PowerBuilder 7.03 app running on Windows 95/98/ME (NT and Win2K work fine).
I had to wrap the automation calls in a C dll to overcome these problems.

HTH

Ken Halbert
KYMN Information Technology Solutions, Inc.
ke...@abac.com

"Martin" <m.kalt...@xpoint.at> wrote in message
news:bJG26$UgAH...@forums.sybase.com...

Jesus Lopez

unread,
Apr 4, 2001, 1:19:54 PM4/4/01
to
I understand your reply but I have some dudes.

The ConnectToNewObject("AcroExch.AVDoc") needs to register a library to the
system, (regsvr32 AcroExch.AVDoc)
Can you tell me what libary I need and where can I found it?
How can I get the methods of this library?

A lot of thanks

Jesus

"Ken Halbert" <Ken.H...@netregulus.com> escribió en el mensaje
news:Rig9G3V...@forums.sybase.com...

0 new messages