Description
Gets the margin from the top border of the page.
Applies to
Syntax
double GetTopMargin()
Return value
Double. Returns the top margin. The unit is point (pt).
Usage
When this function is called in PDFTableOfContents object, it gets the margin between the table of contents and the top border of the page.
When this function is called in PDFDocument object, it gets the margin between the document and the top border of the page.
When this function is called in PDFPage object, it gets the margin between the PDF page and the top border of the page.
Examples
The following example gets the margin between the table of contents and the top border of the page.
Double ld_top Ld_top = lpdf_toc.gettopmargin( )
See also