Login  Register

Setting global pdf width when using asciidoctor-pdf

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Setting global pdf width when using asciidoctor-pdf

fmarchioni
1 post
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
| More
Print post
Permalink

Re: Setting global pdf width when using asciidoctor-pdf

mojavelinux
Administrator
2681 posts
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