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.4.0+02318d3e3f9645a1305b87026fb971a660079e54
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