Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Sep 2009
    Posts
    54
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Import Information Into PDF Documents - Please help

    Hey guys,

    just wondering if someone might be able to shed some light on this.
    I am looking for a way to insert peoples profiles into a mysql database and to be able to have several pdf documents to be able to be generated the information

    I have 10 people with their address, license number, etc...
    I also have 10 PDF documents which I need filled out with the information from each persons profile.
    So technically, what I need is to fill out all of the 10 forms for each person which would make it 10x10 = 100 PDFs

    So I would like to know if there is a way to create some sort of easy website for personal use to create each person with their information needed and have it auto import into the pdf document of choice.
    I do have adobe acrobat pro so I have the ability to specify form fields and all.

    Please assist someone.

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,324
    Thanks
    60
    Thanked 525 Times in 512 Posts
    Blog Entries
    4
    I've no idea if this will work as I've never tried it with a pdf file but have done so with other file types.

    Putting [__tags__] in the file, opening it using file_get_contents(), str_replace()'ing the tags and then file_put_contents() might work for you. The pdf format is very complex so it's possible that the [, ] and _ characters won't even be recognisable as-is but it might be worth a try.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • Users who have thanked tangoforce for this post:

    elite-fusion (03-24-2014)

  • #3
    New Coder
    Join Date
    Sep 2009
    Posts
    54
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Is there anyone in here that might be able to help me out create something like this. Of course a fee would be paid for this.

  • #4
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,324
    Thanks
    60
    Thanked 525 Times in 512 Posts
    Blog Entries
    4
    Ignore my previous post, I've just tried it and it doesn't work.

    Opening up the template pdf file in notepad++ reveals why.. it's a very complicated format.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #5
    New Coder
    Join Date
    Sep 2009
    Posts
    54
    Thanks
    4
    Thanked 0 Times in 0 Posts
    There is a much easier way, I have adobe reader pro and can use the Form Editor to set tags up in there, if you want I can set something up with a few dummy tags and send it over and you can try then. Let me know

  • #6
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,324
    Thanks
    60
    Thanked 525 Times in 512 Posts
    Blog Entries
    4
    It won't make any difference because I suspect the format will still save the tags completely differently.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •