Table of Contents

Class FileAttachment

Namespace
PDFjet.NET
Assembly
PDFjet.dll

Used to attach file objects.

public class FileAttachment : IDrawable
Inheritance
FileAttachment
Implements
Inherited Members

Constructors

FileAttachment(EmbeddedFile)

Creates an attachment for the embedded file.

public FileAttachment(EmbeddedFile file)

Parameters

file EmbeddedFile

Methods

DrawOn(Page)

Adds this attachment to the specified page.

public float[] DrawOn(Page page)

Parameters

page Page

Returns

float[]

SetContents(string)

Sets the contents of this attachment, the text a viewer shows for it.

public FileAttachment SetContents(string contents)

Parameters

contents string

Returns

FileAttachment

SetIconPaperclip()

Uses the "Paperclip" icon.

public FileAttachment SetIconPaperclip()

Returns

FileAttachment

SetIconPushPin()

Uses the "PushPin" icon.

public FileAttachment SetIconPushPin()

Returns

FileAttachment

SetIconSize(float)

Sets the height of the icon.

public FileAttachment SetIconSize(float height)

Parameters

height float

Returns

FileAttachment

SetLocation(float, float)

Sets the location of the attachment icon on the page.

public FileAttachment SetLocation(float x, float y)

Parameters

x float
y float

Returns

FileAttachment

SetTitle(string)

Sets the title of this attachment.

public FileAttachment SetTitle(string title)

Parameters

title string

Returns

FileAttachment