Giter VIP home page Giter VIP logo

Comments (3)

bpj avatar bpj commented on September 27, 2024 1

The problem with staying with wkhtmltopdf is that package managers will eventually stop providing packages for it. WeasyPrint output may leave something to be desired if you have not-so low demands,[^1] but it is maintained, it is widely provided by package managers so relatively easy to install, it is relatively lightweight, and those who have higher demands can always use an alternative.

from pandoc.

jgm avatar jgm commented on September 27, 2024

I must say that pagedjs-cli gives much better results.

weasyprint with pandoc manual:

Fontconfig error: Cannot load default config file: No such file: (null)
Fontconfig error: Cannot load default config file: No such file: (null)
Fontconfig error: Cannot load default config file: No such file: (null)
WARNING: Ignored `text-rendering: optimizeLegibility` at 15:7, unknown property.
WARNING: Expected a media type, got '(max-width: 600px)'
WARNING: Invalid media type ' (max-width: 600px) ' the whole @media rule was ignored at 18:5.
WARNING: Ignored `overflow-x: auto` at 112:7, unknown property.
WARNING: Ignored `gap: min(4vw, 1.5em)` at 149:32, invalid value.
WARNING: Ignored `overflow-x: auto` at 150:28, unknown property.
WARNING: Ignored `user-select: none` at 187:32, unknown property.
WARNING: Anchor defined twice: 'footnotes'

and then it looks like this:
Screenshot 2024-09-02 at 9 23 16 AM

pagejs-cli:

✔ Loaded
✔ Rendering 146 pages took 2537.7000000178814 milliseconds.
✔ Generated
✔ Processed
✔ Saved to /Users/jgm/src/pandoc/toPdfViaTempFile61952-1.pdf

and it looks just like it looks in the browser:
Screenshot 2024-09-02 at 9 24 06 AM

from pandoc.

jgm avatar jgm commented on September 27, 2024

Maybe I'd rather stay with wkhtmltopdf than default to weasyprint, which seems to ignore the font size...

from pandoc.

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.