Skip to main content
Skip table of contents

PdfDocument (1)

PdfDocument Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text.pdf
  iTextSharp.text.pdf.PdfDocument[[PdfDocument]]
  end
  subgraph iTextSharp.text
  iTextSharp.text.Document[[Document]]
  end
iTextSharp.text.Document --> iTextSharp.text.pdf.PdfDocument

Members

Properties

Public properties
Protected internal properties
TypeNameMethods
floatIndentBottomget
floatIndentLeftget
floatIndentRightget
floatIndentTopget
Internal properties

Methods

Public methods
ReturnsName
boolAdd(IElement element)
voidAddWriter(PdfWriter writer)
voidClearTextWrap()
voidClose()
IList<IAccessibleElement>EndPage()
intGetNextMarkPoint(object obj)
intGetStructParentIndex(object obj)
int``[]GetStructParentIndexAndNextMarkPoint(object obj)
floatGetVerticalPosition(bool ensureNewLine)
boolNewPage()
voidOpen()
voidResetPageCount()
boolSetMarginMirroring(bool MarginMirroring)
boolSetMarginMirroringTopBottom(bool MarginMirroringTopBottom)
boolSetMargins(float marginLeft, float marginRight, float marginTop, float marginBottom)
boolSetPageSize(Rectangle pageSize)
Protected methods
ReturnsName
floatCalculateLineHeight()
voidPopLeading()
voidPushLeading()
Protected internal methods
ReturnsName
voidAdd(Image image)
voidAddSpacing(...)
voidCarriageReturn()
voidEnsureNewLine()
floatFlushLines()
voidInitPage()
voidNewLine()
voidSetNewPageSizeAndMargins()
Internal methods
ReturnsName
voidAddAdditionalAction(PdfName actionType, PdfAction action)
voidAddAnnotation(PdfAnnotation annot)
voidAddCalculationOrder(PdfFormField formField)
voidAddDiv(PdfDiv div)
voidAddFileAttachment(string description, PdfFileSpecification fs)
voidAddJavaScript(...)
voidAddOutline(PdfOutline outline, string name)
voidAddPTable(PdfPTable ptable)
voidAddViewerPreference(PdfName key, PdfObject value)
voidCalculateOutlineCount()
boolFitsPage(PdfPTable table, float margin)
voidFlushFloatingElements()
RectangleGetBoxSize(string boxName)
PdfCatalogGetCatalog(PdfIndirectReference pages)
Dictionary<string, PdfObject>GetDocumentFileAttachment()
Dictionary<string, PdfObject>GetDocumentLevelJS()
PdfActionGetLocalGotoAction(string name)
boolLocalDestination(string name, PdfDestination destination)
voidLocalGoto(string name, float llx, float lly, float urx, float ury)
voidOutlineTree(PdfOutline outline)
voidRemoteGoto(...)
voidSetAction(PdfAction action, float llx, float lly, float urx, float ury)
voidSetBoxSize(string boxName, Rectangle size)
voidSetLanguage(string language)
voidSetOpenAction(...)
voidSetPageAction(PdfName actionType, PdfAction action)
voidTraverseOutlineCount(PdfOutline outline)
floatWriteLineToContent(PdfLine line, PdfContentByte text, PdfContentByte graphics, object``[] currentValues, float ratio)
voidWriteOutlines()

Details

Inheritance

Nested types

Classes
  • PdfInfo
  • PdfCatalog
  • Indentation
  • Destination

Constructors

PdfDocument
Source code
public PdfDocument()

Methods

