Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Missing line feed(s) in PDF in text block #1284

Closed
caerulescens opened this issue Sep 24, 2021 · 3 comments
Closed

Missing line feed(s) in PDF in text block #1284

caerulescens opened this issue Sep 24, 2021 · 3 comments
Assignees
Labels
upstream bug bug outside this package

Comments

@caerulescens
Copy link

caerulescens commented Sep 24, 2021

Please provide all mandatory information!

Describe the bug (mandatory)

When placing redact annotations on the attached document, it seems there's a LF discarded during apply_redactions. This causes text that should span multiple lines to be written on one line.

To Reproduce (mandatory)

Place a redaction annotation anywhere on the document and finalize with Page.apply_redactions().

# give me a few minutes to verify the code 

Expected behavior (optional)

There shouldn't be overlapping text.

Screenshots (optional)

incorrect
correct

Your configuration (mandatory)

  • Operating system: debian 10
  • Python version: 3.8
  • PyMuPDF version: 1.18.16 from pip

Problem document:
textbox_linefeed_glitch.pdf

@caerulescens caerulescens changed the title Missing line feed(s) in PDF in textbox/cell/form Missing line feed(s) in PDF in text block Sep 24, 2021
@JorjMcKie
Copy link
Collaborator

This is an upstream bug (MuPDF) unfortunately.
They have fixed it in their development version, but that is unreleased yet.

@JorjMcKie JorjMcKie added upstream bug bug outside this package and removed bug labels Sep 24, 2021
@caerulescens
Copy link
Author

caerulescens commented Sep 24, 2021

That's what I assumed; I thought I'd report it anyhow. Thank you so much for your help!

@JorjMcKie
Copy link
Collaborator

Because there is no wy for me to help you, I am putting this issue on the pile in Discussions ☹️

@pymupdf pymupdf locked and limited conversation to collaborators Sep 24, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
upstream bug bug outside this package
Projects
None yet
Development

No branches or pull requests

2 participants