Setting global pdf width when using asciidoctor-pdf

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Setting global pdf width when using asciidoctor-pdf

fmarchioni
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
Reply | Threaded
Open this post in threaded view
|

Re: Setting global pdf width when using asciidoctor-pdf

mojavelinux
Administrator
Francesco,

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


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