Image break in PDF (paginated) export
Hello,
I'm trying to export an image dossier with one image for page but vertical images sometimes get split. There is a way to ensure that an image is always only on a single page, instead of spanning multiple pages? The images much smaller than the page, but based on the document flow, they end up at the bottom of the page and get split. I tried to modify css with page-break-inside: avoid code or break-inside:avoid but it doesn't works...
In attached image an exemple (image borders are just to help me testing css).
Thanks,
Marco
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 30 Aug, 2022 04:02 PM
Unfortunately Marked's PDF output is at the mercy of the WebKit rendering engine, which (like most browsers) takes page-break rules as simple suggestions. Would it help to put intentional page breaks before each image? You could do this by inserting horizontal rules (* * *) and turning on "Replace horizontal rules with page breaks" in Preferences->Export. It all depends on the size and shape of the image as to whether that's a solution or not.
2 Posted by chewzer on 30 Aug, 2022 04:34 PM
Thank you Brett, I did it but it doesn't works (see attached file)... The goal was to use the same .md files to generate my website (with blot.im) and at the same time to generate PDF portfolios... it seems that I have to wait...