Cannot display figure in a pdf file generated with pdflatex
See original GitHub issueAttach (recommended) or Link to PDF file here:
Configuration:
- Web browser and its version: Firefox 68.0.1 and Google Chrome 76.0.3809.87
- Operating system and its version: macOS High Sierra 10.13.6(17G8030)
- PDF.js version: 2.2.228 beta
- Is a browser extension: No
Steps to reproduce the problem:
- Load the attached pdf file, from_pdftex.pdf, with PDF.js.
- Figure 1 is blank.
What is the expected behavior? (add screenshot)
Figure 1 should be displayed as Adobe Reader displays.
- The pdf file, from_pdftex.pdf, is generated with pdflatex.
- The figure, slice2.pdf, included in the pdf file is a pdf file created with Affinity Designer.
- First reported by @rubendsa at James-Yu/LaTeX-Workshop/issues/1577.
- Notice that PDF.js can display slice2.pdf itself.
A source TeX file:
\documentclass[12pt]{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}[h]
\begin{center}
\includegraphics[height=1in]{slice2.pdf}
\caption{\textit{Locations of the neutral point ($X_{NP}$) and center of gravity ($X_{CG})$ of an individual wing segment. }}
\label{fig:test2}
\end{center}
\end{figure}
\end{document}
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Why can't pdflatex print EPS figures? - LaTeX Stack Exchange
The images in my paper are in EPS format. If I execute pdflatex to get a PDF version of my paper, the figures...
Read more >No display of PDF output - LaTeX.org
I can't view pdf files, tried everything, it says :'This file cannot be found' or it is simply a blank page. I know...
Read more >Images not showing up - Overleaf, Online LaTeX Editor
Occasionally, issues with the Overleaf PDF viewer may cause images to not appear in the preview—although if everything is correct in the code,...
Read more >Problems with Building and Viewing PDF Files from LaTeX
1. Check the log file carefully. Possibly there is an error which is preventing it finishing the document correctly. 2. Check that you...
Read more >How to create a PDF/A file with LaTeX
A PDF/A file must contain all the information needed for displaying and printing the document. This includes text, graphics, fonts and colour information....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please also report it to the maintainer of the PDF generator as well, so that this is fixed properly, since the PDF file is actually corrupt (the
/CS
entry in the Group dictionary points to a non-existent object).Thank you both, also for reporting this. This is fixed by the pull request above.