Comments (5)
OK, this might not be possible, or at least not simple, judging by the wkhtmltopdf documentation:
===============================> Page Breaking <================================
The current page breaking algorithm of WebKit leaves much to be desired.
Basically webkit will render everything into one long page, and then cut it up
into pages. This means that if you have two columns of text where one is
vertically shifted by half a line. Then webkit will cut a line into to pieces
display the top half on one page. And the bottom half on another page. It will
also break image in two and so on. If you are using the patched version of QT
you can use the CSS page-break-inside property to remedy this somewhat. There is
no easy solution to this problem, until this is solved try organizing your HTML
documents such that it contains many lines on which pages can be cut cleanly.
But would still like to hear your views.
from knpsnappybundle.
from knpsnappybundle.
@pilot I was thinking more like KnpLabs/snappy#96
from knpsnappybundle.
if you want break a page just put this style="page-break-after:always" inside a div tag where you want to break the page, that's it, it works for me!
from knpsnappybundle.
Actually, this is totally supported by Snappy. You can pass an array of file paths or HTML content to generate
/getOutput
methods, and wkhtmltopdf will render at least as much pages as provided sources.
from knpsnappybundle.
Related Issues (20)
- User deprecations in log HOT 4
- Most of options not working HOT 1
- PDF is generated, but message saying format is wrong. HOT 4
- Header and Footer are not displayed HOT 1
- wkhtmltopdf does not support es6 HOT 3
- Warning: Blocked access to file HOT 1
- You must define a binary prior to conversion HOT 4
- Symfony 5 + knp_snappy - failed to load and blocked access errors HOT 9
- Critical CVE in snappy HOT 2
- Symfony 6 + Webpack encore. Css bootstrap not load when export to pdf HOT 9
- Exit with code 1 due to network error: SslHandshakeFailedError (prod env) HOT 4
- JS present inside the twig file not executing HOT 1
- How to use it in cpanel? HOT 1
- Error Installation HOT 2
- wkhtmltopdf has been archived since Jan 2, 2023 HOT 1
- Page Number and Page Header HOT 2
- Version 1.9 is not compatible with Symfony 7.0 HOT 2
- Crash on a too long filePath HOT 1
- impossible to copy content in prod environment HOT 5
- Provide support for filenames with special characters. HOT 6
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 knpsnappybundle.