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

characters missing if pdf is edited #4719

Closed
aseemsharma16 opened this issue May 1, 2014 · 12 comments
Closed

characters missing if pdf is edited #4719

aseemsharma16 opened this issue May 1, 2014 · 12 comments

Comments

@aseemsharma16
Copy link

I have an pdf. I am viewing that pdf in one system it is working in firefox but in other system it is not working in firefox. any help.

when editing the pdf in acrobat not regenerating from scratch.
character missing issue in other system. both are windows system

@Snuffleupagus
Copy link
Collaborator

When reporting an issue, please make sure that you read https://github.com/mozilla/pdf.js/blob/master/CONTRIBUTING.md, especially to part I've quoted below:

[...] provide more details about the issue: link to the PDF, location in the PDF, screenshot, browser version, operating system, PDF.js version and JavaScript console warning/error messages. Issues that do not have enough details provided will be closed as invalid/incomplete.

@aseemsharma16
Copy link
Author

PDF : http://talkvid.com/pdfsss.pdf

On page 2 line 5 it is Electronic edition published 2014 not Electronic edition published 201

and on page 11 third bullet text is missing.
page 2 - 2014 missing
page 11 - 1st bullet half gone - 3rd bullet missing

@Snuffleupagus
Copy link
Collaborator

I cannot reproduce, using: Windows 7 (64-bit), Firefox Nightly 32 (buildID: 20140501030202) with HWA on, and PDF.js 1.0.119.

Please try downloading the file and opening it with the demo viewer (by clicking on the "Open File" button on the right-hand side of the toolbar): http://mozilla.github.io/pdf.js/web/viewer.html.
The demo viewer always contain the latest version of PDF.js, so if the file is displayed correctly there that means the issue has already been fixed.

If the issue still remains, you need to provide more information regarding your environment (i.e. Operating System and browser version).

@aseemsharma16
Copy link
Author

That didn't work.

Browser Version : firefox 29.0
Operation system on which it is working : windows 7 : 32bit
Operating system on which it is not working : windows 7 : 64bit

@yurydelendik
Copy link
Contributor

@aseemsharma16 could you paste the Graphics section content from "about:support" from both systems?

@aseemsharma16
Copy link
Author

working system
system graphics on which works

@aseemsharma16
Copy link
Author

not working system
capture

@yurydelendik
Copy link
Contributor

(Similar to #4609) The DirectWrite 6.1 on Window 7 is really rare configuration, OS updates (specificly IE10/11) upgrade that to 6.2, and VM installations do not support DirectWrite (similar to your first machine). Might take a while to fix that.

@automatedbugreportingfacility

Using DirectWrite 6.1 on Windows 7, I can reproduce the problem in pdf.js 0.8.990, but it's fixed in 1.0.68. Still, the font looks ugly:

pdf.js at 125%: http://i.imgur.com/BO1A7gg.png
SumatraPDF at 125%: http://i.imgur.com/qVyWjsm.png

Windows 7 + HWA on + ClearType off

@yurydelendik
Copy link
Contributor

Interesting that the original PDF does not use the embedded font and we have to match characters widths (that's why it looks ugly). The edited text (e.g. page 11 item 3) is done using the embedded font -- this shall not look that bad.

@automatedbugreportingfacility

The edited text (e.g. page 11 item 3) is done using the embedded font -- this shall not look that bad.

Yes, it's much better: http://i.imgur.com/uN9UIae.png

Is there a chance to fix the non-embedded font case? A lot of documents would look much nicer.

@timvandermeij
Copy link
Contributor

Closing since the PDF file is no longer available and similar issues have been fixed in the meantime.

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

5 participants