Graphics, Figures & TablesINclude PDF-Picture on page No. 2

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
MichaelSchwarz
Posts: 4
Joined: Fri Jul 21, 2017 5:12 pm

INclude PDF-Picture on page No. 2

Post by MichaelSchwarz »

I use LaTeX already for some years and face now a weired problem.

I Include pictures by
\includegraphics[page=2]{Document.pdf}.
Up to now it worked pretty well.. but now the page number is ignored and the picture is always taken from Document.pdf page No. 1.

I compile the LaTeX-Document using pdflatex.exe

Recently I updated MikTex2.9including the pdflatex.exe

Any ideas?

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

Stefan Kottwitz
Site Admin
Posts: 10328
Joined: Mon Mar 10, 2008 9:44 pm

INclude PDF-Picture on page No. 2

Post by Stefan Kottwitz »

Hi Michael,

welcome to the forum!

Can you please post the .log file of that document here as attachment? (Attachment link is below the text edit field, when writing a post.) The info within that file may help.

Stefan
LaTeX.org admin
MichaelSchwarz
Posts: 4
Joined: Fri Jul 21, 2017 5:12 pm

INclude PDF-Picture on page No. 2

Post by MichaelSchwarz »

Please find the LOG-File attached
Attachments
TestGraphics.log
(9.46 KiB) Downloaded 252 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10328
Joined: Mon Mar 10, 2008 9:44 pm

INclude PDF-Picture on page No. 2

Post by Stefan Kottwitz »

I don't see an issue. Can you also attach the PDF file?

Stefan
LaTeX.org admin
MichaelSchwarz
Posts: 4
Joined: Fri Jul 21, 2017 5:12 pm

INclude PDF-Picture on page No. 2

Post by MichaelSchwarz »

The PDF is about 500 kB .. too large to upload.
So I created a new, page pdf (Forum.pdf)

PLease find attached the files
Attachments
TestGraphics.tex
(525 Bytes) Downloaded 266 times
TestGraphics.pdf
(218.49 KiB) Downloaded 169 times
Forum.pdf
(271.45 KiB) Downloaded 157 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10328
Joined: Mon Mar 10, 2008 9:44 pm

INclude PDF-Picture on page No. 2

Post by Stefan Kottwitz »

Very good example!

I tested it, but it works fine on my computer. It includes the second page.

There were updates to LaTeX core files, such as graphicx and pdftex.def. I'll ask a developer.

Stefan
LaTeX.org admin
User avatar
Stefan Kottwitz
Site Admin
Posts: 10328
Joined: Mon Mar 10, 2008 9:44 pm

INclude PDF-Picture on page No. 2

Post by Stefan Kottwitz »

Your file pdftex.def is of 2016. Perhaps update your MiKTeX, this could fix the issue. There may have been a bug at that time.

Stefan
LaTeX.org admin
MichaelSchwarz
Posts: 4
Joined: Fri Jul 21, 2017 5:12 pm

INclude PDF-Picture on page No. 2

Post by MichaelSchwarz »

Dear Stefan,
thanks for your assistance. I tried some UPDATE actions but finally there was no update found.
pdftex.def was newer in the MiKTeX-Directory then in /AppData ...

Finally I deinstalled MiKTeX 2.9 and installed it again.
Now it works...

Kind regards
Michael
Post Reply