HiQPdf Documentation

PdfDocumentCreateAttachmentFromData Method (PdfPage, RectangleFloat, PdfAttachIconType, Byte, String, String)

HiQPdf Client for .NET Core
Creates an attachment in PDF document from the given data and an icon for attachment in the given rectangle in the given PDF page

Namespace:  HiQPdfClient
Assembly:  HiQPdfClient.NetCore (in HiQPdfClient.NetCore.dll) Version: 15.0.0
Syntax

public PdfAttachment CreateAttachmentFromData(
	PdfPage page,
	RectangleFloat iconBounds,
	PdfAttachIconType iconType,
	byte[] data,
	string name,
	string description
)

Parameters

page
Type: HiQPdfClientPdfPage
The PDF page where to create the attachment icon
iconBounds
Type: HiQPdfClientRectangleFloat
The bounding rectangle of the attachment icon
iconType
Type: HiQPdfClientPdfAttachIconType
The attachment icon type
data
Type: SystemByte
The data to embed in PDF
name
Type: SystemString
The name of the attachment
description
Type: SystemString
Descriptive text associated with the attachment

Return Value

Type: PdfAttachment
The PDF attachment that can be further customized
See Also

Reference