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

Definition

Namespace: HiQPdf
Assembly: HiQPdf.NetCore (in HiQPdf.NetCore.dll) Version: 16.0.0
C#
public PdfAttachment CreateAttachmentFromStream(
	PdfPage page,
	RectangleF iconBounds,
	PdfAttachIconType iconType,
	Stream stream,
	string name
)

Parameters

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

Return Value

PdfAttachment
The PDF attachment that can be further customized

See Also