You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all I'd like to thank you all for maintaining such a wonderful module, including beautiful examples.
For some reason I called write_pdf more than once on the Document and noticed that the pdf created by the second call differs from the pdf that's created when it is first called. The most obvious difference is that rotated headers are missing from the document created by the second call.
WeasyPrint==51
Python 3.5.3
Debian 9.12
There is a warning when weasyprint is imported, which might be related. document.py:36: UserWarning: There are known rendering problems and missing features with cairo < 1.15.4. WeasyPrint may work with older versions, but please read the note about the needed cairo version on the "Install" page of the documentation before reporting bugs. http://weasyprint.readthedocs.io/en/latest/install.html
html body th.rotate{
height:140px;white-space:nowrap}
html body th.rotate > div{
transform:translate(25px,51px) rotate(315deg);width:30px}
html body th.rotate > div > span{
border-bottom:1px solid #ccc;padding:5px 10px}
Running the script on the stack I'm using will create 2 pdf files: x1.pdf and x2.pdf. x1.pdf will have rotated headers, x2.pdf will not. I'm using Edge (and Firefox) on Windows to view the PDF files.
The workaround is pretty simple: write the pdf to a BytesIO and write the payload to multiple files - when you need it - but I thought you might like to know.
The text was updated successfully, but these errors were encountered:
First of all I'd like to thank you all for maintaining such a wonderful module, including beautiful examples.
For some reason I called
write_pdf
more than once on theDocument
and noticed that the pdf created by the second call differs from the pdf that's created when it is first called. The most obvious difference is that rotated headers are missing from the document created by the second call.WeasyPrint==51
There is a warning when
weasyprint
is imported, which might be related.document.py:36: UserWarning: There are known rendering problems and missing features with cairo < 1.15.4. WeasyPrint may work with older versions, but please read the note about the needed cairo version on the "Install" page of the documentation before reporting bugs. http://weasyprint.readthedocs.io/en/latest/install.html
This script reproduces the error:
weasyprint-rotated-headers.html
:weasyprint-rotated-headers.css
:Running the script on the stack I'm using will create 2 pdf files:
x1.pdf
andx2.pdf
.x1.pdf
will have rotated headers,x2.pdf
will not. I'm using Edge (and Firefox) on Windows to view the PDF files.The workaround is pretty simple: write the pdf to a BytesIO and write the payload to multiple files - when you need it - but I thought you might like to know.
The text was updated successfully, but these errors were encountered: