Reports
pdf.Create
The arupcomputepy.pdf.Create(...) function takes some HTML and converts it to a PDF with an Arup-branded border.
The arguments are:
| Argument | Type | Description |
|---|---|---|
| html | HTML | HTML content (e.g. from DesignCheck calculation) |
| name | string | Author's name to be added to the Arup-brand border of the PDF |
| path | filepath | Filepath to write the generated PDF document to |
| replace | boolean | TRUE / FALSE value for whether an existing PDF at the chosen location should be overwritten with new information. |
tip
Before creating a PDF, a user can simply concatenate multiple HTML strings together to create a report as desired.
E.g. Custom written HTML can preface a DesignCheck report.
PyPDF2
PyPDF2 can be used for manipulating PDFs, e.g. merging documents together.