Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for Show only | Search instead for Did you mean:Copy link to clipboard
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:
I'd like pages to always split along line breaks and not interrupt the paragraphs.
Hope you can help, thanks
Create PDFs Community guidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
4 Replies 4 Community Expert ,/t5/acrobat-discussions/html-to-pdf-defining-page-breaks/m-p/10370337#M135168 Feb 24, 2019 Feb 24, 2019
Copy link to clipboard
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.
Community guidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
/t5/acrobat-discussions/html-to-pdf-defining-page-breaks/m-p/10370338#M135169 Apr 26, 2019 Apr 26, 2019
Copy link to clipboard
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)