form pdf

form pdf

Postby Jack » Sat Nov 05, 2016 9:54 am

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.
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am

Re: form pdf

Postby dagiayunus » Sat Nov 05, 2016 2:56 pm

Adobe Acrobat Pro version is require to use the sample.

Code: Select all  Expand view
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
Regards
Yunus

FWH 21.02
dagiayunus
 
Posts: 85
Joined: Wed Nov 19, 2014 1:04 pm

Re: form pdf

Postby Jack » Mon Nov 07, 2016 7:25 am

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 .
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am

Re: form pdf

Postby dagiayunus » Mon Nov 07, 2016 10:49 am

Code: Select all  Expand view

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
 
Regards
Yunus

FWH 21.02
dagiayunus
 
Posts: 85
Joined: Wed Nov 19, 2014 1:04 pm

Re: form pdf

Postby Jack » Mon Nov 07, 2016 1:08 pm

Thanks for this answer,

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

Thanks
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am

Re: form pdf

Postby dagiayunus » Mon Nov 07, 2016 1:49 pm

Regards
Yunus

FWH 21.02
dagiayunus
 
Posts: 85
Joined: Wed Nov 19, 2014 1:04 pm

Re: form pdf

Postby hua » Tue Nov 08, 2016 2:50 am

Jack, you can search this forum for pdftk if you need to fill pdf forms
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 44 guests