On 09/18/2017 09:00 AM, Persio Barros wrote:
Hi all,
I was having some trouble when generating a pdf output with pdflatex
for a document with various figures (pdf graphic files). Some of them
showed in the generated pdf but others didn't. For those not showing,
a blank box with the correct figure size was shown instead.
After some digging, I found that the problem only happened to the
graphic files for which LyX generated a "bb" (bounding box) option for
the \includegraphics LaTeX command. That option is generated when you
change the bounding box size in the graphics-clipping pane.
Some more digging revealed that the problem is that the latest version
of pdftex-def file present in texlive-2017 and also in miktex 2.9 just
ignores the bb option, leaving a blank box, with no error message.
Previous versions of pdftex-def deferred the bb option to the viewport
option (with a warning). In that case the graphic file was included
correctly. So, this problem occurs only with updated TeX installations.
Have anybody else seen this problem?
I can confirm that it occurs here (TeXLive 2017 on Linux Mint). There
may be other related bugs in TeXLive. I manually edited the .tex file to
switch the 'bb' option to a 'viewport' option, in a document with a
single line of text followed by a PDF image in an image float. With not
bb or viewport, it works. With the bb option, regardless of how the
bounding box is defined, the line of text and the figure caption are
there but no image is present. If I switch bb to viewport, the image
appears ... but if set the set the upper right corner lower than the
original image bounding box, I lose the first line of text (as well as
part of the image, which is expected)!
Paul