How to Fill a PDF Form

How to Fill a PDF Form

Postby Bayron » Tue Aug 02, 2011 11:06 pm

Hi everyone,

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

Image

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

I got the field names this way:
Code: Select all  Expand view
pdftk cuadro.pdf dump_data_fields output cuadro.txt

and got this information:
Code: Select all  Expand view
---
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
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: How to Fill a PDF Form

Postby hua » Wed Jun 24, 2015 3: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: Select all  Expand view

       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
hua
 
Posts: 1050
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 40 guests