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

Broken PDF using html tag small in acrobat reader #1351

Closed
nck974 opened this issue May 6, 2021 · 3 comments
Closed

Broken PDF using html tag small in acrobat reader #1351

nck974 opened this issue May 6, 2021 · 3 comments

Comments

@nck974
Copy link

nck974 commented May 6, 2021

Example to reproduce:

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Report</title>
    <meta name="description" content="Report example">
  </head>

  <body>
      <small>
        Sometext
      </small>
  </body>
</html>

Opening with acrobat reader produces There was a problem... (117)

@grewn0uille
Copy link
Member

Hello!

Just tried with the current master and 52.x and I didn’t reproduce.

Can you tell us which version of WeasyPrint do you use and attach the PDF you got please?

@nck974
Copy link
Author

nck974 commented May 6, 2021

Hello, I'm using 52.4 installed from PIP, I just attached the file which I created from the exact html I posted using;

python -m weasyprint .\delete_me.html .\delete_me.pdf

delete_me.pdf

@grewn0uille
Copy link
Member

By looking the font included in the PDF, it’s the same problem as #1292.

It’s caused by a bug in Cairo. You can downgrade it (version 1.17.2 is working).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants