Gets the collection of all pages of this [PdfContent](../../com.groupdocs.watermark.contents/pdfcontent).
Returns:PdfPageCollection - The collection of all pages of this [PdfContent](../../com.groupdocs.watermark.contents/pdfcontent).
getAttachments()
public final PdfAttachmentCollection getAttachments()
Gets the collection of all attachments of this [PdfContent](../../com.groupdocs.watermark.contents/pdfcontent).
Returns:PdfAttachmentCollection - The collection of all attachments of this [PdfContent](../../com.groupdocs.watermark.contents/pdfcontent).
getPageMarginType()
public final int getPageMarginType()
Gets pdf page margins to be used during watermark adding.
This property works only when [Watermark.getConsiderParentMargins()](../../com.groupdocs.watermark/watermark#getConsiderParentMargins--) is true. If [Watermark.getConsiderParentMargins()](../../com.groupdocs.watermark/watermark#getConsiderParentMargins--) is false, when pdf CropBox is used as watermarking area.
The default value is [PdfPageMarginType.TrimBox](../../com.groupdocs.watermark.contents/pdfpagemargintype#TrimBox).
Returns:
int
setPageMarginType(int value)
public final void setPageMarginType(int value)
Sets pdf page margins to be used during watermark adding.
This property works only when [Watermark.getConsiderParentMargins()](../../com.groupdocs.watermark/watermark#getConsiderParentMargins--) is set to true. If [Watermark.getConsiderParentMargins()](../../com.groupdocs.watermark/watermark#getConsiderParentMargins--) is false, when pdf CropBox is used as watermarking area.
The default value is [PdfPageMarginType.TrimBox](../../com.groupdocs.watermark.contents/pdfpagemargintype#TrimBox).
Parameters:
Parameter
Type
Description
value
int
getAsposePdfDocument()
public final Document getAsposePdfDocument()
Returns:
com.aspose.pdf.Document
addArtifactWatermark(Watermark watermark)
public final void addArtifactWatermark(Watermark watermark)