Re: Extracting vector graphics from pdf

2017-02-28 Thread Peter Murray-Rust
hank you, Tilman! > > -Original Message- > From: Tilman Hausherr [mailto:thaush...@t-online.de] > Sent: Monday, February 27, 2017 9:38 AM > To: users@pdfbox.apache.org > Cc: u...@tika.apache.org > Subject: Re: Extracting vector graphics from pdf > > http://stackover

RE: Extracting vector graphics from pdf

2017-02-28 Thread Allison, Timothy B.
Thank you, Tilman! -Original Message- From: Tilman Hausherr [mailto:thaush...@t-online.de] Sent: Monday, February 27, 2017 9:38 AM To: users@pdfbox.apache.org Cc: u...@tika.apache.org Subject: Re: Extracting vector graphics from pdf http://stackoverflow.com/a/38933039/535646 This

Re: Extracting vector graphics from pdf

2017-02-27 Thread Manuel Aristarán
> On Feb 27, 2017, at 7:20 AM, Allison, Timothy B. wrote: > I'm currently extracting images from a whole lot of pdf files, however some > of images (or figures) are somehow not extracted. I'm thinking it might have > to do with the fact that those images are vector graphics (as usually the > c

Re: Extracting vector graphics from pdf

2017-02-27 Thread Tilman Hausherr
http://stackoverflow.com/a/38933039/535646 This allows to collect the lines. However it won't output an image. Tilman Am 27.02.2017 um 13:20 schrieb Allison, Timothy B.: PDFBox Colleagues, Any recommendations? Best, Tim -Original Message- From: Andisa

RE: Extracting vector graphics from pdf

2017-02-27 Thread Allison, Timothy B.
PDFBox Colleagues, Any recommendations? Best, Tim -Original Message- From: Andisa Dewi [mailto:theknight...@yahoo.com] Sent: Monday, February 27, 2017 5:32 AM To: u...@tika.apache.org Subject: Extracting vector graphics from pdf Hello guys, I'm currently e

Re: Extracting vector graphics from PDF

2012-05-08 Thread Peter Murray-Rust
Thanks Andrey, Here are the SVG files from the two versions (I apologize for the verbosity but people may want to inspect the paths: 1.7.0 paths only (glyphs) http://www.w3.org/1999/xlink"; color-rendering="auto" color-interpolation="auto" stroke="black" text-rendering="auto" stroke-linecap="squa

Re: Extracting vector graphics from PDF

2012-05-07 Thread Peter Murray-Rust
; > ** ** > > Andrey > > ** ** > > ** ** > > ** ** > > ** ** > > *Von:* peter.murray.r...@googlemail.com [mailto: > peter.murray.r...@googlemail.com] *Im Auftrag von *Peter Murray-Rust > *Gesendet:* Montag, 7. Mai 2012 15:24 > > *An:* Andrey Kuznetsov &

Re: Extracting vector graphics from PDF

2012-05-07 Thread Peter Murray-Rust
On Mon, May 7, 2012 at 1:31 PM, Andrey Kuznetsov wrote: > Peter, > > ** ** > > The COS output is horrible formatted, so I read only first line ;-) > Sorry - that is what COSDictionary.toString() gave. > > > It uses FontFile3 stream. > > FontFile3 stream contains font either in Co

Re: Extracting vector graphics from PDF

2012-05-07 Thread Peter Murray-Rust
On Mon, May 7, 2012 at 11:24 AM, Andrey Kuznetsov wrote: > Peter, > > ** ** > > super( fontDictionary ); > > sets field font in superclass (PDFont). > > ** ** > > Don’t worry about “Not implemented…” thing, its implemented in extending > classes (e.g. PDTrueTypeFont). > > ** ** >

Re: Extracting vector graphics from PDF

2012-05-07 Thread Peter Murray-Rust
On Mon, May 7, 2012 at 10:58 AM, Andrey Kuznetsov wrote: > Hi Peter, > > ** ** > > There are must be COSDictionary field called font (in PDSimpleFont). > > Can you dump it and post here? > > ** > // You mean fontDictionary , I imagine? public PDSimpleFont( COSDictionary fontDictio

Re: Extracting vector graphics from PDF

2012-05-07 Thread Peter Murray-Rust
On Mon, May 7, 2012 at 10:10 AM, Andrey Kuznetsov wrote: > Hi Peter, > > ** ** > > did you tried to trace from where setFont() get called? > > ** ** > > Best Regards > > ** ** > > Andrey > > > Andrey - this is very helpful of you - I hope you have time to comment on the stack trac

Re: Extracting vector graphics from PDF

2012-05-07 Thread Peter Murray-Rust
I have followed Andrey's recommendation and am able to analyze graphics primitives written to MyGraphics2D object (I generally use Batik's SVGGraphics2D as I have an SVG toolkit for analyzing the primitives). I am having difficulty with the Font information. On Mon, Apr 2, 2012 at 2:51 PM, Andrey

Re: Extracting vector graphics from PDF

2012-04-26 Thread Peter Murray-Rust
On Mon, Apr 2, 2012 at 2:58 PM, Peter Murray-Rust wrote: > > > On Mon, Apr 2, 2012 at 2:51 PM, Andrey Kuznetsov wrote: > >> Peter, you have to pass your own Graphics2D object (with some overridden >> methods) to pdfbox. >> >> I am making good progress in capturing graphics primitives by using th

Re: Extracting vector graphics from PDF

2012-04-02 Thread Peter Murray-Rust
> > > -Ursprüngliche Nachricht- > Von: peter.murray.r...@googlemail.com > [mailto:peter.murray.r...@googlemail.com] Im Auftrag von Peter Murray-Rust > Gesendet: Montag, 2. April 2012 15:27 > An: users@pdfbox.apache.org > Betreff: Re: Extracting vector graphics

Re: Extracting vector graphics from PDF

2012-04-02 Thread Peter Murray-Rust
On Mon, Apr 2, 2012 at 1:14 PM, Andrey Kuznetsov wrote: > Forget hacking into the stream. > Hack into Graphics2D - this is much easier and will give you shape in right > size and transform. > Many Thanks Andrey, I did something like that before and got a separate graphics stream which I was abl