FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to Fill a PDF Form
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
How to Fill a PDF Form
Posted: Tue Aug 02, 2011 11:06 PM
Hi everyone,

I am trying to fill a RADIO BUTTON using the PdfTk utility.



Does anyone knows how to place the selection of a especific Button using this tool???

I got the field names this way:
Code (fw): Select all Collapse
pdftk cuadro.pdf dump_data_fields output cuadro.txt

and got this information:
Code (fw): Select all Collapse
---
FieldType: Button
FieldName: seccion
FieldFlags: 0
FieldJustification: Left
FieldStateOption: 1
FieldStateOption: 2
FieldStateOption: 3
FieldStateOption: 4
FieldStateOption: 5
FieldStateOption: 6
FieldStateOption: Off
---


But I don't know how to place the selection.
I Hope somebody can help me with this situation....
Thanks in advance...

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: How to Fill a PDF Form
Posted: Wed Jun 24, 2015 03:33 AM
I know it's an old thread but just in case my answer might help someone that need the solution

Bayron,
1. Fill up the pdf form and saved it.
2. Use pdftk to dump the fdf of the filled pdf form
Code (fw): Select all Collapse
       pdftk filled_pdf_form.pdf generate_fdf output filled_pdf_form.dfd.txt

3. Study the generated fdf file to see how the value is specified
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion