If I remember correctly the Apache Batik project offers a Graphics device context to write to and produce SVG.
https://xmlgraphics.apache.org/batik/using/svg-generator.html

Thus you could pass this g2d to PDFRenderer.renderPageToGraphics().

What you could do is to set a cropbox in your PDF that shows only the part you want to extract.

Tilman

Am 07.03.2019 um 07:32 schrieb European Neuroscience Center:
The Copyright is not an issue, because we have a contract and have
rights. The main goal is to automate a process which takes a while and
repeat many time. So, using Adobe Illustrator or free Inkscape editor is
not option. We have access to the sources (Website), but this is time
consuming. Partly, there are web services, which we can use, but not for
all tasks. The PDF files are generated automatically by schedule, so this
way can be fully automated.

I will try to find a way to convert this PDF to SVG, but most importantly
for me is to be able to take some parts of each page, not whole page. Do
you know how this can be done? Are there any examples?


Thank you.


On Thu, Mar 7, 2019 at 1:10 AM Jan Tosovsky <[email protected]> wrote:

On 2019-03-06 European Neuroscience Center wrote:
On 2019-03-06 Tilman Hausherr wrote:
I looked at your PDF file with PDFDebugger, no SVG there.
Just PDF vector graphics.
What is the way to extract this PDF vector graphics in XML or
SVG format?
During a typical conversion the SVG syntax is translated to the PDF
syntax. Not all features can be translated 1:1 so the result can be
degraded. It applies also for the reverse process.

You can extract the graphics via many vector editors like Adobe
Illustrator or free Inkscape editor.

But it is always better to have the original source (SVG chart) or even
better the original data so you can generate that chart as you like.

Btw seeing the copyright notice in the footer I suppose any reverse data
parsing sounds like intellectual property infringement.

Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to