/ PDF / PdfSection
Search results

PdfSection API in JavaScript PDF API control

Represents a PDF section, a set of pages with similar page settings.

// Create a new PDF document
let document: PdfDocument = new PdfDocument();
// Add a new section to the document
let section: PdfSection = document.addSection();
// Add a page to the section
let page: PdfPage = section.addPage();
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();

Methods

addPage

Creates a new page and adds it to the collection.

Returns PdfPage

Contents
Contents