Showing posts with label pdf. Show all posts
Showing posts with label pdf. Show all posts

Tuesday, March 20, 2012

Extracting Pages from PDF

First, install PDFTK on Linux.

Then, do this command:

pdftk foo.pdf cat 2-3 output abstract.pdf dont_ask

Where foo.pdf is the original PDF file, 2-3 is the range of pages (you can type 2-end to extract to EOF), and abstract.pdf is the output PDF file.

Wednesday, September 9, 2009

Converting SVG to PDF

Inkscape output to PDF or save to PDF is no good. It changes the fonts to ugly Bitstream Vera whatever. Use Batik Rasterizer instead.


Install it anywhere you like. In my case, it's located in /opt/batik.

To convert files, use the command as shown (assuming you're in the directory where the SVG file is located):

$ java -jar /opt/batik/batik-rasterizer.jar -m application/pdf Figure1.svg