asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.88k stars 295 forks source link

Let apply settings to define the margin limits to export PDF #500

Closed manueljordan closed 1 year ago

manueljordan commented 3 years ago

Hello

Please, would be possible enable margins configurations prior to export or generate a PDF?. Some times long lines breaks in two lines, but I can see a good amount of empty space for the left and right margins. So if I can reduce them I am sure that the content is going to be shown in one line.

Thanks for your understanding

life888888 commented 1 year ago

AsciidocFX 1.7.6+ add in your adoc file header :pdf-page-margin: [5cm, 1cm]

REF: https://docs.asciidoctor.org/pdf-converter/latest/asciidoc-attributes/

I have tested this setting and it works.

manueljordan commented 1 year ago

Huge thanks for this!, as I can see (not tested yet) it works for cms and inches