How to insert page breaks for html to pdf conversion

Miklos Vajna vmiklos at collabora.com
Tue Aug 13 07:19:13 UTC 2019


Hi Jerry,

On Mon, Aug 12, 2019 at 02:21:02PM -0400, Jerry Geis <jerry.geis at gmail.com> wrote:
> What can I put in my HTML document that will cause a page break when
> converting to PDF
> with the --headless --convert-to pdf command line

If you just load a HTML document, it'll be loaded into Writer/Web, which
has no page breaks.

If you force loading into plain Writer like this:

--infilter="HTML (StarWriter)"

then you can use a markup like:

<p style="page-break-before: always">
first paragraph on the next page
</p>

to have a page break before a paragraph.

Are you looking at improving something in the Writer HTML filter? This
is the dev list after all. ;-)

Regards,

Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Digital signature
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20190813/7eb5fd1e/attachment.sig>


More information about the LibreOffice mailing list