PdfDocumentCreateAttachmentFromFile(PdfPage, RectangleFloat, PdfAttachIconType, String) Method

Attaches the given file to the PDF document and creates an icon for the attachment in the given rectangle in the given PDF page

Definition

Namespace: HiQPdfClient
Assembly: HiQPdfClient.NetCore (in HiQPdfClient.NetCore.dll) Version: 16.0.0
C#
public PdfAttachment CreateAttachmentFromFile(
	PdfPage page,
	RectangleFloat iconBounds,
	PdfAttachIconType iconType,
	string file
)

Parameters

page  PdfPage
The PDF page where to create the attachment icon
iconBounds  RectangleFloat
The bounding rectangle of the attachment icon
iconType  PdfAttachIconType
The attachment icon type
file  String
The full path of the file to attach

Return Value

PdfAttachment
>The PDF attachment that can be further customized

See Also