Page LayoutHow to View Page Dimensions of PDF?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

How to View Page Dimensions of PDF?

Post by insipidtoast »

I have an interesting situation. I had to correct a few pages from my book before sending just those pages back to the printer for printing. I used the pdfpages (to include only a few pages from my pdf) option to select just a few pages from the pdf file of my book. The printer wants me to send each corrected page as its own separate pdf document.

The printer said that the corrected pages are a quarter inch smaller than they are supposed to be. I have no idea why, because I am looking at my latex preamble (the one from which I generated the pdf file of my book) and it has the following code:

Code: Select all

  \usepackage[
       noinfo,
       cam,
        width=6.25in,         % the width of the galley
       height=9.25in,        % the height of the galley
       center                % actual page is centered on the galley
     ]{crop}
The pages should all export at the above dimensions because the book is going to be 6x9. After entering the above code the page dimensions will obviously be 6.25x9.25 with quarter-inch crop marks.

So, why does the printer tell me that the corrected pages I sent them (the ones that I extracted from the pdf file of the book) are only 6"x9". I extracted them from a pdf document that was set at 6.25x9.25, so why aren't they the same dimensions?


Also, simpler question: how do I view the page dimensions of a pdf document once I have created it? I need to be able to confirm that I've done things properly so I don't have to keep wasting my time.
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Re: How to View Page Dimensions of PDF?

Post by insipidtoast »

Well I think I know the answer to my own question: it's because the parameters of the new document override the parameters of the inserted document.

In this case, I had the page layout set at 6x9 instead of 6.25x9.25.

The printer also just told me that the crop marks were wrong one one side of the page though, but not on the other. Hah I have no idea how that happened.
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class
mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

How to View Page Dimensions of PDF?

Post by mas »

insipidtoast wrote:I had to correct a few pages from my book before sending just those pages back to the printer for printing. I used the pdfpages (to include only a few pages from my pdf) option to select just a few pages from the pdf file of my book. The printer wants me to send each corrected page as its own separate pdf document.
Glad that you have found an answer to your problem. I have a suggestion for these kind of situations. Use pdftk. It is the swiss army knife for pdf's.

Your problem could have been solved easily with

Code: Select all

pdftk inputfile.pdf cat p1-p10,p15 output new.pdf
There is no need to create another TeX file just to extract some pages. That way the document settings are not altered.

Regards.

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Re: How to View Page Dimensions of PDF?

Post by insipidtoast »

Great suggestion. Thanks!
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class
Post Reply