Posts

Showing posts from May, 2022

Text documents: from PDF to vector images

Image
Subject of this article Recently I needed to convert some documents from PDF format, containing text generated by LaTeX in GNU/Linux operating systems, into vector images. While avoiding conversion from online services, I basically found three interesting solutions: two in command-line mode ( pdf2svg and pdftocairo ) and one, very famous, in graphical mode ( Inkscape ). In this article I report my evaluations highlighting some differences deriving from the source of the PDF documents and the behaviour of three Linux distributions. Some interesting references on the subject: - Exporting .png or .jpg files directly from LaTeX code. Possible? - LaTeX/Export To Other Formats pdf2svg It’s a command line software, very easy to use, reliable and fast. The followin is the command scheme: pdf2svg < in file.pdf > < out file.svg > [ < page no > ] You can specify the number of pages to be exported. Ideal for quick and direct o