FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour form pdf
Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
form pdf
Posted: Sat Nov 05, 2016 09: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.

Posts: 85
Joined: Wed Nov 19, 2014 01:04 PM
Re: form pdf
Posted: Sat Nov 05, 2016 02:56 PM
Adobe Acrobat Pro version is require to use the sample.

Code (fw): Select all Collapse
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
Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Re: form pdf
Posted: Mon Nov 07, 2016 07: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 .

Posts: 85
Joined: Wed Nov 19, 2014 01:04 PM
Re: form pdf
Posted: Mon Nov 07, 2016 10:49 AM
Code (fw): Select all Collapse
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
Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Re: form pdf
Posted: Mon Nov 07, 2016 01:08 PM

Thanks for this answer,

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

Thanks

Posts: 85
Joined: Wed Nov 19, 2014 01:04 PM
Re: form pdf
Posted: Mon Nov 07, 2016 01:49 PM
Regards

Yunus



FWH 21.02
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: form pdf
Posted: Tue Nov 08, 2016 02: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

Continue the discussion