Class HeaderFooterOptions
java.lang.Object
com.ironsoftware.ironpdf.headerfooter.HeaderFooterOptions
Defines options for Headers and Footers applied to a
PdfDocument
during rendering or at any other time.
See: HtmlHeaderFooter
See: TextHeaderFooter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets first page number.First number used in {page} merge fields on the first page of the PDF.Gets html title.int
Gets margin bottom mm.int
Gets margin left mm.int
Gets margin right mm.int
Gets margin top mm.Gets pdf title.Gets render pdf css media type.void
setFirstPageNumber
(int firstPageNumber) Sets first page number.void
setHtmlTitle
(String htmlTitle) Sets html title.void
setMarginBottomMm
(int marginBottomMm) Sets margin bottom mm.void
setMarginLeftMm
(int marginLeftMm) Sets margin left mm.void
setMarginRightMm
(int marginRightMm) Sets margin right mm.void
setMarginTopMm
(int marginTopMm) Sets margin top mm.void
setPdfTitle
(String pdfTitle) Sets pdf title.void
setRenderPdfCssMediaType
(CssMediaType renderPdfCssMediaType) Sets render pdf css media type.
-
Constructor Details
-
HeaderFooterOptions
public HeaderFooterOptions()Instantiates a new Header footer options.
-
-
Method Details
-
getMarginLeftMm
public int getMarginLeftMm()Gets margin left mm. The left margin of the header on the page; in millimeters. Default is 0mm.- Returns:
- the margin left mm
-
setMarginLeftMm
public void setMarginLeftMm(int marginLeftMm) Sets margin left mm. The left margin of the header on the page; in millimeters. Default is 0mm.- Parameters:
marginLeftMm
- the margin left mm
-
getMarginRightMm
public int getMarginRightMm()Gets margin right mm. The top margin of the header on the page; in millimeters. Default is 0mm.- Returns:
- the margin right mm
-
setMarginRightMm
public void setMarginRightMm(int marginRightMm) Sets margin right mm. The top margin of the header on the page; in millimeters. Default is 0mm.- Parameters:
marginRightMm
- the margin right mm
-
getMarginTopMm
public int getMarginTopMm()Gets margin top mm. The top margin of the header on the page; in millimeters. Default is 0mm.- Returns:
- the margin top mm
-
setMarginTopMm
public void setMarginTopMm(int marginTopMm) Sets margin top mm. The top margin of the header on the page; in millimeters. Default is 0mm.- Parameters:
marginTopMm
- the margin top mm
-
getMarginBottomMm
public int getMarginBottomMm()Gets margin bottom mm. The bottom margin of the header on the page; in millimeters. Default is 0mm.- Returns:
- the margin bottom mm
-
setMarginBottomMm
public void setMarginBottomMm(int marginBottomMm) Sets margin bottom mm. The bottom margin of the header on the page; in millimeters. Default is 0mm.- Parameters:
marginBottomMm
- the margin bottom mm
-
getFirstPageNumber
public int getFirstPageNumber()Gets first page number.First number used in {page} merge fields on the first page of the PDF. Subsequent page numbers will increment from this number. Default is 0.- Returns:
- the first page number
-
setFirstPageNumber
public void setFirstPageNumber(int firstPageNumber) Sets first page number. First number used in {page} merge fields on the first page of the PDF. Subsequent page numbers will increment from this number. Default is 0.- Parameters:
firstPageNumber
- the first page number
-
getRenderPdfCssMediaType
Gets render pdf css media type. RenderPdfCssMediaType, Default is PRINT. This will be ignored if the header/footer is TextHeaderFooter.- Returns:
- the render pdf css media type
-
setRenderPdfCssMediaType
Sets render pdf css media type. RenderPdfCssMediaType, Default is PRINT. This will be ignored if the header/footer is TextHeaderFooter.- Parameters:
renderPdfCssMediaType
- the render pdf css media type
-
getPdfTitle
Gets pdf title. Default is null.- Returns:
- the pdf title
-
setPdfTitle
Sets pdf title. Default is null.- Parameters:
pdfTitle
- the pdf title
-
getHtmlTitle
Gets html title. Default is null. This will be ignored if the header/footer is TextHeaderFooter.- Returns:
- the html title
-
setHtmlTitle
Sets html title. Default is null. This will be ignored if the header/footer is TextHeaderFooter.- Parameters:
htmlTitle
- the html title
-