Closed fsa1803 closed 3 years ago
To do so, you need to use the provided asciidoctor capabilities. So creating external theme files, as described here* Create the external themes as described here, is the way to go. Here are some short descriptions for different use cases:
1) Reporter with fixed setting of pdf-theme
pdf-theme
, pdf-themesdir
and optionally pdf-fontsdir
) in your configuration file in the default-document-attributes
section, e.g.
default-document-attributes:
pdf-theme: <<your_theme_name>>
pdf-themesdir: <<path_to_your_themes>>
If everything is setup properly, your style theme should be applied for the next renderings.
2) Reporter call from command line
pdf-theme
and pdf-themesdir
to your command line call, e.g.
ruby-grafana-reporter -t <<your_template>> -s pdf-theme,<<your_theme_name>> -s pdf-themesdir,<<path_to_your_themes>>
3) Reporter call as webservice
pdf-theme
and pdf-themesdir
to your calling url, e.g.
http://localhost/render?var-template=<<your_template>>&pdf-theme=<<your_theme_name>>&pdf-themesdir=<<path_to_your_themes>>
Hope this helps.
Thanks for your tips, everything works. Attributes cannot be placed in the adoc file, but that's not a problem for me, I use an external theme. But I think that being able to insert the attributes in the adoc file is a nice evolution.
Thanks
Hello. I would like to insert some text in the header and at the footer of the pages. In the asciidoc documentation I see that we need to create an external theme file. Is it possible or is there another method?
Thanks