./dtcw4 local generatePDF
generatePDF
About This Task
Generates PDF from your AsciiDoc sources using AsciidoctorJ PDF.
Output is written to build/pdf/.
The result looks like a typeset book, not a print-to-PDF web page.
Configuration
Specify which files to render in your docToolchainConfig.groovy:
inputFiles = [
[file: 'manual.adoc', formats: ['html','pdf']],
]
Add the files you want rendered with the pdf format.
Custom PDF Theme
To customize colors, fonts, headers, and footers, create a custom-theme.yml file.
-
Run
./dtcw4 local copyThemes pdfThemeto copy the bundledpdfTheme(including the exampletemplate_config/pdfTheme/custom-theme.yml) into your project. -
Reference it from your AsciiDoc file:
:pdf-themesdir: {docdir}/../pdfTheme
:pdf-theme: custom
Further Reading
Source
View the source of this task: scripts/generatePDF.groovy on GitHub
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.