PdfDocumentCreateAttachmentFromStream(PdfPage, RectangleF, PdfAttachIconType, Stream, String) Method
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: HiQPdfAssembly: HiQPdf.NetCore (in HiQPdf.NetCore.dll) Version: 16.0.0
public PdfAttachment CreateAttachmentFromStream(
PdfPage page,
RectangleF iconBounds,
PdfAttachIconType iconType,
Stream stream,
string name
)
Public Function CreateAttachmentFromStream (
page As PdfPage,
iconBounds As RectangleF,
iconType As PdfAttachIconType,
stream As Stream,
name As String
) As PdfAttachment
public:
PdfAttachment^ CreateAttachmentFromStream(
PdfPage^ page,
RectangleF iconBounds,
PdfAttachIconType iconType,
Stream^ stream,
String^ name
)
member CreateAttachmentFromStream :
page : PdfPage *
iconBounds : RectangleF *
iconType : PdfAttachIconType *
stream : Stream *
name : string -> PdfAttachment
- page PdfPage
- The PDF page where to create the attachment icon
- iconBounds RectangleF
- The bounding rectangle of the attachment icon
- iconType PdfAttachIconType
- The attachment icon type
- stream Stream
- The stream to embed in PDF
- name String
- The name of the attachment
PdfAttachmentThe PDF attachment that can be further customized