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

Extra break lines are ignored when PDF is loaded #2054

Closed
artstalker opened this issue Jan 10, 2024 · 2 comments
Closed

Extra break lines are ignored when PDF is loaded #2054

artstalker opened this issue Jan 10, 2024 · 2 comments
Assignees
Labels
bug of the base viewer (Mozilla's pdf.js) Please open the ticket at https://github.com/mozilla/pdf.js/issues Confirmed I've managed to reproduce the bug. That's great news: chances are I'll solve it.

Comments

@artstalker
Copy link

The bug is reproducible on https://pdfviewer.net/extended-pdf-viewer/forms (Running on Angular 17.0.8, pdf.js 4.0.730, and ngx-extended-pdf-viewer 19.0.4)

  1. Open Forms demo
  2. Add a line break in other Job Experience field between any items

image

  1. Save the PDF file.

image

  1. Open the saved PDF file.

image

Expected result: The extra line break we added is displayed
Actual result: The extra line break is gone

image

If you open a saved PDF in any PDF viewer, the extra line break is displayed there, but when opened in ngx-extended-pdf-viewer, extra line breaks are gone.
Is it some option that can be disabled in the configuration, or is it a bug?

@artstalker artstalker changed the title Break lines are ignored when PDF is loaded Extra break lines are ignored when PDF is loaded Jan 10, 2024
@stephanrauh
Copy link
Owner

You're right. I guess it's a bug of the base library, pdf.js. I can reproduce it both in Firefox and on https://mozilla.github.io/pdf.js/web/viewer.html. The screenshot shows the same document in Firefox (background) and in the "preview" application of MacOS:
image

Please report the bug at https://github.com/mozilla/pdf.js/issues. Make sure to fill their bug form meticulously and tell them you've managed to reproduce the bug in Firefox. They often close tickets for formal reasons, so it's important to mention Firefox.

@stephanrauh stephanrauh self-assigned this Jan 10, 2024
@stephanrauh stephanrauh added Confirmed I've managed to reproduce the bug. That's great news: chances are I'll solve it. bug of the base viewer (Mozilla's pdf.js) Please open the ticket at https://github.com/mozilla/pdf.js/issues labels Jan 10, 2024
@artstalker
Copy link
Author

Thanks Stephan,

I logged the ticket mozilla/pdf.js#17492

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug of the base viewer (Mozilla's pdf.js) Please open the ticket at https://github.com/mozilla/pdf.js/issues Confirmed I've managed to reproduce the bug. That's great news: chances are I'll solve it.
Projects
None yet
Development

No branches or pull requests

2 participants