For PDFTableOfContents, PDFDocument, and PDFPage

Applies to

PDFTableOfContents, PDFDocument, and PDFPage objects

Description

The TopMargin property specifies the size (in points) of the top margin on the page.

For PDFTableOfContents, it is the margin between the table of contents and the top border of the page. If not set, the top margin of the PDF document will be used.

For PDFDocument, it is the margin between the document and the top border of the page.

For PDFPage, it is the margin between the PDF page and the top border of the page. If not set, the top margin of the PDF document will be used.

Usage

In scripts

The TopMargin property takes a double value. The following line sets the top margin of table of contents to 20 points:

lpdf_toc.topmargin = 20