Hi Tilman; Thanks for the advice. If you notice my attached file, the Account Number: 0123456789 location will be fixed on every report. Does this mean PDFTextStripperByArea will be able to read it?
What if the [First Name], [Last Name] & [Address] is an editable field. Will iText be able to fill them will information that I obtain from a database? Thanks; andrew On Sat, Oct 4, 2014 at 6:36 PM, Tilman Hausherr <[email protected]> wrote: > Hi, > > reading an area can be done with PDFTextStripperByArea, see in the source > code or in stackoverflow for examples. If you know where it is. If you > don't know where it is (e.g. invoice processing), then you'll have to guess > by the context. > > Writing at a placeholder is more difficult. Better don't create the > placeholder at all, just find out the coordinates and draw your text. > > https://pdfbox.apache.org/cookbook/documentcreation.html > > Tilman > > > > Am 04.10.2014 um 03:28 schrieb andrew lee: > > Hi; >> I have a pdf report as per attached file. It contains the following text. >> Account Number: 0123456789 >> [First Name] >> [Last Name] >> [Address] >> >> Using PDFBOX, can I read the Account Number value "0123456789" so that i >> can cross check with my oracle database, select out the First Name, Last >> Name and Address and finally fill it into the marker [First Name], [Last >> Name] & [Address] in the PDF file. Btw i was told that i will be given an >> editable pdf report. also >> >> >> Kindly advice. tq >> > >

