HiQPdf Documentation

PdfDocumentCreateAttachmentFromStream Method (PdfPage, RectangleF, PdfAttachIconType, Stream, String)

Quickly Create High Quality PDFs
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: 14.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: PdfAttachment
The PDF attachment that can be further customized
See Also

Reference