Licensing of PDF box

2016-12-01 Thread Bhushan More
Hi. I have two queries related to licensing of PDFbox library for use in android app 1) DIs this library free for commercial use in android app? 2) PDFbox internally uses some fonts file like Arial, If we use this lib and related font will it cause any font file licensing issue? Thanks,

question on getting location of bookmark

2016-12-01 Thread howardg
I want to find the x,y position of a bookmark in the pdf to be able to insert an image at that location. I can get the bookmark with the code below and looping through to find the one I need with getTitle PDOutlineItem current = outline.getFirstChild(); But, how would I use PDOutlineItem

Re: question on getting location of bookmark

2016-12-01 Thread howardg
thanks, can you elaborate? The API doc for getDestination shows that returns PDDestination and I don't see any methods that return the coordinates? Howard Howard Greenberg, CPA, CISA IBM Certified Application Developer/Instructor - IBM Notes and Domino The Learning Continuum Company, Ltd.

Re: question on getting location of bookmark

2016-12-01 Thread Tilman Hausherr
Am 01.12.2016 um 21:12 schrieb howa...@tlcc.com: thanks, can you elaborate? The API doc for getDestination shows that returns PDDestination and I don't see any methods that return the coordinates? There are 7 derived classes. That's why I mentioned that there are several types. For example,

Re: question on getting location of bookmark

2016-12-01 Thread howardg
thanks, I am missing something... My code uses getDestination() and recasts as PDPageXYZDestination. However, the dest is null. I must be missing something? PDDocumentOutline outline = pdfDoc .getDocumentCatalog().getDocumentOutline(); if( outline != null ){

Re: question on getting location of bookmark

2016-12-01 Thread howardg
thanks, I changed my code as shown below. However I can't cast the destination to the PDPageXYZDestination and it appears that it is a PDPageFitWidthDestination class. This class does not have the getLeft() and the page number returns -1 PDDocumentOutline

Text extraction and clip area

2016-12-01 Thread Andrea Vacondio
Hi, I had a couple of issues with text extraction and I tried to dig a bit into the code. As far as I can see the "current clipping area" is never used during text extraction, is this correct? My issue is with a form xobject where the bounding box clips out part of the text but that text is

Re: Text extraction and clip area

2016-12-01 Thread Andrea Vacondio
Hi Yan, thanks for the answer but that is not my issue. What I'm saying is that I think the PDFBox components responsible for extracting text (PDFTextStripper and PDFTextStripperByArea) don't consider the current clipping area, the way PageDrawer does.. or at least that's how it looks to me, so