A utility class to create a new PdfDocument object

Hierarchy

  • PdfGenerator

Constructors

Methods

  • Converts multiple image files to a PDF document. Each image creates 1 page which matches the image dimensions. The default PaperSize is A4. You can set it via ImageToPdfConverter.PaperSize. Note: Imaging.ImageBehavior.CropPage will set PaperSize equal to ImageSize.

    Parameters

    Returns Promise<PdfDocument>

  • Static method that joins (concatenates) multiple PDF documents together into one compiled PDF document. If the PDF contains form fields the form field in the resulting PDF's name will be appended with '_{index}' e.g. 'Name' will be 'Name_0'

    Parameters

    Returns Promise<PdfDocument>

Generated using TypeDoc