Class PdfStamperImp
- Namespace
- iTextSharp.text.pdf
- Assembly
- iTextSharp.LGPLv2.Core.dll
public class PdfStamperImp : PdfWriter, IDocListener, IElementListener, IDisposable, IPdfViewerPreferences, IPdfEncryptionSettings, IPdfVersion, IPdfDocumentActions, IPdfPageActions, IPdfXConformance, IPdfRunDirection, IPdfAnnotations
- Inheritance
-
PdfStamperImp
- Implements
- Inherited Members
Fields
Append
protected bool Append
Field Value
FieldTemplates
protected INullValueDictionary<PdfTemplate, object> FieldTemplates
Field Value
FieldsAdded
protected bool FieldsAdded
Field Value
Flat
protected bool Flat
Field Value
FlatFreeText
protected bool FlatFreeText
Field Value
InitialXrefSize
protected int InitialXrefSize
Field Value
Marked
protected NullValueDictionary<int, int> Marked
Field Value
NamePtr
protected int[] NamePtr
Field Value
- int[]
OpenAction
protected PdfAction OpenAction
Field Value
PartialFlattening
protected INullValueDictionary<string, object> PartialFlattening
Field Value
UseVp
protected bool UseVp
Field Value
acroFields
protected AcroFields acroFields
Field Value
sigFlags
protected int sigFlags
Field Value
viewerPreferences
protected PdfViewerPreferencesImp viewerPreferences
Field Value
Properties
DirectContent
public override PdfContentByte DirectContent { get; }
Property Value
DirectContentUnder
public override PdfContentByte DirectContentUnder { get; }
Property Value
Duration
Always throws an UnsupportedOperationException .
public override int Duration { set; }
Property Value
SigFlags
Set the signature flags.
public override int SigFlags { set; }
Property Value
Thumbnail
@see com.lowagie.text.pdf.PdfWriter#setThumbnail(com.lowagie.text.Image)
public override Image Thumbnail { set; }
Property Value
Transition
Always throws an UnsupportedOperationException .
public override PdfTransition Transition { set; }
Property Value
ViewerPreferences
Sets the viewer preferences. @see PdfWriter#setViewerPreferences(int)
public override int ViewerPreferences { set; }
Property Value
Methods
AddAnnotation(PdfAnnotation)
@see com.lowagie.text.pdf.PdfWriter#addAnnotation(com.lowagie.text.pdf.PdfAnnotation)
public override void AddAnnotation(PdfAnnotation annot)
Parameters
annot
PdfAnnotation
AddComments(FdfReader)
@throws IOException
public void AddComments(FdfReader fdf)
Parameters
fdf
FdfReader
AddViewerPreference(PdfName, PdfObject)
Adds a viewer preference @see PdfViewerPreferences#addViewerPreference
public override void AddViewerPreference(PdfName key, PdfObject value)
Parameters
GetNewObjectNumber(PdfReader, int, int)
protected override int GetNewObjectNumber(PdfReader reader, int number, int generation)
Parameters
Returns
GetPageReference(int)
@see com.lowagie.text.pdf.PdfWriter#getPageReference(int)
public override PdfIndirectReference GetPageReference(int page)
Parameters
page
int
Returns
GetPdfLayers()
Gets the PdfLayer objects in an existing document as a Map with the names/titles of the layers as keys. @since 2.1.2
public INullValueDictionary<string, PdfLayer> GetPdfLayers()
Returns
- INullValueDictionary<string, PdfLayer>
a Map with all the PdfLayers in the document (and the name/title of the layer as key)
MarkUsed(int)
protected void MarkUsed(int num)
Parameters
num
int
MarkUsed(PdfObject)
protected void MarkUsed(PdfObject obj)
Parameters
obj
PdfObject
ReadOcProperties()
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. @since 2.1.2
protected void ReadOcProperties()
RegisterReader(PdfReader, bool)
@throws IOException
public void RegisterReader(PdfReader reader, bool openFile)
Parameters
SetAdditionalAction(PdfName, PdfAction)
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 . @throws PdfException on invalid action type
public override void SetAdditionalAction(PdfName actionType, PdfAction action)
Parameters
actionType
PdfNamethe action type
action
PdfActionthe action to execute in response to the trigger
SetOpenAction(string)
@see com.lowagie.text.pdf.PdfWriter#setOpenAction(java.lang.String)
public override void SetOpenAction(string name)
Parameters
name
string
SetOpenAction(PdfAction)
@see com.lowagie.text.pdf.PdfWriter#setOpenAction(com.lowagie.text.pdf.PdfAction)
public override void SetOpenAction(PdfAction action)
Parameters
action
PdfAction
SetPageAction(PdfName, PdfAction)
Always throws an UnsupportedOperationException . @throws PdfException ignore @see PdfStamper#setPageAction(PdfName, PdfAction, int)
public override void SetPageAction(PdfName actionType, PdfAction action)
Parameters
UnRegisterReader(PdfReader)
public void UnRegisterReader(PdfReader reader)
Parameters
reader
PdfReader