News for hackers. Stuff that matters.
Re:PDF processing and analysis with open-source tools by POPOSYS on Monday October 10, 2022 @03:40AM (#33148800)
This is interesting. Does exist some kind of extraction of the PDF generating part of inkscape, so you do not have to start inkscape all over again for generating PDF files? Or is there a good and fast command line tool, that can produce PDF from Inkscape PDF files?
Re:PDF processing and analysis with open-source tools by tkp on Monday October 10, 2022 @04:10AM (#33148995)
Inkscape can be used from the commandline to export pdfs : https://wiki.inkscape.org/wiki/Using_the_Command_Line
Re:PDF processing and analysis with open-source tools by franga2000 on Monday October 10, 2022 @05:32AM (#33149454)
Inkscape's format is just SVG, so any tool that can do SVG-PDF will do. I've seen cairosvg, imagemagick and rsvg used for this, but if your deployment allows, it does make the most sense to use inkscape from the CLI to avoid any inconsistencies:

    $ inkscape rendered.svg --export-pdf=output.pdf
I think there's also a way to do batch processing where you don't need to spin up a new inkscape process for each file (which takes time), but I don't remember how it works anymore.