AddWriter
Source code
public virtual void AddWriter(PdfWriter writer)
Arguments
TypeNameDescription
PdfWriterwriter
PushLeading
Source code
protected virtual void PushLeading()
PopLeading
Source code
protected virtual void PopLeading()
Add [1/2]
Source code
public override bool Add(IElement element)
Arguments
TypeNameDescription
IElementelement
Open
Source code
public override void Open()
Close
Source code
public override void Close()
NewPage
Source code
public override bool NewPage()
EndPage
Source code
public IList<IAccessibleElement> EndPage()
SetPageSize
Source code
public override bool SetPageSize(Rectangle pageSize)
Arguments
TypeNameDescription
RectanglepageSize
SetMargins
Source code
public override bool SetMargins(float marginLeft, float marginRight, float marginTop, float marginBottom)
Arguments
TypeNameDescription
floatmarginLeft
floatmarginRight
floatmarginTop
floatmarginBottom
SetMarginMirroring
Source code
public override bool SetMarginMirroring(bool MarginMirroring)
Arguments
TypeNameDescription
boolMarginMirroring
SetMarginMirroringTopBottom
Source code
public override bool SetMarginMirroringTopBottom(bool MarginMirroringTopBottom)
Arguments
TypeNameDescription
boolMarginMirroringTopBottom
ResetPageCount
Source code
public override void ResetPageCount()
InitPage
Source code
protected internal virtual void InitPage()
NewLine
Source code
protected internal virtual void NewLine()
CalculateLineHeight
Source code
protected virtual float CalculateLineHeight()
CarriageReturn
Source code
protected internal virtual void CarriageReturn()
GetVerticalPosition
Source code
public virtual float GetVerticalPosition(bool ensureNewLine)
Arguments
TypeNameDescription
boolensureNewLine
EnsureNewLine
Source code
protected internal virtual void EnsureNewLine()
FlushLines
Source code
protected internal virtual float FlushLines()
WriteLineToContent
Source code
internal float WriteLineToContent(PdfLine line, PdfContentByte text, PdfContentByte graphics, object[] currentValues, float ratio)
Arguments
TypeNameDescription
PdfLineline
PdfContentBytetext
PdfContentBytegraphics
object``[]currentValues
floatratio
AddSpacing [1/2]
Source code
protected internal virtual void AddSpacing(float extraspace, float oldleading, Font f)
Arguments
TypeNameDescription
floatextraspace
floatoldleading
Fontf
AddSpacing [2/2]
Source code
protected internal virtual void AddSpacing(float extraspace, float oldleading, Font f, bool spacingAfter)
Arguments
TypeNameDescription
floatextraspace
floatoldleading
Fontf
boolspacingAfter
GetCatalog
Source code
internal PdfCatalog GetCatalog(PdfIndirectReference pages)
Arguments
TypeNameDescription
PdfIndirectReferencepages
AddOutline
Source code
internal void AddOutline(PdfOutline outline, string name)
Arguments
TypeNameDescription
PdfOutlineoutline
stringname
CalculateOutlineCount
Source code
internal void CalculateOutlineCount()
TraverseOutlineCount
Source code
internal void TraverseOutlineCount(PdfOutline outline)
Arguments
TypeNameDescription
PdfOutlineoutline
WriteOutlines
Source code
internal void WriteOutlines()
OutlineTree
Source code
internal void OutlineTree(PdfOutline outline)
Arguments
TypeNameDescription
PdfOutlineoutline
AddViewerPreference
Source code
internal void AddViewerPreference(PdfName key, PdfObject value)
Arguments
TypeNameDescription
PdfNamekey
PdfObjectvalue
LocalGoto
Source code
internal void LocalGoto(string name, float llx, float lly, float urx, float ury)
Arguments
TypeNameDescription
stringname
floatllx
floatlly
floaturx
floatury
RemoteGoto [1/2]
Source code
internal void RemoteGoto(string filename, string name, float llx, float lly, float urx, float ury)
Arguments
TypeNameDescription
stringfilename
stringname
floatllx
floatlly
floaturx
floatury
RemoteGoto [2/2]
Source code
internal void RemoteGoto(string filename, int page, float llx, float lly, float urx, float ury)
Arguments
TypeNameDescription
stringfilename
intpage
floatllx
floatlly
floaturx
floatury
SetAction
Source code
internal void SetAction(PdfAction action, float llx, float lly, float urx, float ury)
Arguments
TypeNameDescription
PdfActionaction
floatllx
floatlly
floaturx
floatury
GetLocalGotoAction
Source code
internal PdfAction GetLocalGotoAction(string name)
Arguments
TypeNameDescription
stringname
LocalDestination
Source code
internal bool LocalDestination(string name, PdfDestination destination)
Arguments
TypeNameDescription
stringname
PdfDestinationdestination
AddJavaScript [1/2]
Source code
internal void AddJavaScript(PdfAction js)
Arguments
TypeNameDescription
PdfActionjs
AddJavaScript [2/2]
Source code
internal void AddJavaScript(string name, PdfAction js)
Arguments
TypeNameDescription
stringname
PdfActionjs
GetDocumentLevelJS
Source code
internal Dictionary<string, PdfObject> GetDocumentLevelJS()
AddFileAttachment
Source code
internal void AddFileAttachment(string description, PdfFileSpecification fs)
Arguments
TypeNameDescription
stringdescription
PdfFileSpecificationfs
GetDocumentFileAttachment
Source code
internal Dictionary<string, PdfObject> GetDocumentFileAttachment()
SetOpenAction [1/2]
Source code
internal void SetOpenAction(string name)
Arguments
TypeNameDescription
stringname
SetOpenAction [2/2]
Source code
internal void SetOpenAction(PdfAction action)
Arguments
TypeNameDescription
PdfActionaction
AddAdditionalAction
Source code
internal void AddAdditionalAction(PdfName actionType, PdfAction action)
Arguments
TypeNameDescription
PdfNameactionType
PdfActionaction
AddCalculationOrder
Source code
internal void AddCalculationOrder(PdfFormField formField)
Arguments
TypeNameDescription
PdfFormFieldformField
AddAnnotation
Source code
internal void AddAnnotation(PdfAnnotation annot)
Arguments
TypeNameDescription
PdfAnnotationannot
SetLanguage
Source code
internal void SetLanguage(string language)
Arguments
TypeNameDescription
stringlanguage
SetBoxSize
Source code
internal void SetBoxSize(string boxName, Rectangle size)
Arguments
TypeNameDescription
stringboxName
Rectanglesize
SetNewPageSizeAndMargins
Source code
protected internal virtual void SetNewPageSizeAndMargins()
GetBoxSize
Source code
internal Rectangle GetBoxSize(string boxName)
Arguments
TypeNameDescription
stringboxName
SetPageAction
Source code
internal void SetPageAction(PdfName actionType, PdfAction action)
Arguments
TypeNameDescription
PdfNameactionType
PdfActionaction
ClearTextWrap
Source code
public virtual void ClearTextWrap()
GetStructParentIndex
Source code
public virtual int GetStructParentIndex(object obj)
Arguments
TypeNameDescription
objectobj
GetNextMarkPoint
Source code
public virtual int GetNextMarkPoint(object obj)
Arguments
TypeNameDescription
objectobj
GetStructParentIndexAndNextMarkPoint
Source code
public virtual int GetStructParentIndexAndNextMarkPoint(object obj)
Arguments
TypeNameDescription
objectobj
Add [2/2]
Source code
protected internal virtual void Add(Image image)
Arguments
TypeNameDescription
Imageimage
AddPTable
Source code
internal void AddPTable(PdfPTable ptable)
Arguments
TypeNameDescription
PdfPTableptable
AddDiv
Source code
internal void AddDiv(PdfDiv div)
Arguments
TypeNameDescription
PdfDivdiv
FlushFloatingElements
Source code
internal void FlushFloatingElements()
FitsPage
Source code
internal bool FitsPage(PdfPTable table, float margin)
Arguments
TypeNameDescription
PdfPTabletable
floatmargin

