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 1037943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:54:45+00:00 2026-05-16T14:54:45+00:00

While attempting to find a way to merge existing PDF files and forms, I

  • 0

While attempting to find a way to merge existing PDF files and forms, I came across Sid Steward’s PDFTK and then found Andrew Heiss’ PDFTK-php Class (code.google.com/p/pdftk-php/; http://www.andrewheiss.com/blog/2009/07/29/installing-pdftk-php/). The idea seemed so simple, but when I tried it on my Windows 2003 Server and on my Windows XP virtual PC I get the same error trying to fill_form using a FDF generated form Andrew’s example code. I went ahead and changed Andrew’s code around to see what the command line it was running. Then typed this into a command prompt window to see the error.

The command line looks like this:
pdftk example.pdf fill_form fdf1b44.tmp output test.pdf flatten
(PDFTK is in my System PATH and all the other files are located in the current directory)
The example.pdf is generated as a 0KB file and an error pops up of:

Unhandled Java Exception:

java.io.CharConversionException
 at 0x0056175e (Unknown Source)
 at 0x00561c52 (Unknown Source)
 at 0x00561d03 (Unknown Source)
 at 0x0057692d (Unknown Source)
 at 0x0055f64d (Unknown Source)
 at 0x006bc0ad (Unknown Source)
 at 0x006994e0 (Unknown Source)
 at 0x00567a96 (Unknown Source)
 at 0x0056e8f2 (Unknown Source)
 at 0x0056e92c (Unknown Source)
 at 0x00445fa6 (Unknown Source)
 at 0x0048b15e (Unknown Source)
 at 0x0048b5b8 (Unknown Source)
 at 0x0048c238 (Unknown Source)
 at 0x0046c81f (Unknown Source)
 at 0x00469301 (Unknown Source)
 at 0x004666a6 (Unknown Source)

The results are identical for the Windows XP virtual pc and the Windows 2003 Server. I’ve found very little on this issue and only possibly an entry that states Sid used a version of gcc to compile pdftk which had some poor java character support. I downloaded Sid’s Source files to take a look, but it truely is beyond my scope of knowledge.

  • 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-05-16T14:54:46+00:00Added an answer on May 16, 2026 at 2:54 pm

    Found the answer on Andrew’s site by Adam De Fouw. Apparently the copy of PDFTK-PHP out there for download has a corrupt version of the example.pdf file. So I wasn’t the only one smacking my forehead trying to figure it out. See Adam’s answer(http://www.andrewheiss.com/blog/2009/07/29/installing-pdftk-php/) below:

    Adam De Fouw 05/10/2010 10:24 PM in reply to Josh

    http://pdftk-php.andrewheiss.com/example/exampl…

    Use this example.pdf on Andrew’s site instead of the version on GitHub. I was pulling my hair out for the past 2 hours trying to figure out why it wasn’t working. Turned out that embedded Mac fonts were my nemesis, as Andrew alluded to.

    Use that PDF, and it should work for you.

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

Sidebar

Related Questions

While attempting my first sub-class in Objective-C I have come across the following warning
Usually one comes across this problem in python3.0 while attempting a split() method on
While attempting to get an old svn dump of a project under git control,
While attempting to link with QT 4.5 release, I run into this error message
Occasionally while attempting to save a Crystal Report that I'm working on in VS2008,
Note : No MFC No ATL Using Visual C++ While attempting a connection between
I'm attempting to mimic (or find a preexisting component) that mimics the zoom slider
I have searched & searched but I seem unable to find a way to
I am attempting to write (or expand on an existing) graph search algorithm that
I'm seeing a problem while attempting to run a java servlet under eclipse (Ganymede),

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.