hi,
hope this is the correct forum, there's no forum specifically on PDFTEX it seems...
I use TXC with Miktex & PDFTex, and cannot get Abode Reader to display correct page numbers.
In Latex itself I can use \addtocounter{page}{350} so the document starts with page 351; when using PDFTeX, the resulting PDF also sporns page 351, but Adobe Reader still says at the bottom where one can navigate between pages "1 of 1".
Maybe I have to set a specific PDF command to change this, but I found nothing in the docs!
\documentclass[10pt]{article}
\usepackage[pdftex]{graphicx}
\begin{document}
\addtocounter{page}{350}
xxxxx
\end{document}
Page Layout ⇒ pdftex: Adobe not displaying correct page number
pdftex: Adobe not displaying correct page number
- Attachments
-
- test1.pdf
- PDF example
- (4.24 KiB) Downloaded 343 times
pdftex: Adobe not displaying correct page number
Hi,
include the hyperref package:This is always a good idea when producing PDFs, since the package adds a bunch of nice features like correct page numbers or clickable links and URLs. Note that I've removed the pdftex option from the graphicx package loading command; the package is able to detect pdfTeX automatically.
include the hyperref package:
Code: Select all
\documentclass[10pt]{article}
\usepackage{graphicx}
\usepackage{hyperref}
\begin{document}
\addtocounter{page}{350}
xxxxx
\end{document}
pdftex: Adobe not displaying correct page number
Sadly, the hyperref-Package doesn't seem to have an option setting for pagenumbers; at least after reading the manual I couldn't find one. Furthermore it ignores all the commands set by the graphicx-Package, like
At this stage I'm not really after all the additional options hyperref may provide, I'm just looking to set page numbers according to my document's needs.
--
zobbel
Code: Select all
\usepackage[pdftex]{graphicx}
\pdfpagewidth=210mm
\pdfpageheight=297mm
\pdfhorigin=-22mm
\pdfvorigin=-18.25mm
--
zobbel
Re: pdftex: Adobe not displaying correct page number
You don't have to do anything apart from including the hyperref package—it sets the page numbers automatically. The explicit setting of page size parameters is unnecessary, too. My example is actually working, if you compile it with pdfLaTeX, you will see that the PDF page numbers and size are correct.
pdftex: Adobe not displaying correct page number
I'm sorry, I've tried this (as you suggested):
the result is attached.
Maybe you misunderstood: the actual PDF page is fine, the pagenumber shown is 351; all I'm after is what Adobe Reader displays at the bottom of the screen in the navigation bar: still unchanged "1 of 1" (or "1 von 1" in the German version).
Code: Select all
\documentclass[10pt]{article}
\usepackage[pdftex]{graphicx}
\usepackage{hyperref}
\addtocounter{page}{350}
\begin{document}
x
\end{document}
Maybe you misunderstood: the actual PDF page is fine, the pagenumber shown is 351; all I'm after is what Adobe Reader displays at the bottom of the screen in the navigation bar: still unchanged "1 of 1" (or "1 von 1" in the German version).
- Attachments
-
- test1.pdf
- (4.88 KiB) Downloaded 269 times
Re: pdftex: Adobe not displaying correct page number
If I compile your code, I get page 351 in the Acrobat Reader navigation bar. Try to upgrade your pdfTeX installation; I can see from the PDF properties that your version is 1.20a, while mine is 1.40.3 (the current version is 1.40.9). Perhaps you'll also have to upgrade the hyperref package.
- Attachments
-
- test1b.pdf
- (5.08 KiB) Downloaded 312 times
pdftex: Adobe not displaying correct page number
Some additional information: Perhaps the default value of the pdfpagelabels is false in your version. Try if it works after setting it to true.
See also http://www.tex.ac.uk/cgi-bin/texfaq2htm ... pagelabels
See also http://www.tex.ac.uk/cgi-bin/texfaq2htm ... pagelabels