Login  Register

Re: Setting global pdf width when using asciidoctor-pdf

Posted by mojavelinux on Oct 26, 2018; 7:18am
URL: https://discuss.asciidoctor.org/Setting-global-pdf-width-when-using-asciidoctor-pdf-tp6230p6551.html

Francesco,

Currently, the default width can only be set via the theme.

https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#keys-image

It seems reasonable to be able to control it via the document as well. I recommend submitting an issue if that interests you.

Cheers,

-Dan

On Fri, Mar 23, 2018 at 4:01 AM fmarchioni [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi all!
I'd need to set the width of pdf generated by asciidoctor-pdf to be 7.48 inches so that it's compliant with a Kindle book format.
I've tried settings in the top header:

= Title of the book
:source-highlighter: coderay
:icons: font
:pdfwidth: 7.48in

But the width seems not affected....
Do I have to provide it in a different way ?
Thanks
Francesco


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Setting-global-pdf-width-when-using-asciidoctor-pdf-tp6230.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux