সহায়তা খুঁজুন

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

আরও জানুন

incorrect display of pdf

  • 6 উত্তরসমূহ
  • 1 এই সমস্যাটি আছে
  • 3 দেখুন
  • শেষ জবাব দ্বারা _ms_

more options

In a previous incarnation, firefox failed to display a dot with the pdf equivalent of the PostScript 100 100 moveto closepath 10 setlinewidth 1 setlinecap stroke That seems to be fixed in 77.0beta2, although it seems to be using PDF.js In any case, now there is the opposite problem. The pdf equivalent of the PostScript 100 100 moveto closepath 10 setlinewidth 2 setlinecap stroke is showing a little square. This is wrong, it should not show anything.

In a previous incarnation, firefox failed to display a dot with the pdf equivalent of the PostScript 100 100 moveto closepath 10 setlinewidth 1 setlinecap stroke That seems to be fixed in 77.0beta2, although it seems to be using PDF.js In any case, now there is the opposite problem. The pdf equivalent of the PostScript 100 100 moveto closepath 10 setlinewidth 2 setlinecap stroke is showing a little square. This is wrong, it should not show anything.

All Replies (6)

more options

Does this problem exist in the latest "web app" version of PDF.js or only in the built-in viewer, which may be a bit behind? You can test the web app version here:

https://mozilla.github.io/pdf.js/web/viewer.html

Use the "Open file" icon on the black toolbar (next to the print icon) to load your PDF from disk for testing. This is handled in-tab and not submitted to the server.

more options

I am now on a different Win10 PC, running 76.0, not a beta version. Running test.pdf from here using https://mozilla.github.io/pdf.js/web/viewer.html, I see a blank page, which is incorrect, but different from what I saw on the other Win10 PC. It is vaguely possible that the test.pdf files on the two PCs are different, being separately generated with possibly different versions of ghostview, but they display the same in Acrobat. The PostScript source is:

100 100 translate 10 setlinewidth 0 1 2 {/x exch def x setlinejoin

 0 1 2 {/y exch def y setlinecap
   100 x mul 100 y mul moveto closepath stroke
 } for

} for showpage

more options

Sorry, I don't know what to do with PostScript code...

Do you want to post an example of a PDF that doesn't render correctly in beta on some storage site and share a link to it?

more options

https://github.com/ms0/test/blob/master/test.pdf

The PostScript source is there as well (test.ps); I use ghostview to convert ps to pdf.

more options

For what it's worth, it looks blank to me in both Firefox 76.0 and Nightly, in both the built-in viewer and the web app viewer. So maybe file an issue on pdf.js? https://github.com/mozilla/pdf.js/issues/

more options

I have filed an issue in pdf.js, as you suggested.