next up previous
Next: File locations Up: Working with Files Previous: Compression


File Conversion and pdf and postscript manipulations

Creating a good pdf file from Latex source is harder than it should be; ps2pdf or convert will not necessarily do a good job on the text or the mathematical symbols, or either. See my section on this.

ps2ps simplifies postscript files
ps2pdf converts ps to pdf format
pdf2ps converts pdf to ps format
pdftops -eps convert pdf to ps without rasterizing lines
convert file.ext1 file.ext2 converts from format ext1 to format ext2, e.g. ps to pdf, bmp to ps
convert -enhance file.eps file.pdf may produce a sharper image with the -enhance option
ps2epsi converts ps to encapsulated postscript (i.e. with a bounding box and a preview)
gs does various conversions of postscript files
gs -dNOPAUSE -r[xres]x[yres]-sDEVICE=jpeg -sOutputFile=file.jpg file.ps convert ps to jpeg
latex2html converts LATEX to html
psfrag substitutes for text in ps files
psnup -nup n file.ps filenx.ps puts n pages to a page in a ps file
dvips -o file converts file.dvi to file.ps without printing
enscript -Pprinter -2 -r takes plain text and converts to ps, putting 2 on a page and printing
pdflatex creates pdf from LATEX
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=out.pdf -dBATCH in1.pdf in2.pdf in3.pdf merge pdf files
gs -sDEVICE=pdfwrite -dNOPAUSE -dQUIET -dBATCH -dFirstPage=m -dLastPage=n -sOutputFile=out.pdf in.pdf split or extract (pages m through n) from pdf files


next up previous
Next: File locations Up: Working with Files Previous: Compression
Chris Paciorek 2012-01-21