Click or drag to resize
Pdftools logo

ContentGeneratorPaintGroup Method

Paint a group.


Namespace: PdfTools.Toolbox.Pdf.Content
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.4.0+02318d3e3f9645a1305b87026fb971a660079e54
Syntax
C#
public void PaintGroup(
	Group group,
	Rectangle? targetRect,
	Transparency transparency
)

Parameters

group  Group
the group to be painted
targetRect  NullableRectangle
the target rectangle in the current coordinate system. If targetRect is , a default rectangle [0, 0, width, height] is used, where width and height are the dimensions of the given group's Size
transparency  Transparency
the transparency to be used when painting the group. If Transparency is , then the group is painted opaquely.
Exceptions
ExceptionCondition
InvalidOperationExceptionif the document associated with the content has already been closed
InvalidOperationExceptionif the page/group associated with the content has already been closed
InvalidOperationExceptionif the content object has already been closed
InvalidOperationExceptionif the object has already been closed
ArgumentExceptionif the document associated with the group object has already been closed
ArgumentExceptionif the group is associated with a different document
ArgumentExceptionif the group contains no content or the content generator has not been closed yet
ArgumentExceptionif the group contains interactive elements (see CopyFromPage(Document, Page, PageCopyOptions)) and it has been painted before.
ArgumentExceptionif the group contains interactive elements (see CopyFromPage(Document, Page, PageCopyOptions)) and the content of the content generator belongs to an annotation.
ConformanceExceptionif the transparency argument is not and has properties Alpha other than 1.0 or BlendMode other than Normal, and the explicitly specified conformance does not support transparency (PDF/A-1, PDF 1.0 - 1.3).
ArgumentNullExceptionif group is .
See Also