Skip to content

Which Attributes are Supported by asciidoctor-web-pdf #703

Answered by ggrossetie
blueray453 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey!
Asciidoctor Web PDF does not aim to support Asciidoctor PDF attributes. Asciidoctor Web PDF relies on web technologies and more specifically on CSS to layout/render/style a document.

Because of this, the following attributes won't be supported:

:pdf-fontsdir: fonts
:pdf-themesdir: themes
:pdf-theme: theme.yml

Regarding :optimize: printer, I'm not sure what it does? I guess this is some kind of profile when the PDF is generated?

Technically, the following attribute could generate the corresponding CSS definition but it's not implemented:

:pdf-page-margin: [1in, 0.5in]

It seems like most of these attributes are not supported. I have to use the following styles.css to address most of…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by blueray453
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants