You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Florian Fleischer <fl...@yahoo.de> on 2013/01/30 13:28:52 UTC

retrieving graphical coordinates

Hi,

I am wondering if it is possible with PDFBox to get the coordinates of a 
graphic object such as Rectangle, Line etc.... if not, is there any 
chance to wait for it in a new version of PDFBox.
Best Regards

Florian

Re: retrieving graphical coordinates

Posted by Peter Murray-Rust <pm...@cam.ac.uk>.
On Wed, Jan 30, 2013 at 12:28 PM, Florian Fleischer <fl...@yahoo.de>wrote:

> Hi,
>
> I am wondering if it is possible with PDFBox to get the coordinates of a
> graphic object such as Rectangle, Line etc.... if not, is there any
> chance to wait for it in a new version of PDFBox.
> Best Regards
>

PDF creates Text (normally single characters), Paths (one or more curves
which may or may not be straight lines and may or may not be closed or
intersecting), and Pixel (Bit) maps. There are no rectangles or lines or
circles  as such. You have to guess these from the paths.

We do this in http://bitbucket.org/petermr/pdf2svg and other sibling
projects. We aim to extract high-level graphical objects from these paths.
It's all F/OSS - you are welcome to use what we have so far. I am not aware
of others doing the same at least in Open projects.

P.


> Florian




-- 
Peter Murray-Rust
Reader in Molecular Informatics
Unilever Centre, Dep. Of Chemistry
University of Cambridge
CB2 1EW, UK
+44-1223-763069