PdfAnnotation Public class
Diagram
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph iTextSharp.text.pdf
iTextSharp.text.pdf.PdfAnnotation[[PdfAnnotation]]
iTextSharp.text.pdf.PdfDictionary[[PdfDictionary]]
end
subgraph iTextSharp.text.pdf.interfaces
iTextSharp.text.pdf.interfaces.IAccessibleElement[[IAccessibleElement]]
class iTextSharp.text.pdf.interfaces.IAccessibleElement interfaceStyle;
end
iTextSharp.text.pdf.interfaces.IAccessibleElement --> iTextSharp.text.pdf.PdfAnnotation
iTextSharp.text.pdf.PdfDictionary --> iTextSharp.text.pdf.PdfAnnotation
Members
Properties
Public properties
Internal properties
Methods
Public Static methods
Returns | Name |
---|
PdfAnnotation | CreateFileAttachment (... ) |
PdfAnnotation | CreateFreeText (PdfWriter writer, Rectangle rect, string contents, PdfContentByte defaultAppearance) |
PdfAnnotation | CreateInk (PdfWriter writer, Rectangle rect, string contents, float``[][] inkList) |
PdfAnnotation | CreateLine (PdfWriter writer, Rectangle rect, string contents, float x1, float y1, float x2, float y2) |
PdfAnnotation | CreateLink (... ) |
PdfAnnotation | CreateMarkup (PdfWriter writer, Rectangle rect, string contents, int type, float``[] quadPoints) |
PdfAnnotation | CreatePolygonPolyline (PdfWriter writer, Rectangle rect, string contents, bool polygon, PdfArray vertices) |
PdfAnnotation | CreatePopup (PdfWriter writer, Rectangle rect, string contents, bool open) |
PdfAnnotation | CreateScreen (PdfWriter writer, Rectangle rect, string clipTitle, PdfFileSpecification fs, string mimeType, bool playOnDisplay) |
PdfAnnotation | CreateSquareCircle (PdfWriter writer, Rectangle rect, string contents, bool square) |
PdfAnnotation | CreateStamp (PdfWriter writer, Rectangle rect, string contents, string name) |
PdfAnnotation | CreateText (PdfWriter writer, Rectangle rect, string title, string contents, bool open, string icon) |
PdfArray | GetMKColor (BaseColor color) |
PdfAnnotation | ShallowDuplicate (PdfAnnotation annot) |
Protected Static methods
Public methods
Internal methods
Details
Inheritance
Nested types
Classes
Constructors
PdfAnnotation [1/3]
Source code
public PdfAnnotation(PdfWriter writer, Rectangle rect)
Arguments
PdfAnnotation [2/3]
Source code
public PdfAnnotation(PdfWriter writer, float llx, float lly, float urx, float ury, PdfString title, PdfString content)
Arguments
PdfAnnotation [3/3]
Source code
public PdfAnnotation(PdfWriter writer, float llx, float lly, float urx, float ury, PdfAction action)
Arguments
Methods
CreateScreen
Source code
public static PdfAnnotation CreateScreen(PdfWriter writer, Rectangle rect, string clipTitle, PdfFileSpecification fs, string mimeType, bool playOnDisplay)
Arguments
CreateText
Source code
public static PdfAnnotation CreateText(PdfWriter writer, Rectangle rect, string title, string contents, bool open, string icon)
Arguments
Type | Name | Description |
---|
PdfWriter | writer | |
Rectangle | rect | |
string | title | |
string | contents | |
bool | open | |
string | icon | |
CreateLink [1/4]
Source code
protected static PdfAnnotation CreateLink(PdfWriter writer, Rectangle rect, PdfName highlight)
Arguments
CreateLink [2/4]
Source code
public static PdfAnnotation CreateLink(PdfWriter writer, Rectangle rect, PdfName highlight, PdfAction action)
Arguments
CreateLink [3/4]
Source code
public static PdfAnnotation CreateLink(PdfWriter writer, Rectangle rect, PdfName highlight, string namedDestination)
Arguments
CreateLink [4/4]
Source code
public static PdfAnnotation CreateLink(PdfWriter writer, Rectangle rect, PdfName highlight, int page, PdfDestination dest)
Arguments
CreateFreeText
Source code
public static PdfAnnotation CreateFreeText(PdfWriter writer, Rectangle rect, string contents, PdfContentByte defaultAppearance)
Arguments
CreateLine
Source code
public static PdfAnnotation CreateLine(PdfWriter writer, Rectangle rect, string contents, float x1, float y1, float x2, float y2)
Arguments
CreateSquareCircle
Source code
public static PdfAnnotation CreateSquareCircle(PdfWriter writer, Rectangle rect, string contents, bool square)
Arguments
CreateMarkup
Source code
public static PdfAnnotation CreateMarkup(PdfWriter writer, Rectangle rect, string contents, int type, float[] quadPoints)
Arguments
CreateStamp
Source code
public static PdfAnnotation CreateStamp(PdfWriter writer, Rectangle rect, string contents, string name)
Arguments
CreateInk
Source code
public static PdfAnnotation CreateInk(PdfWriter writer, Rectangle rect, string contents, float[][] inkList)
Arguments
CreateFileAttachment [1/2]
Source code
public static PdfAnnotation CreateFileAttachment(PdfWriter writer, Rectangle rect, string contents, byte[] fileStore, string file, string fileDisplay)
Arguments
Type | Name | Description |
---|
PdfWriter | writer | |
Rectangle | rect | |
string | contents | |
byte``[] | fileStore | |
string | file | |
string | fileDisplay | |
CreateFileAttachment [2/2]
Source code
public static PdfAnnotation CreateFileAttachment(PdfWriter writer, Rectangle rect, string contents, PdfFileSpecification fs)
Arguments
Source code
public static PdfAnnotation CreatePopup(PdfWriter writer, Rectangle rect, string contents, bool open)
Arguments
CreatePolygonPolyline
Source code
public static PdfAnnotation CreatePolygonPolyline(PdfWriter writer, Rectangle rect, string contents, bool polygon, PdfArray vertices)
Arguments
SetHighlighting
Source code
public virtual void SetHighlighting(PdfName highlight)
Arguments
Type | Name | Description |
---|
PdfName | highlight | |
SetAppearance [1/2]
Source code
public virtual void SetAppearance(PdfName ap, PdfTemplate template)
Arguments
SetAppearance [2/2]
Source code
public virtual void SetAppearance(PdfName ap, string state, PdfTemplate template)
Arguments
SetAdditionalActions
Source code
public virtual void SetAdditionalActions(PdfName key, PdfAction action)
Arguments
IsUsed
Source code
internal virtual bool IsUsed()
SetUsed
Source code
public virtual void SetUsed()
GetTemplates
Source code
public virtual HashSet2<PdfTemplate> GetTemplates()
Source code
public virtual bool IsForm()
IsAnnotation
Source code
public virtual bool IsAnnotation()
SetPage
Source code
public virtual void SetPage()
ShallowDuplicate
Source code
public static PdfAnnotation ShallowDuplicate(PdfAnnotation annot)
Arguments
GetMKColor
Source code
public static PdfArray GetMKColor(BaseColor color)
Arguments
SetMKIconFit
Source code
public virtual void SetMKIconFit(PdfName scale, PdfName scalingType, float leftoverLeft, float leftoverBottom, bool fitInBounds)
Arguments
Type | Name | Description |
---|
PdfName | scale | |
PdfName | scalingType | |
float | leftoverLeft | |
float | leftoverBottom | |
bool | fitInBounds | |
ApplyCTM [1/2]
Source code
public virtual void ApplyCTM(AffineTransform ctm)
Arguments
ApplyCTM [2/2]
Source code
public void ApplyCTM(Matrix ctm)
Arguments
Type | Name | Description |
---|
Matrix | ctm | |
ToPdf
Source code
public override void ToPdf(PdfWriter writer, Stream os)
Arguments
GetAccessibleAttribute
Source code
public virtual PdfObject GetAccessibleAttribute(PdfName key)
Arguments
SetAccessibleAttribute
Source code
public virtual void SetAccessibleAttribute(PdfName key, PdfObject value)
Arguments
GetAccessibleAttributes
Source code
public virtual Dictionary<PdfName, PdfObject> GetAccessibleAttributes()
Properties
IndirectReference
public virtual PdfIndirectReference IndirectReference { get; }
DefaultAppearanceString
public virtual PdfContentByte DefaultAppearanceString { set; }
Flags
public virtual int Flags { set; }
Border
public virtual PdfBorderArray Border { set; }
BorderStyle
public virtual PdfBorderDictionary BorderStyle { set; }
AppearanceState
public virtual string AppearanceState { set; }
Color
public virtual BaseColor Color { set; }
Title
public virtual string Title { set; }
public virtual PdfAnnotation Popup { set; }
Action
public virtual PdfAction Action { set; }
Templates
public virtual Dictionary<PdfTemplate, object> Templates { get; }
Page
public virtual int Page { set; }
PlaceInPage
public virtual int PlaceInPage { get; set; }
Rotate
public virtual int Rotate { set; }
MK
internal PdfDictionary MK { get; }
MKRotation
public virtual int MKRotation { set; }
MKBorderColor
public virtual BaseColor MKBorderColor { set; }
MKBackgroundColor
public virtual BaseColor MKBackgroundColor { set; }
MKNormalCaption
public virtual string MKNormalCaption { set; }
MKRolloverCaption
public virtual string MKRolloverCaption { set; }
MKAlternateCaption
public virtual string MKAlternateCaption { set; }
MKNormalIcon
public virtual PdfTemplate MKNormalIcon { set; }
MKRolloverIcon
public virtual PdfTemplate MKRolloverIcon { set; }
MKAlternateIcon
public virtual PdfTemplate MKAlternateIcon { set; }
MKTextPosition
public virtual int MKTextPosition { set; }
Layer
public virtual IPdfOCG Layer { set; }
Name
public virtual string Name { set; }
Role
public virtual PdfName Role { get; set; }
ID
public virtual AccessibleElementId ID { get; set; }
IsInline
public virtual bool IsInline { get; }
Generated with ModularDoc