[pdftex] pdftex = acrobat ?

Francesc Serra-Graells paco.serra at cnm.es
Sat Oct 22 01:20:40 CEST 2005

Rolf.Niepraschk at ptb.de wrote:
> Thierry wrote:
>> suppose I just want to make a PDF from a collection of JPEG files.
>> is there an easy way so that each page of the PDF has exactly the
>> cropbox set to the JPEG dimension?
> Do you mean something like this?
> % collection.tex
> \listfiles
> \documentclass{minimal}
> \usepackage{graphicx}
> \usepackage[active,graphics,tightpage]{preview}
> \begin{document}
> \includegraphics{pic1}
> \includegraphics{pic2}
> \includegraphics{pic3}
> \end{document}
> %----------------------
> pdflatex collection.tex
> ...Rolf

Apart from the excellent proposal from Rolf, and just to supply a practical
example for these two wonderful open source tools, you can try a non-LaTeX



MSWindows script example (e.g. jpg2pdf.bat):

cd "%1"
for %%I in (*.jpg) do "imagemagick-path\convert.exe" -compress jpeg "%%I"
"pdftk-path\pdftk.exe" *.pdf cat output "%1.pdf"

so, if the JPEG collection is in <path>, then:

jpg2pdf <path>

to obtain <path>.pdf! In fact, this method is valid for any file format
supported by ImageMagick, currently over 90 including GIF, JPEG, JPEG-2000,
PNG, PDF, PhotoCD, TIFF and DPX (see

Hope it is of interest...


Dr. Francesc Serra-Graells
Integrated Circuits and Systems Group
Institut de Microelectrònica de Barcelona
Centre Nacional de Microelectrònica (CSIC)
Post: Campus UAB, E-08193 Bellaterra, Spain
Tel: +34 93 594 77 00
Fax: +34 93 580 14 96
mailto:paco.serra at cnm.es

More information about the pdftex mailing list