Skip to main content

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:

ArgumentTypeDescription
htmlHTMLHTML content (e.g. from DesignCheck calculation)
namestringAuthor's name to be added to the Arup-brand border of the PDF
pathfilepathFilepath to write the generated PDF document to
replacebooleanTRUE / 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.