Hi Tilman; Do you have a sample script on how to read the Account Number value from the attached file and output it into a text file? Many thanks.
On Sun, Oct 5, 2014 at 1:02 AM, Maruan Sahyoun <[email protected]> wrote: > > Am 04.10.2014 um 15:20 schrieb Tilman Hausherr <[email protected]>: > > > Am 04.10.2014 um 13:38 schrieb andrew lee: > >> 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? > > > > Yes > > > >> What if the [First Name], [Last Name] & [Address] is an editable field. > >> Will PDFBox be able to fill them will information that I obtain from a > >> database? > > > > Don't know, because it might still look like a field. If you're mailing > the result, you don't want any lines. > > if the field doesn’t define borders/lines around it there shouldn’t be any > after filling the form fields > > BR > > Maruan > > > > > Tilman > > > >> > >> 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 > >>>> > >>> > > > >

