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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:11:37+00:00 2026-05-23T15:11:37+00:00

I currently have a project there are a number of forms that are processed

  • 0

I currently have a project there are a number of forms that are processed and stored in the DB. Upon successful completion an admin is notified by email with the contents of that form submission.

The problem is for one of these forms i need it to look exactly like the mail order version which I have in PDF format.

So I have two basic options:

  1. Figure out all the coordinates of the “field” i need to write to, and then overlay my drawn text at those coordinates
  2. Turn the pdf into a pdf form using Acrobat Pro’s form wizard and then set the field values programmatically

Option 1 i know is doable. I’ve done similar things before. The problem is the form is pretty complex and there are A LOT of coordinates to figure out… Moreover, there is a lot of trial and error to this process.

Option 2 seems like it would be easier so long as i can access the fields through iteration or name/id and just set the values.

So my question is, does Zend_Pdf support the manipulation of PDF form fields? I dont see anything in the API other than Submit and Reset form actions that would denote it supports this.

Additionally, if there are other OO F/OSS PDF libraries that would support option 2 i would be interested in hearing about them as well as any alternative approaches.

  • 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-23T15:11:37+00:00Added an answer on May 23, 2026 at 3:11 pm

    Sorry this is a bit late but thought this may be useful…

    If you have access to add extra components to your server then you can use PDF Labs PDF Tooklit (pdftk) library – it is a command line utility but can obviously be accessed by system/exec/passthru commands in PHP. You can see pdftk info here: http://www.pdflabs.com/docs/pdftk-man-page/ PDFTK will allow you to merge PDFs, add background PDFs and fill form fields within a PDF (plus loads more) – see the fill_form switch.

    If you can add pdftk to your server then you can also use Andrew Heiss’s pdftk-php class to make it easier to update the form fields in your pdf from the info pulled from your DB – you can see more info at: https://github.com/andrewheiss/pdftk-php/

    One last comment – if you are ever wanting to create PDFs on the fly directly from HTML then by far the best solution is WKHTML2PDF – http://code.google.com/p/wkhtmltopdf/ – it basically works like a PDF screenshot of any HTML screen (a little more complex than that but you get the idea).

    As you can probably tell I have just been working on a very similar problem and have gone through soooo many headaches to get a working solution.

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

Sidebar

Related Questions

I currently have the DatePicker in my project but there are problems due to
I'm currently writing a ToDo-Script for a project i have running. Now there is
Currently I have a simple maven project that is building a jar file and
I have a project that I'm currently working on but it currently only supports
I have a project that references a number of open source libraries, some new,
I currently have a pre-commit hook in my mercurial project that gives the user
I currently have a rails project that looks to let customers authenticate their account
Currently we have a project with a standard subversion repository layout of: ./trunk ./branches
Currently we have a project to implement an Internet Banking site, and we are
I currently have a recently started project in development with a 2010 target date

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.