Giter VIP home page Giter VIP logo

Comments (3)

SimonSapin avatar SimonSapin commented on May 30, 2024

Well, PDF embedding (through <object> or <img>) has never been supported. What happens next? Do you still get an output? Does WeasyPrint crash? Do you get a traceback? There may be a bug in error reporting (string() on NULL) but if you get an output, that’s pretty much the expected behavior. Only SVG and raster image formats (PNG, JPEG, …) are supported.

from weasyprint.

SimonSapin avatar SimonSapin commented on May 30, 2024

Closing. I just released cairocffi v0.3.1 that fixes the error reporting, but PDF embedding is still not supported in WeasyPrint.

Please open a new issue (feature request) if you want PDF embedding, especially if you have ideas on how to do it with cairo.

from weasyprint.

 avatar commented on May 30, 2024

Thanks for the replies. I do still get an output. I don't get a traceback. AFAIK, WeasyPrint itself does not crash. Will open a feature request, although I'm afraid I don't have ideas on how to embed PDF with cairo.

from weasyprint.

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.