|
HiraokaHyperTools.iTextSharp-LGPL
0.3.0
|
Classes | |
| class | PdfImportedLink |
Static Public Member Functions | |
| static PdfAnnotation | CreateScreen (PdfWriter writer, Rectangle rect, String clipTitle, PdfFileSpecification fs, String mimeType, bool playOnDisplay) |
| static PdfAnnotation | CreateText (PdfWriter writer, Rectangle rect, string title, string contents, bool open, string icon) |
| static PdfAnnotation | CreateLink (PdfWriter writer, Rectangle rect, PdfName highlight, PdfAction action) |
| static PdfAnnotation | CreateLink (PdfWriter writer, Rectangle rect, PdfName highlight, string namedDestination) |
| static PdfAnnotation | CreateLink (PdfWriter writer, Rectangle rect, PdfName highlight, int page, PdfDestination dest) |
| static PdfAnnotation | CreateFreeText (PdfWriter writer, Rectangle rect, string contents, PdfContentByte defaultAppearance) |
| static PdfAnnotation | CreateLine (PdfWriter writer, Rectangle rect, string contents, float x1, float y1, float x2, float y2) |
| static PdfAnnotation | CreateSquareCircle (PdfWriter writer, Rectangle rect, string contents, bool square) |
| static PdfAnnotation | CreateMarkup (PdfWriter writer, Rectangle rect, string contents, int type, float[] quadPoints) |
| static PdfAnnotation | CreateStamp (PdfWriter writer, Rectangle rect, string contents, string name) |
| static PdfAnnotation | CreateInk (PdfWriter writer, Rectangle rect, string contents, float[][] inkList) |
| static PdfAnnotation | CreateFileAttachment (PdfWriter writer, Rectangle rect, String contents, byte[] fileStore, String file, String fileDisplay) |
| static PdfAnnotation | CreateFileAttachment (PdfWriter writer, Rectangle rect, String contents, PdfFileSpecification fs) |
| static PdfAnnotation | CreatePopup (PdfWriter writer, Rectangle rect, string contents, bool open) |
| static PdfAnnotation | ShallowDuplicate (PdfAnnotation annot) |
| static PdfArray | GetMKColor (Color color) |
| static PdfAnnotation | CreatePolygonPolyline (PdfWriter writer, Rectangle rect, string contents, bool polygon, PdfArray vertices) |
Static Public Attributes | |
| static readonly PdfName | HIGHLIGHT_NONE = PdfName.N |
| static readonly PdfName | HIGHLIGHT_INVERT = PdfName.I |
| static readonly PdfName | HIGHLIGHT_OUTLINE = PdfName.O |
| static readonly PdfName | HIGHLIGHT_PUSH = PdfName.P |
| static readonly PdfName | HIGHLIGHT_TOGGLE = PdfName.T |
| const int | FLAGS_INVISIBLE = 1 |
| const int | FLAGS_HIDDEN = 2 |
| const int | FLAGS_PRINT = 4 |
| const int | FLAGS_NOZOOM = 8 |
| const int | FLAGS_NOROTATE = 16 |
| const int | FLAGS_NOVIEW = 32 |
| const int | FLAGS_READONLY = 64 |
| const int | FLAGS_LOCKED = 128 |
| const int | FLAGS_TOGGLENOVIEW = 256 |
| static readonly PdfName | APPEARANCE_NORMAL = PdfName.N |
| static readonly PdfName | APPEARANCE_ROLLOVER = PdfName.R |
| static readonly PdfName | APPEARANCE_DOWN = PdfName.D |
| static readonly PdfName | AA_ENTER = PdfName.E |
| static readonly PdfName | AA_EXIT = PdfName.X |
| static readonly PdfName | AA_DOWN = PdfName.D |
| static readonly PdfName | AA_UP = PdfName.U |
| static readonly PdfName | AA_FOCUS = PdfName.FO |
| static readonly PdfName | AA_BLUR = PdfName.BL |
| static readonly PdfName | AA_JS_KEY = PdfName.K |
| static readonly PdfName | AA_JS_FORMAT = PdfName.F |
| static readonly PdfName | AA_JS_CHANGE = PdfName.V |
| static readonly PdfName | AA_JS_OTHER_CHANGE = PdfName.C |
| const int | MARKUP_HIGHLIGHT = 0 |
| const int | MARKUP_UNDERLINE = 1 |
| const int | MARKUP_STRIKEOUT = 2 |
| const int | MARKUP_SQUIGGLY = 3 |
Static Public Attributes inherited from iTextSharp.text.pdf.PdfDictionary | |
| static PdfName | FONT = PdfName.FONT |
| static PdfName | OUTLINES = PdfName.OUTLINES |
| static PdfName | PAGE = PdfName.PAGE |
| static PdfName | PAGES = PdfName.PAGES |
| static PdfName | CATALOG = PdfName.CATALOG |
Static Public Attributes inherited from iTextSharp.text.pdf.PdfObject | |
| const int | BOOLEAN = 1 |
| const int | NUMBER = 2 |
| const int | STRING = 3 |
| const int | NAME = 4 |
| const int | ARRAY = 5 |
| const int | DICTIONARY = 6 |
| const int | STREAM = 7 |
| const int | NULL = 8 |
| const int | INDIRECT = 10 |
| const string | NOTHING = "" |
| const string | TEXT_PDFDOCENCODING = "PDF" |
| const string | TEXT_UNICODE = "UnicodeBig" |
Static Protected Member Functions | |
| static PdfAnnotation | CreateLink (PdfWriter writer, Rectangle rect, PdfName highlight) |
Properties | |
| PdfIndirectReference | IndirectReference [get] |
| PdfContentByte | DefaultAppearanceString [set] |
| int | Flags [set] |
| PdfBorderArray | Border [set] |
| PdfBorderDictionary | BorderStyle [set] |
| string | AppearanceState [set] |
| Color | Color [set] |
| string | Title [set] |
| PdfAnnotation | Popup [set] |
| PdfAction | Action [set] |
| Hashtable | Templates [get] |
| int | Page [set] |
| int | PlaceInPage [get, set] |
| int | Rotate [set] |
| int | MKRotation [set] |
| Color | MKBorderColor [set] |
| Color | MKBackgroundColor [set] |
| string | MKNormalCaption [set] |
| string | MKRolloverCaption [set] |
| string | MKAlternateCaption [set] |
| PdfTemplate | MKNormalIcon [set] |
| PdfTemplate | MKRolloverIcon [set] |
| PdfTemplate | MKAlternateIcon [set] |
| int | MKTextPosition [set] |
| IPdfOCG | Layer [set] |
| String | Name [set] |
Properties inherited from iTextSharp.text.pdf.PdfDictionary | |
| ICollection | Keys [get] |
| int | Size [get] |
Properties inherited from iTextSharp.text.pdf.PdfObject | |
| int | Length [get] |
| string | Content [set] |
| int | Type [get] |
| PRIndirectReference | IndRef [get, set] |
Additional Inherited Members | |
Protected Member Functions inherited from iTextSharp.text.pdf.PdfObject | |
| PdfObject (int type) | |
| PdfObject (int type, string content) | |
| PdfObject (int type, byte[] bytes) | |
Protected Attributes inherited from iTextSharp.text.pdf.PdfObject | |
| byte[] | bytes |
| int | type |
| PRIndirectReference | indRef |
A PdfAnnotation is a note that is associated with a page.
This is a short sample to have an annotation with an appearance.
var document = new Document(newSize); var writer = PdfWriter.GetInstance(document, fs); document.Open(); var annot = new PdfAnnotation( writer, new Rectangle(...) ); annot.Put(PdfName.SUBTYPE, PdfName.FREETEXT); annot.Put(PdfName.F, new PdfNumber(PdfAnnotation.FLAGS_PRINT)); annot.Put(PdfName.CONTENTS, new PdfString("ABC123")); { var N = PdfAppearance.CreateAppearance(writer, 1, 1); { N.SetMatrix(...); N.BoundingBox = new Rectangle(...); N.ShowText("ABC123"); } annot.SetAppearance(PdfName.N, N); } writer.AddAnnotation(annot); document.Close(); writer.Close();
| iTextSharp.text.pdf.PdfAnnotation.PdfAnnotation | ( | PdfWriter | writer, |
| float | llx, | ||
| float | lly, | ||
| float | urx, | ||
| float | ury, | ||
| PdfString | title, | ||
| PdfString | content | ||
| ) |
Constructs a new PdfAnnotation of subtype text.
| iTextSharp.text.pdf.PdfAnnotation.PdfAnnotation | ( | PdfWriter | writer, |
| float | llx, | ||
| float | lly, | ||
| float | urx, | ||
| float | ury, | ||
| PdfAction | action | ||
| ) |
Constructs a new PdfAnnotation of subtype link (Action).
|
static |
Creates a file attachment annotation.
| writer | the PdfWriter |
| rect | the dimensions in the page of the annotation |
| contents | the file description |
| fileStore | an array with the file. If it's null the file will be read from the disk |
| file | the path to the file. It will only be used if fileStore is not null |
| fileDisplay | the actual file name stored in the pdf |
| IOException | on error |
|
static |
Creates a file attachment annotation
| writer | |
| rect | |
| contents | |
| fs |
| IOException |
|
static |
|
static |
|
static |
|
staticprotected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Creates a screen PdfAnnotation
| writer | |
| rect | |
| clipTitle | |
| fs | |
| mimeType | |
| playOnDisplay |
| IOException |
|
static |
|
static |
|
static |
| bool iTextSharp.text.pdf.PdfAnnotation.IsAnnotation | ( | ) |
Getter for property annotation.
| bool iTextSharp.text.pdf.PdfAnnotation.IsForm | ( | ) |
Getter for property form.
| void iTextSharp.text.pdf.PdfAnnotation.SetAppearance | ( | PdfName | ap, |
| PdfTemplate | template | ||
| ) |
| void iTextSharp.text.pdf.PdfAnnotation.SetAppearance | ( | PdfName | ap, |
| string | state, | ||
| PdfTemplate | template | ||
| ) |
| void iTextSharp.text.pdf.PdfAnnotation.SetHighlighting | ( | PdfName | highlight | ) |
Sets the annotation's highlighting mode. The values can be HIGHLIGHT_NONE, HIGHLIGHT_INVERT, HIGHLIGHT_OUTLINE and HIGHLIGHT_PUSH;
| highlight | the annotation's highlighting mode |
| void iTextSharp.text.pdf.PdfAnnotation.SetMKIconFit | ( | PdfName | scale, |
| PdfName | scalingType, | ||
| float | leftoverLeft, | ||
| float | leftoverBottom, | ||
| bool | fitInBounds | ||
| ) |
| void iTextSharp.text.pdf.PdfAnnotation.SetPage | ( | ) |
|
virtual |
Reimplemented in iTextSharp.text.pdf.PdfFormField.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
attributevalue
|
static |
|
static |
|
set |
|
set |
|
set |
|
set |
|
set |
|
set |
|
set |
|
get |
|
set |
Sets the layer this annotation belongs to.
| layer | the layer this annotation belongs to |
|
set |
|
set |
|
set |
|
set |
|
set |
|
set |
|
set |
|
set |
|
set |
|
set |
|
set |
Sets the name of the annotation. With this name the annotation can be identified among all the annotations on a page (it has to be unique).
|
set |
|
getset |
Getter for property placeInPage.
|
set |
|
set |
|
get |
|
set |