Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7938799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:54:36+00:00 2026-06-03T22:54:36+00:00

when I do pdftk samplex.pdf dump_data_fields I get back fields with format like: FieldType:

  • 0

when I do pdftk samplex.pdf dump_data_fields

I get back fields with format like:

  FieldType: Text
  FieldName: form1[0].Page1[0].Header[0].RepeatHeader[0].Project[0]
  FieldNameAlt: Project
  FieldFlags: 0
  FieldJustification: Left

I have a sample that works with pdftk in filling in the fields, but it is a simpler format and the FieldNames are things like ‘name’.

I try to merge the following fdf to get my infill for this field (as you can see below I try both the long name and the short name), but it doesn’t seem to be working, any ideas on why?:

%FDF-1.2
%âãÏÓ
1 0 obj
<< 
/FDF << /Fields [ << /V (Something wonderful!)/T <br/>(form1[0].Page1[0].Header[0].RepeatHeader[0].Project[0]) /ClrF 2 /ClrFf 1 >> 
<< /V (Something)/T (Activity) /ClrF 2 /ClrFf 1 >> 
<< /V (Something else)/T (Project) /ClrF 2 /ClrFf 1 >> 
<< /V (Arthur, King of the Britons)/T (name) /ClrF 2 /SetFf 1 >> 
<< /V ()/T (submit_name) /ClrF 2 /ClrFf 1 >> 
<< /V ()/T (name_border) /ClrF 2 /ClrFf 1 >> 
<< /V ()/T (name_border_red) /ClrF 2 /ClrFf 1 >> 
<< /V (I seek the Holy Grail.)/T (quest) /ClrF 2 /SetFf 1 >> 
<< /V ()/T (submit_quest) /ClrF 2 /ClrFf 1 >> 
<< /V ()/T (quest_border) /ClrF 2 /ClrFf 1 >> 
<< /V ()/T (quest_border_red) /ClrF 2 /ClrFf 1 >> 
<< /V (Blue... no, yellow!)/T (color) /ClrF 2 /ClrFf 1 >> 
<< /V ()/T (submit_color) /ClrF 2 /ClrFf 1 >> 
<< /V ()/T (color_border) /ClrF 2 /ClrFf 1 >> 
<< /V ()/T (color_border_red) /ClrF 2 /ClrFf 1 >> 
<< /V ()/T (message_red) /ClrF 2 /ClrFf 1 >> 
<< /V ()/T (message_green) /ClrF 2 /ClrFf 1 >> 
] 
>> 
>> 
endobj
trailer
<<
/Root 1 0 R 

>>
%%EOF
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T22:54:38+00:00Added an answer on June 3, 2026 at 10:54 pm

    How are you generating your FDF? Here is an example FDF modified from a form I use pdftk with

    field hierarchy like:

    form1[0].Page1[0].Title[0]
    form1[0].Page1[0].Item[0]
    form1[0].Page1[0].Year[0]
    form1[0].Page1[0].Desc[0]

    %FDF-1.2 %���� 1 0 obj << 
        /FDF << 
            /Fields [
                << /T (form1[0]) /Kids [ 
                    << /T (Page1[0]) /Kids [ 
                        << /T (Title[0]) /V (Android Phone) /ClrF 2 /ClrFf 1 >> 
                        << /T (Item[0]) /V (Evo 3D) /ClrF 2 /ClrFf 1 >>
                        << /T (Year[0]) /V (2011) /ClrF 2 /ClrFf 1 >> 
                        << /T (Desc[0]) /V (3D Smart Phone) /ClrF 2 /ClrFf 1 >> 
                    ] >> 
                ] >> 
            ] 
        >> 
    >> endobj trailer << /Root 1 0 R >> %%EOF
    

    so you dont have the /Kids wrappers, and you arent using the field index numbers. Try modifying your FDF like my example to see if that works.

    If you are a PHP user, you should check out pdftk-php. I use it on our server to inject mysql data into livecycle pdfs for a variety of uses and it takes care of the pdftk fdf injection part very nicely: http://www.andrewheiss.com/blog/2009/06/19/pdftk-php-officially-released/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used pdftk to uncompress a PDF and then opened it as a text
I'm trying to use PDFTK to rotate pages in my PDF document. Executing something
I have a PDF file. I would to get it height and width in
I'm using php with PDFTK on Ubuntu. When filling a PDF with data, I
I'm trying to send a pdf back to the user but I'm having serious
Within my ruby program, I'd like to open an existing PDF file, set the
I use pdftk to compress a pdf using the following command line pdftk file1.pdf
I'm using pdftk for flattening PDF files on server. For this purpose I use
I'm using pdftk to fill in a PDF form with an XFDF file. However,
I have a series of PDFs named sequentially like so: 01_foo.pdf 02_bar.pdf 03_baz.pdf etc.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.