Conversion to PDF
AIOP is capable of converting resources into PDFs. Currently, this is limited to Markdown files, but other text formats will be added in the future.
From Markdown
To declare a Markdown resource to be converted into a PDF, simply declare the file with the .md
extension and specify the destination as a .pdf
file in the .aml
declaration file.
- .aiop
- .aml
- doc.md
resources/.aml
- source: doc.md
destination: doc.pdf
compatibility:
- ...
The generated package will contain the doc.pdf
file, which will be a conversion of the doc.md
file into a PDF.
The library used for generating this PDF from a Markdown file is mdpdf (opens in a new tab).