Parse Page

Parse Page

Forum member · Dec 10, 2005
Hi, Is it possible to parse PDF page and extract text from it or search for specific phrase and get its position(x,y)? Thanks.

Re: Parse Page

Forum member · Dec 10, 2005
I talk about existed pdf page...

Re: Parse Page

Support · Dec 10, 2005
It is not possible to easily retrieve text or the location of it in an existing PDF. It is possible to get the entire page's content stream, but this would need to be parsed and the text may or may not be readable depending of the encoding used by its font. This is theoretically possible with some PDFs, but would involve some complex parsing. Take a look at the PdfPage class's getContents method for more details: PdfPage.getContents() Method Thanks, ceTe Software Support Team