Git Product home page Git Product logo

Comments (7)

bitrut avatar bitrut commented on August 19, 2024

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.

Bentis avatar Bentis commented on August 19, 2024

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.

 avatar commented on August 19, 2024

This should be fixed by 5a2a0c2

from xhtml2pdf.

bitrut avatar bitrut commented on August 19, 2024

Thanks.

from xhtml2pdf.

Bentis avatar Bentis commented on August 19, 2024

5a2a0c2 does not seem to fix my issue.
See example html: https://gist.github.com/Bentis/42fa6427e10bc3457c6a

xhtml2pdf_example

from xhtml2pdf.

 avatar commented on August 19, 2024

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.

seandsanders avatar seandsanders commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.