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!
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
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.
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
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.
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).
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.
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