LaTeX forum ⇒ Graphics, Figures & TablesPDF graphics blank using pdflatex/lualatex

Information and discussion about graphics, figures & tables in LaTeX documents.
Posts: 1
Joined: Sun Oct 27, 2013 11:56 pm

PDF graphics blank using pdflatex/lualatex

Postby sacraig » Mon Oct 28, 2013 12:01 am

I am trying to include an image in PDF format into my document as a figure. When compiling with lualatex or pdflatex from MiKTeX in Windows, the image does not appear. If I take that very PDF image and convert it to PNG and include the PNG file, it works. Additionally, when I try the PDF version, the figure has a double light grey line along the edge or corner depending on the viewer used. This does not occur with the PNG version. Using TeXLive in Ubuntu solves the problem, but I need to work in Windows at work, so I need to figure this out on the Windows side of things.

The PDF image is one page from what was originally a 4 page document split into 4 separate images. I tried converting each to EPS and then back to PDF again and it seemed to work for two of the 4 images.

I have used the \fbox command to enclose the \includegraphics command to make sure that the size is being interpreted correctly and it is in all cases, and changing the image size doesn't change anything.

Generally, my compile order is lualatex->bibtex->lualatex->lualatex and I've tried the same thing with pdflatex. I have other PDF files that compile fine but this one has been problematic.

Below is a minimul working example. The preamble is pretty large but I figured I would include everything just to be safe. This is all part of a larger thesis template file for my university, so I can't really go deleting any of the packages either or it breaks the thesis template.

  1. \documentclass[12pt]{report}
  2. \usepackage[letterpaper]{geometry}
  3. \geometry{verbose,tmargin=1.25in,bmargin=1.25in,lmargin=1.4in,rmargin=1.15in}
  4. \usepackage[doublespacing]{setspace}
  5. \usepackage{tocloft}
  6. \usepackage[rm, tiny,center, compact]{titlesec}
  7. \usepackage{indentfirst}
  8. \usepackage{etoolbox}
  9. \usepackage{tocvsec2}
  10. \usepackage[titletoc]{appendix}
  11. \usepackage{appendix}
  12. \usepackage{rotating}
  13. \usepackage[T1]{fontenc}\usepackage{lmodern}
  14. \usepackage[hidelinks,unicode]{hyperref}
  15. \usepackage{amsmath}
  16. \usepackage{graphicx,float,wrapfig}
  17. \usepackage{natbib}
  19. \begin{document}
  21. \begin{figure}[tb]
  22. \centering
  23. \includegraphics[width=0.8\textwidth]{AT3-Iso.pdf}
  24. \caption{Three-dimensional traversing mechanism affixed to 7$^{\circ}$ cone model.}
  25. \label{fig:traverse}
  26. \end{figure}
  28. \end{document}

Also, I have linked 3 files below. One is sample output from my .tex file with a PDF input, one with a PNG input, and then one is the original PDF image itself that I am trying to use. Hopefully all of this helps.

Thanks in advance if you can help me.


User avatar
Site Moderator
Posts: 4109
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Oct 28, 2013 10:33 am

Works just fine on my TexLive2013 with ubuntu (well, you mentioned that already). What you did not mention was the TeX-distribution you are using.

