Static
htmlCreates a PDF file from a Html string, and returns it as an PdfDocument object which can be edited and saved to disk or served on a website.
The Html to be rendered as a PDF.
Optional
options: { including ChromePdfRenderOptions
Optional
renderApply renderOptions if PdfInput is a HtmlString or HtmlFilePath or ZipFilePath or Url}
undefined
Static
htmlCreates a PDF file from a local Zip file, and returns it as a PdfDocument. IronPDF is a W3C standards compliant HTML rendering based on Google's Chromium browser. If your output PDF does not look as expected:
Validate your HTML file using https://validator.w3.org/ & CSS https://jigsaw.w3.org/css-validator/
To debug HTML, view the file in Chrome web browser's print preview which will work almost exactly as IronPDF.
Read our detailed documentation on pixel perfect HTML to PDF: https://ironpdf.com/tutorials/pixel-perfect-html-to-pdf/
Path to a Zip to be rendered as a PDF.
Optional
options: { including ChromePdfRenderOptions and mainHtmlFile
a main .html file default: index.html
Optional
mainOptional
renderApply renderOptions if PdfInput is a HtmlString or HtmlFilePath or ZipFilePath or Url}
undefined
Static
imageConverts 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.
The image file path name(s) or ImageBuffer object(s)
Optional
options: { including ImageToPdfOptions
Optional
imageApply renderOptions if PdfInput is a HtmlString or HtmlFilePath or ZipFilePath or Url}
undefined
Static
mergeStatic 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'
array of PDF
Static
urlCreate a PdfDocument from an Url
A website Url
Optional
options: { including ChromePdfRenderOptions
Optional
renderApply renderOptions if PdfInput is a HtmlString or HtmlFilePath or ZipFilePath or Url}
undefined
Generated using TypeDoc
A utility class to create a new PdfDocument object