Change the width of all lines in the PDF software

I made handwritten slides using the iPad application and found that the line is too thin to project on the large screen in the room.

Unfortunately, this application does not have the ability to change the stroke width later ... (geez.) But I have an exported PDF file.

As a programmer, I should be able to solve my problem programmatically, by changing the width of all lines in a PDF, say, twice.

So my question is what would be the easiest way to achieve my goal. Is there a Perl module that allows me to check all lines in a PDF, for example?

- Update

OK, I converted the PDF to a PS file through ps2pdf(which uses Ghostscript) and replaced 3 wwith 6 wetc. using my text editor. (here wis a macro expanding to setlinewidth.) Then I converted the resulting PS file back to PDF. The problem is resolved.

But is there a better way?

+3
source share
1 answer

You can use Inkscape to convert .pdf to .svg, parse it with some script (like Python, it doesn't matter), and then convert it back to .pdf. If this is not enough for programming, a command line option is available:

>inkscape -l test.pdf output.svg

And back after processing:

>inkscape -l processed.svg final.pdf
0
source

Source: https://habr.com/ru/post/1793027/


All Articles