I have a PDF document that was improperly scanned, so that the content (images) only occupies the top half of the portrait page.
I'd like to crop all the pages, to remove the empty bottom half, and produce a new PDF, that would thus be in landscape format.
How do I do that using pdflatex?
I tried, one at a time:
\usepackage[paperwidth=\8.27in,paperheight=\5.85in]{geometry}
\includepdf[pages=1-,trim=1in 10in 1in 1in,clip]{myfile.pdf}
\includepdf[pages=1-,trim=1in 10in 1in 1in,clip,landscape]{myfile.pdf}
\includepdf[pages=1-,viewport=0 0 5in 5in]{myfile.pdf}
among other things, but nothing works. The best I got so far is that the content is cropped, but the page is not resized.
\8.27in
? (with the backslash)\8
with a argument of 0.27 inches to make absolutely nothing, because\8
is an undefined control sequence (i.e., a non existing command) that produce a fatal error.