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

Content of table column is cut off #1110

Open
1 task done
apaloma-rpc opened this issue Feb 29, 2024 · 14 comments · May be fixed by #1215
Open
1 task done

Content of table column is cut off #1110

apaloma-rpc opened this issue Feb 29, 2024 · 14 comments · May be fixed by #1215
Labels
bug Something isn't working pdf Issues in PDF output and PDF writer

Comments

@apaloma-rpc
Copy link

Describe the issue

In the pdf output, section numbers listed in the Ref column of Table 2 are cut off rather than wrapping. This doesn't occur in the txt or html outputs.

https://www.rfc-editor.org/v3test/rfc9553.pdf
https://www.rfc-editor.org/v3test/rfc9553.txt
https://www.rfc-editor.org/v3test/rfc9553.html
https://www.rfc-editor.org/v3test/rfc9553.xml

Code of Conduct

@apaloma-rpc apaloma-rpc added the bug Something isn't working label Feb 29, 2024
@kesara kesara added the pdf Issues in PDF output and PDF writer label Feb 29, 2024
@kesara
Copy link
Member

kesara commented Feb 29, 2024

This issue seems to be related to Kozea/WeasyPrint#2082

@kesara
Copy link
Member

kesara commented Dec 9, 2024

Created Kozea/WeasyPrint#2325 for this.

@kesara kesara linked a pull request Jan 31, 2025 that will close this issue
@kesara
Copy link
Member

kesara commented Jan 31, 2025

WeasyPrint v64.0 fixes this issue.
Above document generated with the new version: https://t4.fq.nz/xml2rfc.1215/rfc9553.pdf

@ajeanmahoney
Copy link
Collaborator

ajeanmahoney commented Jan 31, 2025

In https://t4.fq.nz/xml2rfc.1215/rfc9553.pdf, searching for terms causes a vertical green bar (in Preview 11), which is the width of the search term and the length of the page, to appear wherever the term is. In Acrobat Reader, the bars are blue and not quite as long (about half a page).

@cabo
Copy link
Contributor

cabo commented Jan 31, 2025

I don't see a green line (macOS 15.3).
Do you have a screenshot?

@cabo
Copy link
Contributor

cabo commented Jan 31, 2025

Ah, it's blue and on Page 50 (after searching).

@cabo
Copy link
Contributor

cabo commented Jan 31, 2025

And it is a link to [email protected] ?

@rjsparks
Copy link
Member

Can reproduce - Preview 11.0 on macOS 15.1.1:

Image

@ajeanmahoney
Copy link
Collaborator

I edited my comment above. I was able to reproduce both in Preview and in Acrobat Reader.

@cabo
Copy link
Contributor

cabo commented Jan 31, 2025

Similar weird things happen in Nitro PDF, which AFAIK does not use Apple's PDF engine.

@kesara
Copy link
Member

kesara commented Jan 31, 2025

Weird. I can't see this on macOS preview or on Firefox. I'll investigate this next week.

@cabo
Copy link
Contributor

cabo commented Jan 31, 2025

What we see is that highlight boxes (like those used for searching and marking hyperlinks) appear to have near-infinite vertical size. That causes the highlight boxes to appear as vertical lines (boxes, actually). If you don't search or have a page with marked hyperlinks you can't see that effect.

@cabo
Copy link
Contributor

cabo commented Jan 31, 2025

(I don't see it in Firefox either.)

@kesara
Copy link
Member

kesara commented Feb 1, 2025

It's a bug in WeasyPrint, which has been fixed1.
Let's wait till next version.

Footnotes

  1. https://github.com/Kozea/WeasyPrint/issues/2368

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pdf Issues in PDF output and PDF writer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants