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 5 of 5
  1. #1
    New Coder
    Join Date
    Dec 2006
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    auto fill in pdf from database

    Hello all,

    we have a pdf that we want to auto fill in some of the fields automatically after users enter in data into a web page with basic textbox controls.

    i dont need to create a pdf, i need to fill in the pdf based off the user input from the webpage.

    any suggestions on where i should start looking to do this? ive seen iTextSharps site, but this seems to be a solution to generate a new pdf then go from there.. we have an existing pdf (which acts as a application) that we need to use, just fill in the fields from our webpage.

    anyone done this before and know a solution i can use?

    thanks in advance

  • #2
    Regular Coder
    Join Date
    Apr 2009
    Posts
    244
    Thanks
    1
    Thanked 20 Times in 20 Posts
    Hey paulweb,

    I think a third-party tool, such as iTextSharp, would be the best way to go in your situation. Using iTextSharp, you can in fact write to an existing PDF file. For example, have a look at this link and scoll down to "Examining step 4: adding content": http://itextsharp.sourceforge.net/tutorial/ch01.html

    Also, since I'm guessing this file will periodically both be written to and read from, I'd pay extra attention to it's read/write attributes, locking, and things of that nature. All this I'm sure can be controlled with iTextSharp, and can be found in their documentation.

    Oh, and lastly, I would also pay very close attention to the machine's CPU/Memory/resources while doing the write process. You never know how some third-party tool might handle it(that's not to say that tools/software on the market don't mess up of course). As a test, try writing a bunch of lines to the file inside a loop.

    Mike

  • #3
    New Coder
    Join Date
    Dec 2006
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks Mike,

    ill take a look at iTextSharp again, i thought this was for pdf creation.. thanks for pointing out that it will write to existing pdf as well.

  • #4
    New Coder
    Join Date
    Dec 2006
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ya... this is under step 4 , which is in chapter 1 "Creating a Document" ... seems that this is for writing to a pdf that was created with iTextSharp??

    ill have to read more, but if you know FOR SURE that it can write to an already created pdf please let me know.

  • #5
    Regular Coder
    Join Date
    Apr 2009
    Posts
    244
    Thanks
    1
    Thanked 20 Times in 20 Posts
    Well, I don't know 100%, but I'm pretty sure it's possible. I guess the only way to find out is to give it a shot.


  •  

    Posting Permissions

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