Put a \listfiles at the very beginning of yur file (above documentclass{...}) and compare with my package versions:

  1. This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=pdflatex 2013.10.8) 28 OCT 2013 08:29
  3. *File List*
  4. report.cls 2007/10/19 v1.4h Standard LaTeX document class
  5. size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
  6. fontenc.sty
  7. t1enc.def 2005/09/27 v1.99g Standard LaTeX file
  8. lmodern.sty 2009/10/30 v1.6 Latin Modern Fonts
  9. geometry.sty 2010/09/12 v5.6 Page Geometry
  10. keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
  11. ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO)
  12. ifvtex.sty 2010/03/01 v1.5 Detect VTeX and its facilities (HO)
  13. ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
  14. setspace.sty 2011/12/19 v6.7a set line spacing
  15. tocloft.sty 2013/05/02 v2.3f parameterised ToC, etc., typesetting
  16. titlesec.sty 2011/12/15 v2.10.0 Sectioning titles
  17. indentfirst.sty 1995/11/23 v1.03 Indent first paragraph (DPC)
  18. etoolbox.sty 2011/01/03 v2.1 e-TeX tools for LaTeX
  19. etex.sty 1998/03/26 v2.0 eTeX basic definition package (PEB)
  20. tocvsec2.sty 2011/08/07 v1.3 variable ToC section entries
  21. ifthen.sty 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
  22. appendix.sty 2009/09/02 v1.2b extra appendix facilities
  23. rotating.sty 2009/03/28 v2.16a rotated objects in LaTeX
  24. graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
  25. graphics.sty 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
  26. trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
  27. graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
  28. pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX
  29. infwarerr.sty 2010/04/08 v1.3 Providing info/warning/error messages (HO)
  30. ltxcmds.sty 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
  31. amsmath.sty 2013/01/14 v2.14 AMS math features
  32. amstext.sty 2000/06/29 v2.01
  33. amsgen.sty 1999/11/30 v2.0
  34. amsbsy.sty 1999/11/29 v1.2d
  35. amsopn.sty 1999/12/14 v2.01 operator names
  36. float.sty 2001/11/08 v1.3d Float enhancements (AL)
  37. wrapfig.sty 2003/01/31 v 3.6
  38. natbib.sty 2010/09/13 8.31b (PWD, AO)
  39. hyperref.sty 2012/11/06 v6.83m Hypertext links for LaTeX
  40. hobsub-hyperref.sty 2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)
  41. hobsub-generic.sty 2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)
  42. hobsub.sty 2012/05/28 v1.13 Construct package bundles (HO)
  43. ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
  44. intcalc.sty 2007/09/27 v1.1 Expandable calculations with integers (HO)
  45. etexcmds.sty 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
  46. kvsetkeys.sty 2012/04/25 v1.16 Key value parser (HO)
  47. kvdefinekeys.sty 2011/04/07 v1.3 Define keys (HO)
  48. pdftexcmds.sty 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
  49. pdfescape.sty 2011/11/25 v1.13 Implements pdfTeX's escape features (HO)
  50. bigintcalc.sty 2012/04/08 v1.3 Expandable calculations on big integers (HO)
  51. bitset.sty 2011/01/30 v1.1 Handle bit-vector datatype (HO)
  52. uniquecounter.sty 2011/01/30 v1.2 Provide unlimited unique counter (HO)
  53. letltxmacro.sty 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
  54. hopatch.sty 2012/05/28 v1.2 Wrapper for package hooks (HO)
  55. xcolor-patch.sty 2011/01/30 xcolor patch
  56. atveryend.sty 2011/06/30 v1.8 Hooks at the very end of document (HO)
  57. atbegshi.sty 2011/10/05 v1.16 At begin shipout hook (HO)
  58. refcount.sty 2011/10/16 v3.4 Data extraction from label references (HO)
  59. hycolor.sty 2011/01/30 v1.7 Color options for hyperref/bookmark (HO)
  60. auxhook.sty 2011/03/04 v1.3 Hooks for auxiliary files (HO)
  61. kvoptions.sty 2011/06/30 v3.11 Key value format for package options (HO)
  62. pd1enc.def 2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)
  63. hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
  64. puenc.def 2012/11/06 v6.83m Hyperref: PDF Unicode definition (HO)
  65. url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc.
  66. hpdftex.def 2012/11/06 v6.83m Hyperref driver for pdfTeX
  67. rerunfilecheck.sty 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
  68. t1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
  69. supp-pdf.mkii
  70. epstopdf-base.sty 2010/02/09 v2.5 Base part for package epstopdf
  71. grfext.sty 2010/08/19 v1.1 Manage graphics extensions (HO)
  72. epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
  73. nameref.sty 2012/10/27 v2.43 Cross-referencing by name of section
  74. gettitlestring.sty 2010/12/03 v1.4 Cleanup title references (HO)
  75. sacraigPdfImage.out
  76. sacraigPdfImage.out
  77. AT3-Iso.pdf Graphic file (type pdf)
  78. ot1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
  79. omllmm.fd 2009/10/30 v1.6 Font defs for Latin Modern
  80. omslmsy.fd 2009/10/30 v1.6 Font defs for Latin Modern
  81. omxlmex.fd 2009/10/30 v1.6 Font defs for Latin Modern

Just tested with LuaLaTeX, the behaviour you described above appears. Both, with Lua- and pdflatex a warning is there, saying that
  1. LuaTeX warning (file AT3-Iso.pdf): PDF inclusion: found PDF version <1.6>, but at most version <1.5> allowed
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 8 guests