form pdf

Post Reply
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

form pdf

Post by Jack »

Hi,
How is it possible to read the content of a pdf form with fivewin .
Is there a dll or activex ?
Thanks for your help.
dagiayunus
Posts: 69
Joined: Wed Nov 19, 2014 1:04 pm
Contact:

Re: form pdf

Post by dagiayunus »

Adobe Acrobat Pro version is require to use the sample.

Code: Select all

function main()
    AcroApp:= CreateObject("AcroExch.App")
    theForm:= CreateObject("AcroExch.PDDoc")
    theForm:Open("c:\reports\test.pdf")
    jso:= theForm:GetJSObject
    text1 = jso:getField("fld1"):Value
    text2 = jso:getField("fld2"):Value
    ?text1
    ?text2
return nil
Dagia Yunus.
Rajkot, India

FWH 17.04
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

Re: form pdf

Post by Jack »

Thanks for this answer .

Do you have a help file giving more info about this communication .

Is it also possible to write info in a field with fivewin and save this info in the PDF ?

Thanks .
dagiayunus
Posts: 69
Joined: Wed Nov 19, 2014 1:04 pm
Contact:

Re: form pdf

Post by dagiayunus »

Code: Select all

function main()
    AcroApp:= CreateObject("AcroExch.App")
    theForm:= CreateObject("AcroExch.PDDoc")
    theForm:Open("c:\report\test.pdf")
    jso:= theForm:GetJSObject

********** To Read Pdf form Field  ***********************
    text1 = jso:getField("fld1"):Value
    text2 = jso:getField("fld2"):Value

********** To save pdf form field ************************
    jso:getField("fld1"):Value="Value Changed"
    TheForm:save(,"c:\report\test.pdf")
    
return nil
 
Dagia Yunus.
Rajkot, India

FWH 17.04
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

Re: form pdf

Post by Jack »

Thanks for this answer,

Do you have a help or pdf file with more info about this ?

Thanks
dagiayunus
Posts: 69
Joined: Wed Nov 19, 2014 1:04 pm
Contact:

Re: form pdf

Post by dagiayunus »

Dagia Yunus.
Rajkot, India

FWH 17.04
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Re: form pdf

Post by hua »

Jack, you can search this forum for pdftk if you need to fill pdf forms
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
Post Reply