¡Esta es una revisión vieja del documento!
# Pdf - Fu
Convert images to a multi-page pdf
```bash convert -adjoin -page A4 *.jpeg multipage.pdf
img2pdf –pagesize A4 –auto-orient –fit into \
- .jpg \
- o xxxxx.pdf
```
Convert pdf into multiple png files
```bash gs -sDEVICE=pngalpha -sOutputFile=FILENAME%d.png -rRESOLUTION PDFFILE ```
Convert PDF to JPG
```bash for file in `ls *.pdf`; do
convert -verbose -colorspace RGB \
-resize 800 -interlace none -density 300 \
-quality 80 $file ${file/pdf/jpg}
done ```
Create .pdf from .doc
```bash oowriter -pt pdf your_word_file.doc ```
Extract JPEG images from a PDF document
```bash pdfimages -j foo.pdf bar ```
Extracting a range of pages from a PDF, using GhostScript
```bash gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -dFirstPage=14 \ -dLastPage=17 -sOutputFile=OUTPUT.pdf ORIGINAL.pdf ```
Stamp a text line on top of the pdf pages.
```bash echo “This text gets stamped on the top of the pdf pages.” | \ enscript -B -f Courier-Bold16 -o- | ps2pdf - | \ pdftk input.pdf stamp - output output.pdf ```