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

Friday, October 8, 2010

Compressing a PDF file

To compress a PDF file:

Open Preview, in your Applications folder.


Choose File > Open, select the PDF file to compress, and then click Open.


Choose File > Save As, choose Reduce File Size from the Quartz Filter pop-up menu, and choose a name and location for the new PDF file.


Click Save.

Wednesday, December 30, 2009

Print documents to pdf on the commandline


sudo apt-get install cups-pdf

# Find out pdf printer name under "System > Administration > Printing"
# In my case it's named "PDF"

openoffice.org -norestore -nofirststartwizard -nologo -headless -pt PDF test.odt

Thursday, September 17, 2009

Best way to edit pdf files in Linux

First convert pdf to a text file

sudo apt-get install poppler-utils
pdftotext file.pdf

The above will create a file.txt which you can then use OpenOffice to edit to your hearts content and save it back into a pdf file.

UPDATE

I've found another way to edit pdf file.

- Use gimp
- Split & merge using pdftk **

**
Can use gs command tool too
gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=out.pdf in1.pdf in2.pdf in3.pdf ...

Annotate over PDF files using flpsed in Linux

Description

flpsed is a WYSIWYG PostScript annotator. You can't remove or modify existing elements of a document. But flpsed lets you add arbitrary text lines to existing PostScript documents (PostScript is a registered trademark of Adobe Systems Incorporated).

sudo apt-get install flpsed

Disadvantages

- Only text annotation
- Cannot add image files. --> digital signatures