GeneralChanging default zoom when generating PDF file?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Spectrum
Posts: 14
Joined: Thu May 17, 2007 9:08 pm

Changing default zoom when generating PDF file?

Post by Spectrum »

Can you set the default zoom when generating a PDF file with PDFLaTeX? Apparently, PDFs are born with a default zoom that overrides the "initial zoom" option in the Acrobat Reader. My files always open with the "fit page" zoom. I would like them to open with "fit width" instead.

Can this be done, and how?

Thanks in advance.

Recommended reading 2024:

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

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

Spectrum
Posts: 14
Joined: Thu May 17, 2007 9:08 pm

Re: Changing default zoom when generating PDF file?

Post by Spectrum »

Never mind, I found the answer myself. :D

Using the hyperref package, you can add the option "pdfstartview=foo", where "foo" can be, for instance, "FitH", meaning "fit horizontally" (the same thing that in Adobe Reader is called "fit width".

More information can be found in the documentation to the hyperref package.
pfjorgeo
Posts: 6
Joined: Fri Mar 30, 2007 11:28 pm

Re: Changing default zoom when generating PDF file?

Post by pfjorgeo »

Hello, if you're using the hyperref package, you have to use the option pdfstartview:

\usepackage[pdfstartview=FitH]{hyperref}

where FitH is for "Fit Horizontal". The problem with hyperref is that the default pdfstartview is FitPage (I don't remember if this is really the actual command). Remember you can use more than one option when loading this package. If this is not the zoom you want, you can search in the hyperref manual for more options for the start view.

Finally, when you DON'T use the hyperref package with pdfTeX, the default pdf start view is fit horizontal.
Spectrum
Posts: 14
Joined: Thu May 17, 2007 9:08 pm

Changing default zoom when generating PDF file?

Post by Spectrum »

pfjorgeo wrote: Hello, if you're using the hyperref package, you have to use the option pdfstartview:

\usepackage[pdfstartview=FitH]{hyperref}

where FitH is for "Fit Horizontal". The problem with hyperref is that the default pdfstartview is FitPage (I don't remember if this is really the actual command). Remember you can use more than one option when loading this package. If this is not the zoom you want, you can search in the hyperref manual for more options for the start view.

Finally, when you DON'T use the hyperref package with pdfTeX, the default pdf start view is fit horizontal.

Um, yeah, thanks, but this is exactly what I said myself in the post above. :P
pfjorgeo
Posts: 6
Joined: Fri Mar 30, 2007 11:28 pm

Re: Changing default zoom when generating PDF file?

Post by pfjorgeo »

You're right. I read it just before I posted my reply... Sorry :oops:
Post Reply