| FileAttachmentCreate Method |
Create a file attachment annotation.
The returned file attachment annotation is not yet part of any page.
It can be added to a page's list of annotations.
Namespace: PdfTools.FourHeights.PdfToolbox.Pdf.AnnotationsAssembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 1.0.0
Syntax public static FileAttachment Create(
Document targetDocument,
Point topLeft,
FileReference attachedFile,
Paint paint
)
Parameters
- targetDocument Document
-
The output document with which the returned object is associated
- topLeft Point
-
The location of the annotation's upper left corner on the page.
- attachedFile FileReference
-
The file to be attached.
- paint Paint
-
This paint for the file attachment icon.
Return Value
FileAttachment
The newly created file attachment annotation.
Exceptions See Also