Comments (3)
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.
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'
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:
from pandoc.
Maybe I'd rather stay with wkhtmltopdf than default to weasyprint, which seems to ignore the font size...
from pandoc.
Related Issues (20)
- Latest version has issues with MiKTeX images HOT 6
- RST simple tables: support col spans HOT 1
- Markdown writer: keep HTML comment at end of file — e.g. Vim modeline. HOT 5
- HTML -> PDF: SVG icons come out huge
- {tabular} tag parsing exception HOT 4
- Add ROR and affiliation information to JATS HOT 2
- HTML reader should ignore everything outside of main element, if present HOT 10
- If you specify a URL ending in `.org`, pandoc treats it as org-mode rather than HTML content HOT 1
- [RFE] Font colors via filter HOT 3
- RTF reader doesn't include image inside \shp HOT 1
- grid_tables cells produce additional empty table rows HOT 2
- Unnecessary semicolon added to detailed citations when converting to Typst HOT 1
- ANSI writer ignores RowSpan in table cells
- Allow user styling of ANSI writer output
- Add support for CRediT roles in JATS export HOT 5
- All links in citations get the role `doc-biblioref`
- docx deleted comments can fall outside deletion nodes HOT 5
- parsing issue with tex HOT 1
- Improve infrastructure for CLI options 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 pandoc.