• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

HTML to PDF - Defining Page Breaks

New Here ,
Feb 24, 2019 Feb 24, 2019

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

TOPICS
Create PDFs

Views

6.7K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 24, 2019 Feb 24, 2019

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 26, 2019 Apr 26, 2019

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)

  • Page size
  • Page-margin boxes (where you put headers, footer and page number, and yes, everything should be created)
  • right/left page breaks before elements (standard page break work)
  • Font face support if you have more than one font-face (i.e. one for the text and one for headers).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 27, 2019 Apr 27, 2019

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 27, 2019 Apr 27, 2019

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines