Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polygonfilling of does not work correct #7384

Open
lalue opened this issue Jun 2, 2016 · 2 comments
Open

Polygonfilling of does not work correct #7384

lalue opened this issue Jun 2, 2016 · 2 comments

Comments

@lalue
Copy link

lalue commented Jun 2, 2016

Configuration:

  • Web browser and its version Firefox Version 46.0.1, but also in IE 11 and Chrome
  • Operating system and its version: Windows 7
  • PDF.js version: pdfjs-1.5.188-dist

Steps to reproduce the problem:
Load file in pdf.js viewer (http://www.lalue.de/pdfjs/web/viewer.html)

What is the expected behavior?

Dark area (sea) filled without white lines visible
Light Area (land) not crossed by dark lines.

Screenshot rendered by Acrobat Reader.
rendered_by_adobe

What went wrong? (add screenshot)

rendered_by_pdfjs_firefox_2

Link to viewer.html with sample:

@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented Jun 2, 2016

Please note the lines are actually faintly visible in Adobe Reader as well, it's just that they are more easily spotted in PDF.js. (Interestingly, it seems that the PDF viewer in Google Chrome renders it the same way as PDF.js.)

To ensure future availability, I'm directly attaching the referenced PDF file here: render_problem.pdf.

@lalue
Copy link
Author

lalue commented Jun 2, 2016

Hi Jonas,

Thanks for your fast reply.

Yes, you are right – this is unfortunately true.

The intention of the pdf creation software is to fill the dark area (water). The filling algorithm generates a rather strange set of polygons (working like a plotter). I would expect the have the border of the polygons to have the same colour as the background and I’m not sure if it’s the creator of the renderer which uses the wrong colour or of we can see the background through.

Unfortunately I have to live with those documents and therefore it would be great to minimize the display ‘error’.

Thanks for your work

Klaus Langelüddeke

Von: Jonas Jenwald [mailto:notifications@github.com]
Gesendet: Donnerstag, 2. Juni 2016 12:21
An: mozilla/pdf.js
Cc: lalue; Author
Betreff: Re: [mozilla/pdf.js] Polygonfilling of does not work correct (#7384)

Please note the lines are actually faintly visible in Adobe Reader as well, it's just that they are much more easily spotted in PDF.js. (Interestingly, it seems that the PDF viewer in Google Chrome renders the same way as PDF.js.)

To ensure future availability, I'm directly attaching the referenced PDF file here: render_problem.pdf https://github.com/mozilla/pdf.js/files/295331/render_problem.pdf .


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #7384 (comment) , or mute the thread https://github.com/notifications/unsubscribe/ASywDOpJvLNABCdFSUdjx-_ybFzTWVKDks5qHq6bgaJpZM4IsYrd . https://github.com/notifications/beacon/ASywDGWNqUihwJxrgbxUVPlLaEAcGie7ks5qHq6bgaJpZM4IsYrd.gif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants