HiraokaHyperTools.iTextSharp-LGPL
0.2.5
|
Classes | |
class | PageStamp |
Public Member Functions | |
void | RegisterReader (PdfReader reader, bool openFile) |
void | UnRegisterReader (PdfReader reader) |
void | AddComments (FdfReader fdf) |
override PdfIndirectReference | GetPageReference (int page) |
override void | AddAnnotation (PdfAnnotation annot) |
override void | AddViewerPreference (PdfName key, PdfObject value) |
override void | SetPageAction (PdfName actionType, PdfAction action) |
override void | SetAdditionalAction (PdfName actionType, PdfAction action) |
override void | SetOpenAction (PdfAction action) |
override void | SetOpenAction (String name) |
Hashtable | GetPdfLayers () |
![]() | |
float | GetVerticalPosition (bool ensureNewLine) |
PdfIndirectObject | AddToBody (PdfObject objecta) |
PdfIndirectObject | AddToBody (PdfObject objecta, bool inObjStm) |
PdfIndirectObject | AddToBody (PdfObject objecta, PdfIndirectReference refa) |
PdfIndirectObject | AddToBody (PdfObject objecta, PdfIndirectReference refa, bool inObjStm) |
PdfIndirectObject | AddToBody (PdfObject objecta, int refNumber) |
PdfIndirectObject | AddToBody (PdfObject objecta, int refNumber, bool inObjStm) |
void | SetLinearPageMode () |
int | ReorderPages (int[] order) |
override void | Open () |
override void | Close () |
void | SetAtLeastPdfVersion (char version) |
void | SetPdfVersion (PdfName version) |
void | AddDeveloperExtension (PdfDeveloperExtension de) |
virtual void | AddJavaScript (PdfAction js) |
virtual void | AddJavaScript (String code, bool unicode) |
virtual void | AddJavaScript (String code) |
void | AddJavaScript (String name, PdfAction js) |
void | AddJavaScript (String name, String code, bool unicode) |
void | AddJavaScript (String name, String code) |
virtual void | AddFileAttachment (String description, byte[] fileStore, String file, String fileDisplay) |
virtual void | AddFileAttachment (String description, PdfFileSpecification fs) |
void | AddFileAttachment (PdfFileSpecification fs) |
virtual void | AddCalculationOrder (PdfFormField annot) |
void | CreateXmpMetadata () |
bool | IsPdfX () |
void | SetOutputIntents (String outputConditionIdentifier, String outputCondition, String registryName, String info, ICC_Profile colorProfile) |
void | SetOutputIntents (String outputConditionIdentifier, String outputCondition, String registryName, String info, byte[] destOutputProfile) |
bool | SetOutputIntents (PdfReader reader, bool checkExistence) |
void | SetEncryption (byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) |
void | SetEncryption (X509Certificate[] certs, int[] permissions, int encryptionType) |
void | SetEncryption (byte[] userPassword, byte[] ownerPassword, int permissions, bool strength128Bits) |
void | SetEncryption (bool strength, String userPassword, String ownerPassword, int permissions) |
void | SetEncryption (int encryptionType, String userPassword, String ownerPassword, int permissions) |
void | SetFullCompression () |
void | ReleaseTemplate (PdfTemplate tp) |
virtual PdfImportedPage | GetImportedPage (PdfReader reader, int pageNumber) |
virtual void | FreeReader (PdfReader reader) |
void | SetTagged () |
bool | IsTagged () |
void | AddOCGRadioGroup (ArrayList group) |
void | LockLayer (PdfLayer layer) |
void | SetBoxSize (String boxName, Rectangle size) |
Rectangle | GetBoxSize (String boxName) |
void | SetDefaultColorspace (PdfName key, PdfObject cs) |
void | ClearTextWrap () |
PdfName | AddDirectImageSimple (Image image) |
PdfName | AddDirectImageSimple (Image image, PdfIndirectReference fixedRef) |
bool | FitsPage (Table table, float margin) |
bool | FitsPage (Table table) |
virtual void | ResetPageDictEntries () |
virtual void | AddPageDictEntry (PdfName key, PdfObject obj) |
virtual PdfAnnotation | CreateAnnotation (Rectangle rect, PdfName subtype) |
![]() | |
virtual bool | Add (IElement element) |
Signals that an Element was added to the Document. More... | |
virtual bool | SetPageSize (Rectangle pageSize) |
Sets the pagesize. More... | |
virtual bool | SetMargins (float marginLeft, float marginRight, float marginTop, float marginBottom) |
Sets the margins. More... | |
virtual bool | NewPage () |
Signals that an new page has to be started. More... | |
virtual void | ResetHeader () |
Resets the header of this document. More... | |
virtual void | ResetFooter () |
Resets the footer of this document. More... | |
virtual void | ResetPageCount () |
Sets the page number to 0. More... | |
virtual void | Pause () |
Let the writer know that all writing has to be paused. More... | |
bool | IsPaused () |
virtual void | Resume () |
Let the writer know that writing may be resumed. More... | |
virtual void | Flush () |
Flushes the Stream. More... | |
virtual bool | SetMarginMirroring (bool marginMirroring) |
virtual bool | SetMarginMirroringTopBottom (bool MarginMirroring) |
Protected Member Functions | |
void | ReadOCProperties () |
![]() | |
PdfWriter () | |
PdfWriter (PdfDocument document, Stream os) | |
virtual PdfDictionary | GetCatalog (PdfIndirectReference rootObj) |
void | AddSharedObjectsToBody () |
void | FillOCProperties (bool erase) |
virtual PdfIndirectReference | Add (PdfICCBased icc) |
![]() | |
DocWriter () | |
DocWriter (Document document, Stream os) | |
Constructs a DocWriter. More... | |
void | Write (string str) |
Writes a string to the stream. More... | |
void | AddTabs (int indent) |
Writes a number of tabs. More... | |
void | Write (string key, string value) |
Writes a key-value pair to the stream. More... | |
void | WriteStart (string tag) |
Writes a starttag to the stream. More... | |
void | WriteEnd (string tag) |
Writes an endtag to the stream. More... | |
void | WriteEnd () |
Writes an endtag to the stream. More... | |
bool | WriteMarkupAttributes (Properties markup) |
Writes the markup attributes of the specified MarkupAttributes object to the stream. More... | |
Additional Inherited Members | |
![]() | |
static PdfWriter | GetInstance (Document document, Stream os) |
static PdfWriter | GetInstance (Document document, Stream os, IDocListener listener) |
![]() | |
static byte[] | GetISOBytes (string text) |
Converts a string into a Byte array according to the ISO-8859-1 codepage. More... | |
![]() | |
const int | GENERATION_MAX = 65535 |
const char | VERSION_1_2 = '2' |
const char | VERSION_1_3 = '3' |
const char | VERSION_1_4 = '4' |
const char | VERSION_1_5 = '5' |
const char | VERSION_1_6 = '6' |
const char | VERSION_1_7 = '7' |
static readonly PdfName | PDF_VERSION_1_2 = new PdfName("1.2") |
static readonly PdfName | PDF_VERSION_1_3 = new PdfName("1.3") |
static readonly PdfName | PDF_VERSION_1_4 = new PdfName("1.4") |
static readonly PdfName | PDF_VERSION_1_5 = new PdfName("1.5") |
static readonly PdfName | PDF_VERSION_1_6 = new PdfName("1.6") |
static readonly PdfName | PDF_VERSION_1_7 = new PdfName("1.7") |
const int | PageLayoutSinglePage = 1 |
const int | PageLayoutOneColumn = 2 |
const int | PageLayoutTwoColumnLeft = 4 |
const int | PageLayoutTwoColumnRight = 8 |
const int | PageLayoutTwoPageLeft = 16 |
const int | PageLayoutTwoPageRight = 32 |
const int | PageModeUseNone = 64 |
const int | PageModeUseOutlines = 128 |
const int | PageModeUseThumbs = 256 |
const int | PageModeFullScreen = 512 |
const int | PageModeUseOC = 1024 |
const int | PageModeUseAttachments = 2048 |
const int | HideToolbar = 1 << 12 |
const int | HideMenubar = 1 << 13 |
const int | HideWindowUI = 1 << 14 |
const int | FitWindow = 1 << 15 |
const int | CenterWindow = 1 << 16 |
const int | DisplayDocTitle = 1 << 17 |
const int | NonFullScreenPageModeUseNone = 1 << 18 |
const int | NonFullScreenPageModeUseOutlines = 1 << 19 |
const int | NonFullScreenPageModeUseThumbs = 1 << 20 |
const int | NonFullScreenPageModeUseOC = 1 << 21 |
const int | DirectionL2R = 1 << 22 |
const int | DirectionR2L = 1 << 23 |
const int | PrintScalingNone = 1 << 24 |
static PdfName | DOCUMENT_CLOSE = PdfName.WC |
static PdfName | WILL_SAVE = PdfName.WS |
static PdfName | DID_SAVE = PdfName.DS |
static PdfName | WILL_PRINT = PdfName.WP |
static PdfName | DID_PRINT = PdfName.DP |
const int | SIGNATURE_EXISTS = 1 |
const int | SIGNATURE_APPEND_ONLY = 2 |
const int | PDFXNONE = 0 |
const int | PDFX1A2001 = 1 |
const int | PDFX32002 = 2 |
const int | PDFA1A = 3 |
const int | PDFA1B = 4 |
const int | STANDARD_ENCRYPTION_40 = 0 |
const int | STANDARD_ENCRYPTION_128 = 1 |
const int | ENCRYPTION_AES_128 = 2 |
const int | DO_NOT_ENCRYPT_METADATA = 8 |
const int | EMBEDDED_FILES_ONLY = 24 |
const int | ALLOW_PRINTING = 4 + 2048 |
const int | ALLOW_MODIFY_CONTENTS = 8 |
const int | ALLOW_COPY = 16 |
const int | ALLOW_MODIFY_ANNOTATIONS = 32 |
const int | ALLOW_FILL_IN = 256 |
const int | ALLOW_SCREENREADERS = 512 |
const int | ALLOW_ASSEMBLY = 1024 |
const int | ALLOW_DEGRADED_PRINTING = 4 |
const int | AllowPrinting = ALLOW_PRINTING |
const int | AllowModifyContents = ALLOW_MODIFY_CONTENTS |
const int | AllowCopy = ALLOW_COPY |
const int | AllowModifyAnnotations = ALLOW_MODIFY_ANNOTATIONS |
const int | AllowFillIn = ALLOW_FILL_IN |
const int | AllowScreenReaders = ALLOW_SCREENREADERS |
const int | AllowAssembly = ALLOW_ASSEMBLY |
const int | AllowDegradedPrinting = ALLOW_DEGRADED_PRINTING |
const bool | STRENGTH40BITS = false |
const bool | STRENGTH128BITS = true |
static readonly PdfName | PAGE_OPEN = PdfName.O |
static readonly PdfName | PAGE_CLOSE = PdfName.C |
const float | SPACE_CHAR_RATIO_DEFAULT = 2.5f |
const float | NO_SPACE_CHAR_RATIO = 10000000f |
const int | RUN_DIRECTION_DEFAULT = 0 |
const int | RUN_DIRECTION_NO_BIDI = 1 |
const int | RUN_DIRECTION_LTR = 2 |
const int | RUN_DIRECTION_RTL = 3 |
![]() | |
const byte | NEWLINE = (byte)'\n' |
This is some byte that is often used. More... | |
const byte | TAB = (byte)'\t' |
This is some byte that is often used. More... | |
const byte | LT = (byte)'<' |
This is some byte that is often used. More... | |
const byte | SPACE = (byte)' ' |
This is some byte that is often used. More... | |
const byte | EQUALS = (byte)'=' |
This is some byte that is often used. More... | |
const byte | QUOTE = (byte)'\"' |
This is some byte that is often used. More... | |
const byte | GT = (byte)'>' |
This is some byte that is often used. More... | |
const byte | FORWARD = (byte)'/' |
This is some byte that is often used. More... | |
|
virtual |
Reimplemented from iTextSharp.text.pdf.PdfWriter.
void iTextSharp.text.pdf.PdfStamperImp.AddComments | ( | FdfReader | fdf | ) |
fdf |
IOException |
|
virtual |
Adds a viewer preference
preferences | the viewer preferences |
Reimplemented from iTextSharp.text.pdf.PdfWriter.
|
virtual |
Reimplemented from iTextSharp.text.pdf.PdfWriter.
Hashtable iTextSharp.text.pdf.PdfStamperImp.GetPdfLayers | ( | ) |
Gets the PdfLayer objects in an existing document as a Map with the names/titles of the layers as keys.
|
protected |
Reads the OCProperties dictionary from the catalog of the existing document and fills the documentOCG, documentOCGorder and OCGRadioGroup variables in PdfWriter. Note that the original OCProperties of the existing document can contain more information.
void iTextSharp.text.pdf.PdfStamperImp.RegisterReader | ( | PdfReader | reader, |
bool | openFile | ||
) |
reader | |
openFile |
IOException |
|
virtual |
Additional-actions defining the actions to be taken in response to various trigger events affecting the document as a whole. The actions types allowed are: DOCUMENT_CLOSE
, WILL_SAVE
, DID_SAVE
, WILL_PRINT
and DID_PRINT
.
actionType | the action type |
action | the action to execute in response to the trigger |
PdfException | on invalid action type |
Reimplemented from iTextSharp.text.pdf.PdfWriter.
|
virtual |
Reimplemented from iTextSharp.text.pdf.PdfWriter.
|
virtual |
Reimplemented from iTextSharp.text.pdf.PdfWriter.
|
virtual |
Always throws an UnsupportedOperationException
.
actionType | ignore |
action | ignore |
PdfException | ignore |
Reimplemented from iTextSharp.text.pdf.PdfWriter.
void iTextSharp.text.pdf.PdfStamperImp.UnRegisterReader | ( | PdfReader | reader | ) |
reader |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
get |
|
get |
|
set |
Always throws an UnsupportedOperationException
.
seconds | ignore |
|
set |
Set the signature flags.
f | the flags. This flags are ORed with current ones |
|
set |
|
set |
Always throws an UnsupportedOperationException
.
transition | ignore |
|
set |
Sets the viewer preferences.
preferences | the viewer preferences |