Description
Sets the margin from the top border of the page.
Applies to
Syntax
SetTopMargin (double top)
Return value
None.
Usage
When this function is called in PDFTableOfContents object, it sets the margin between the table of contents and the top border of the page.
When this function is called in PDFDocument object, it sets the margin between the document and the top border of the page.
When this function is called in PDFPage object, it sets the margin between the PDF page and the top border of the page.
Examples
This example sets the top margin for the table of contents.
lpdf_toc.SetTopMargin(100)
See also