Comments (7)
I hit the same issue.
I played with inline stylesheets in my PDF template. I noticed that CSS parser is nondeterministic. When render PDF multiple times you get different styling each time.
from xhtml2pdf.
Having (what I think is) the same problem, but it seems to be only a CSS issue.
Unreleased patch 13dd746 in trunk fixes some of my rendering issues, but only when i revert commit ce84992 do I get the same result as in version 0.0.4.
This also seems to fix the different styling output for exact same input on multiple runs.
from xhtml2pdf.
This should be fixed by 5a2a0c2
from xhtml2pdf.
Thanks.
from xhtml2pdf.
5a2a0c2 does not seem to fix my issue.
See example html: https://gist.github.com/Bentis/42fa6427e10bc3457c6a
from xhtml2pdf.
Your HTML often gives me unreadable PDFs even with 0.0.4, but I did get different results with 0.0.5. I will look into it since it could affect my application...
from xhtml2pdf.
Bentis, I had what looks like the same issue in a project I'm working on. I was able to track down what was causing the problem to the matches method in CSSSelectorCombinationQualifier in w3c\css.py. Something about the change in ce84992 severely broke that method. I ended up reverting our local clone's copy of css.py, but I thought the information would be useful to you if you want to further track down the issue.
from xhtml2pdf.
Related Issues (20)
- Breaking changes and versioning HOT 9
- Accented UTF8 chars are not correctly show in the created PDF HOT 2
- Document does not conform to PDF/A. HOT 2
- broken reportlab import HOT 7
- Replace pypdf with pyHanko HOT 2
- when <p> inside ul and ol, ul and ol will not work
- Override default background for Canvas Tags HOT 1
- upgrade python-pillow to latest version. current version of python-pillow used by xhtml2pdf has vulnerability HOT 1
- Cannot Add Images as a Link HOT 4
- Input type radio not supported HOT 1
- reportlab 4.2 support HOT 3
- OSS-Fuzz Integration HOT 6
- Error when runing `pip install -v .[test,docs,build]` HOT 1
- Named Page templates no longer working in xhtml2pdf version 0.2.16 HOT 2
- Page overflow and next page is not done automatically
- python-bidi 0.5.0 introduces a breaking change HOT 3
- my pdf words looks like this "■■■■■ ■■■■" HOT 5
- xhtml2pdf breaks with bidi 0.5.0 (default now) HOT 2
- Dependency/python-bidi: removed Removed algorithm.py from python-bidi package HOT 2
- Help with converting huge html string to pdf HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xhtml2pdf.