Properties

Leading
public virtual float Leading { get; set; }
TabSettings
public virtual TabSettings TabSettings { get; set; }
XmpMetadata
public virtual byte XmpMetadata { set; }
PageCount
public override int PageCount { set; }
IndentLeft
protected internal virtual float IndentLeft { get; }
IndentRight
protected internal virtual float IndentRight { get; }
IndentTop
protected internal virtual float IndentTop { get; }
IndentBottom
protected internal virtual float IndentBottom { get; }
Info
internal PdfInfo Info { get; }
RootOutline
public virtual PdfOutline RootOutline { get; }
ViewerPreferences
internal int ViewerPreferences { set; }
PageLabels
public virtual PdfPageLabels PageLabels { get; internal set; }
Collection
public virtual PdfCollection Collection { set; }
AcroForm
public virtual PdfAcroForm AcroForm { get; }
SigFlags
internal int SigFlags { set; }
CropBoxSize
internal Rectangle CropBoxSize { set; }
PageEmpty
internal bool PageEmpty { get; set; }
Duration
internal int Duration { set; }
Transition
internal PdfTransition Transition { set; }
Thumbnail
internal Image Thumbnail { set; }
PageResources
internal PageResources PageResources { get; }
StrictImageSequence
internal bool StrictImageSequence { get; set; }

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.