Creates an attachment in PDF document from the given stream and an icon for attachment in the given rectangle in the given PDF page.
The stream must remain opened until the document is saved
Namespace: HiQPdf
Assembly: HiQPdf (in HiQPdf.dll) Version: 15.0.0.0
Syntax
public PdfAttachment CreateAttachmentFromStream( PdfPage page, RectangleF iconBounds, PdfAttachIconType iconType, Stream stream, string name )
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 - stream
- Type: System.IOStream
The stream to embed in PDF - name
- Type: SystemString
The name of the attachment
Return Value
Type: PdfAttachmentThe PDF attachment that can be further customized
See Also