Attaches the given file to the PDF document and creates an icon for the attachment in the given rectangle in the given PDF page
Namespace: HiQPdf
Assembly: HiQPdf (in HiQPdf.dll) Version: 15.0.0.0
Syntax
public PdfAttachment CreateAttachmentFromFile( PdfPage page, RectangleF iconBounds, PdfAttachIconType iconType, string file )
Parameters
- page
- Type: HiQPdfPdfPage
The PDF page where to create the attachment icon - iconBounds
- Type: System.DrawingRectangleF
The bounding rectangle of the attachment icon - iconType
- Type: HiQPdfPdfAttachIconType
The attachment icon type - file
- Type: SystemString
The full path of the file to attach
Return Value
Type: PdfAttachment>The PDF attachment that can be further customized
See Also