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

Some PDF objects are not rendered in the correct position #1249

Open
tubbadu opened this issue Oct 11, 2024 · 2 comments
Open

Some PDF objects are not rendered in the correct position #1249

tubbadu opened this issue Oct 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@tubbadu
Copy link

tubbadu commented Oct 11, 2024

Describe the bug
Some objects of the PDF are rendered in the wrong position, making the document very difficult to read

To Reproduce
Steps to reproduce the behavior:

  1. open the attached PDF with rnote
  2. import is as vector
  3. see it's rendered wrong

Expected behavior
The pdf is rendered correctly

Screenshots
how it's rendered by rnote:
image

interested pdf: TESTPDF.pdf

how it should be rendered (screenshot from Okular):
image

This does not happens when importing the pdf as bitmap instead of vector

Desktop (please complete the following information):

  • OS: EndeavourOS
  • App Version: Rnote v0.11.0
  • Installation Source: Archlinux main repository ("extra/rnote")
  • Desktop Environment: KDE Plasma 6.2.0
  • Display Server: Wayland
  • Input Source: Mouse and Keyboard
@Doublonmousse
Copy link
Collaborator

Related : #526
As explained in #526 (comment), either a conversion issue in poppler (pdf to svg) or in the rendering (usvg/cairo)

@Doublonmousse
Copy link
Collaborator

After a quick test using pdf2svg (poppler -> cairo to do a pdf to svg conversion) it seems to work fine doing that. So it's probably an usvg-related rendering issue.

In fact converting first the pdf to svg (which is rendered correctly) then importing it within rnote will show it incorrectly.
Gonna need a little bit more time to find why and link to an usvg issue

Version used :

pdf2svg 0.2.3_6
poppler 24.04.0
cairo 1.18.2

@Doublonmousse Doublonmousse added the bug Something isn't working label Oct 21, 2024
Repository owner deleted a comment Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@tubbadu @Doublonmousse and others