Notas de Luis

Pdf - Fu

Convert images to a multi-page pdf

convert -adjoin -page A4 *.jpeg multipage.pdf
 
img2pdf --pagesize A4 --auto-orient --fit into \
    *.jpg \
    -o xxxxx.pdf

Convert pdf into multiple png files

gs -sDEVICE=pngalpha -sOutputFile=FILENAME%d.png -rRESOLUTION PDFFILE

Convert PDF to JPG

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

oowriter -pt pdf your_word_file.doc

Extract JPEG images from a PDF document

pdfimages -j foo.pdf bar

Extracting a range of pages from a PDF, using GhostScript

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.

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
computing/apps/pdf-fu.txt · Última modificación: por 127.0.0.1