Click or drag to resize
Pdftools logo

ContentGenerator Constructor

Create a new content generator for appending or prepending to the content of a group.


Namespace: PdfTools.Toolbox.Pdf.Content
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.11.0+eb7160cc6b920e36fb1ea2abe5f76809067c0c55
Syntax
C#
public ContentGenerator(
	Content content,
	bool prepend
)

Parameters

content  Content
the content object of a page or group
prepend  Boolean
for prepending to the content (apply content to background of page), for appending (apply content to foreground of page)
Exceptions
ExceptionCondition
ArgumentExceptionif the document associated with content has already been closed
ArgumentExceptionif the page or group associated with the content has already been appended or closed
ArgumentNullExceptionif content is .
See Also