[Ipe-discuss] question on some PDF's generated by IPE not showing in Chrome browser

Nasser M. Abbasi nma at 12000.org
Thu Oct 31 16:19:13 CET 2019

On 10/31/2019 5:07 AM, Otfried Cheong via Ipe-discuss wrote:
> You say that 'image.pdf' was created by Ipe, but that is not true:  the PDF meta data indicates that the producer of 'image.pdf' is 'pdftex-1.40'.
> If I run:
> ipetoipe -pdf image.ipe
> pdflatex foo.tex
> then both image.pdf and foo.pdf are displayed correctly by chrome.
> I'd be very curious how you created the 'image.pdf' file in the first place.
> Cheers,
>    Otfried

Thanks for noticing this. This image.pdf was created few
months ago by IPE. But I just found the problem.

After saving as PDF from IPE GUI (I do not use ipetoipe -pdf image.ipe)
then I run the program pdfcrop. pdfcrop is part of TeXLive


>which pdfcrop

>pdfcrop --margins 10 --clip image.pdf image.pdf

(that is why it said generator is pdftex-1.40)

And I am sure this what caused the problem. I think
pdfcrop must had a bug. Because with updated version
to TeXLive, I now did the following (I also removed
the --clip option, since some text on diagram was
getting clipped off well, which is bad).

1. Open IPE. load the image.ipe file. Save to PDF again.
2. run this:
    >pdfcrop --margins 10 image.pdf image.pdf
3. Now the image.pdf is fully displayed in Chrome OK.

So problem fixed! I am sure now it was the old version of
pdfcrop program and combination of using the --clip option
that caused this strange issue because now the problem is

> On Thu, Oct 31, 2019, at 05:21, Nasser M. Abbasi via Ipe-discuss wrote:
>> Sometimes a PDF generated by IPE do not display fully when
>> viewed inside Chrome or Brave browsers. But displays OK when
>> using Brave or Firefox.
>> I'd like to ask if this is related to how IPE generates
>> the PDF's in some way or if this is a bug in Chrome. This
>> happens only to few files. Might be related to use of
>> Opacity in this IPE drawings?
>> I've send a bug report to Google's Chrome also.
>> I've posted this question on this at
>> <https://tex.stackexchange.com/questions/514259/why-some-images-do-not-show-up-inside-pdf-when-viewed-inside-some-browsers>
>> More information about the problem above.
>> Here is the link to the files needed to reproduce: This is
>> same link in the post above
>> https://www.12000.org/tmp/10302019/
>> For some reason, when opening the file image.pdf inside Chrome, the
>> text do not show up. Text shows up when using local adobe pdf reader.
>> Also when compiling this small foo.tex file
>> -------------------
>> \documentclass[12pt]{article}%
>> \usepackage{graphicx}
>> \begin{document}
>> This is my image
>> \includegraphics[width=0.5\textwidth]{image}
>> \end{document}
>> ----------------------------
>> And looking at foo.pdf inside Chrome, the whole image do not
>> show up.
>> This looks like a bug in Chrome for me, but thought to ask
>> here, may be someone can shed some light on this, since the
>> image.pdf was generated by IPE 7.2.7 on windows 10.
>> Thank you
>> --Nasser
> _______________________________________________
> Ipe-discuss mailing list
> Ipe-discuss at lists.science.uu.nl
> https://mailman.science.uu.nl/mailman/listinfo/ipe-discuss

More information about the Ipe-discuss mailing list