[texhax] Need help to generate e-book
Ulrike Fischer
news3 at nililand.de
Sat Aug 11 19:07:59 CEST 2012
Am Sat, 11 Aug 2012 09:22:54 -0400 schrieb Michael Barr:
> I am trying to generate a file appropriate for loading on an e-book.
> There is some front matter but the main body consists in using pdfpages to
> load a book that I scanned into a pdf file. The main thing I want to so
> is get rid of the margins, since margins are not needed (and, more
> importantly, not wanted) in an e-book. The pdfpages manual has this
> paragraph:
>
> Especially the ‘trim’ and ‘clip’ options of \includegraphics are quite
> useful, if only parts of a page should be inserted. (Maybe to cut off the
> header and footer of the inserted pages.) Just use the ‘trim’ and ‘clip’
> options as if they were options of \includepdf. They will be passed to
> \includegraphics internally.
>
> The manual for the graphics package says nothing about a "trim" or "clip"
> options.
You should put more trust in the pdfpages manual. It doesn't mention
trim and clip without reason.
\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[clip,trim=4cm 6cm 4cm 6cm,fitpaper]{testinput}
\end{document}
(trim starts left and goes counterclockwise.)
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
More information about the texhax
mailing list