Copy link to clipboard
Copied
Hi there.
I've converted a HTML text page to PDF with no problems, but I'd like to control the way pages break better.
Is there a way for me to keep continuous paragraphs uninterrupted?
Here's what the text looks like:
https://i.imgur.com/4LRpa21.jpg​
I'd like pages to always split along line breaks and not interrupt the paragraphs.
Hope you can help, thanks
Copy link to clipboard
Copied
Since there's no such thing as a page-break in an HTML file, the answer is no. You can only extract pages to a specific size.
Alternatively, convert the HTML file to Word, edit it there so it has the layout you want it to (including page breaks), and then convert it to PDF.
Copy link to clipboard
Copied
The solution is setting up a proper @page policy in your CSS (or in your media="print" stylesheet).
For istance, you can force a page break before headings 1
h2.titolo {
page-break-before: right;
}
Unfortunately, so far Acrobat has a poor rendition of most CSS3 @page policies, thus in your pdf the heading will not start on a right page (but other renderers can do that).
Full list of tags and pseudo elements here: https://www.w3.org/TR/css-page-3/
Not working in Acrobat in my experience (I am waiting for an answer from support)
Copy link to clipboard
Copied
Thanks for sharing your experience. I know Adobe did some improvements in the last few years, so I'd just like to check what version you're working with?
Copy link to clipboard
Copied
I'm on a CC plan, so it is Acrobat Pro DC 2019.010.20100
Works also on the Chrome extension.
I suspect they never implemented most of it simply bacause what most users need to format are random web pages and not web sites with proper page informations.