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
|
Type |
Name |
Methods |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Protected internal properties
|
Type |
Name |
Methods |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Internal properties
|
Type |
Name |
Methods |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Methods
Public methods
|
Returns |
Name |
|---|---|
|
|
(
element) |
|
|
(
writer) |
|
|
() |
|
|
() |
|
> |
() |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
|
|
() |
|
|
() |
|
|
() |
|
|
( |
|
|
( |
|
|
( |
|
|
(
pageSize) |
Protected methods
|
Returns |
Name |
|---|---|
|
|
() |
|
|
() |
|
|
() |
Protected internal methods
|
Returns |
Name |
|---|---|
|
|
(
image) |
|
|
( |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
Internal methods
|
Returns |
Name |
|---|---|
|
|
(
actionType,
action) |
|
|
(
annot) |
|
|
(
formField) |
|
|
(
div) |
|
|
(
fs) |
|
|
( |
|
|
(
outline, |
|
|
(
ptable) |
|
|
(
key,
value) |
|
|
() |
|
|
(
table, |
|
|
() |
|
|
( |
|
|
(
pages) |
|
> |
() |
|
> |
() |
|
|
( |
|
|
(
destination) |
|
|
( |
|
|
(
outline) |
|
|
( |
|
|
(
action, |
|
|
(
size) |
|
|
( |
|
|
( |
|
|
(
actionType,
action) |
|
|
(
outline) |
|
|
(
line,
text,
graphics, |
|
|
() |
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
|
Type |
Name |
Description |
|---|---|---|
|
|
writer |
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
|
Type |
Name |
Description |
|---|---|---|
|
|
element |
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
|
Type |
Name |
Description |
|---|---|---|
|
|
pageSize |
SetMargins
Source code
public override bool SetMargins(float marginLeft, float marginRight, float marginTop, float marginBottom)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
marginLeft |
|
|
|
marginRight |
|
|
|
marginTop |
|
|
|
marginBottom |
SetMarginMirroring
Source code
public override bool SetMarginMirroring(bool MarginMirroring)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
MarginMirroring |
SetMarginMirroringTopBottom
Source code
public override bool SetMarginMirroringTopBottom(bool MarginMirroringTopBottom)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
MarginMirroringTopBottom |
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
|
Type |
Name |
Description |
|---|---|---|
|
|
ensureNewLine |
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
|
Type |
Name |
Description |
|---|---|---|
|
|
line |
|
|
|
text |
|
|
|
graphics |
|
|
|
currentValues |
|
|
|
ratio |
AddSpacing [1/2]
Source code
protected internal virtual void AddSpacing(float extraspace, float oldleading, Font f)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
extraspace |
|
|
|
oldleading |
|
|
|
f |
AddSpacing [2/2]
Source code
protected internal virtual void AddSpacing(float extraspace, float oldleading, Font f, bool spacingAfter)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
extraspace |
|
|
|
oldleading |
|
|
|
f |
|
|
|
spacingAfter |
GetCatalog
Source code
internal PdfCatalog GetCatalog(PdfIndirectReference pages)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
pages |
AddOutline
Source code
internal void AddOutline(PdfOutline outline, string name)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
outline |
|
|
|
name |
CalculateOutlineCount
Source code
internal void CalculateOutlineCount()
TraverseOutlineCount
Source code
internal void TraverseOutlineCount(PdfOutline outline)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
outline |
WriteOutlines
Source code
internal void WriteOutlines()
OutlineTree
Source code
internal void OutlineTree(PdfOutline outline)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
outline |
AddViewerPreference
Source code
internal void AddViewerPreference(PdfName key, PdfObject value)
Arguments
LocalGoto
Source code
internal void LocalGoto(string name, float llx, float lly, float urx, float ury)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
|
|
|
llx |
|
|
|
lly |
|
|
|
urx |
|
|
|
ury |
RemoteGoto [1/2]
Source code
internal void RemoteGoto(string filename, string name, float llx, float lly, float urx, float ury)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
filename |
|
|
|
name |
|
|
|
llx |
|
|
|
lly |
|
|
|
urx |
|
|
|
ury |
RemoteGoto [2/2]
Source code
internal void RemoteGoto(string filename, int page, float llx, float lly, float urx, float ury)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
filename |
|
|
|
page |
|
|
|
llx |
|
|
|
lly |
|
|
|
urx |
|
|
|
ury |
SetAction
Source code
internal void SetAction(PdfAction action, float llx, float lly, float urx, float ury)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
action |
|
|
|
llx |
|
|
|
lly |
|
|
|
urx |
|
|
|
ury |
GetLocalGotoAction
Source code
internal PdfAction GetLocalGotoAction(string name)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
LocalDestination
Source code
internal bool LocalDestination(string name, PdfDestination destination)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
|
|
|
destination |
AddJavaScript [1/2]
Source code
internal void AddJavaScript(PdfAction js)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
js |
AddJavaScript [2/2]
Source code
internal void AddJavaScript(string name, PdfAction js)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
|
|
|
js |
GetDocumentLevelJS
Source code
internal Dictionary<string, PdfObject> GetDocumentLevelJS()
AddFileAttachment
Source code
internal void AddFileAttachment(string description, PdfFileSpecification fs)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
description |
|
|
|
fs |
GetDocumentFileAttachment
Source code
internal Dictionary<string, PdfObject> GetDocumentFileAttachment()
SetOpenAction [1/2]
Source code
internal void SetOpenAction(string name)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
SetOpenAction [2/2]
Source code
internal void SetOpenAction(PdfAction action)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
action |
AddAdditionalAction
Source code
internal void AddAdditionalAction(PdfName actionType, PdfAction action)
Arguments
AddCalculationOrder
Source code
internal void AddCalculationOrder(PdfFormField formField)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
formField |
AddAnnotation
Source code
internal void AddAnnotation(PdfAnnotation annot)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
annot |
SetLanguage
Source code
internal void SetLanguage(string language)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
language |
SetBoxSize
Source code
internal void SetBoxSize(string boxName, Rectangle size)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
boxName |
|
|
|
size |
SetNewPageSizeAndMargins
Source code
protected internal virtual void SetNewPageSizeAndMargins()
GetBoxSize
Source code
internal Rectangle GetBoxSize(string boxName)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
boxName |
SetPageAction
Source code
internal void SetPageAction(PdfName actionType, PdfAction action)
Arguments
ClearTextWrap
Source code
public virtual void ClearTextWrap()
GetStructParentIndex
Source code
public virtual int GetStructParentIndex(object obj)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
obj |
GetNextMarkPoint
Source code
public virtual int GetNextMarkPoint(object obj)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
obj |
GetStructParentIndexAndNextMarkPoint
Source code
public virtual int GetStructParentIndexAndNextMarkPoint(object obj)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
obj |
Add [2/2]
Source code
protected internal virtual void Add(Image image)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
image |
AddPTable
Source code
internal void AddPTable(PdfPTable ptable)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
ptable |
AddDiv
Source code
internal void AddDiv(PdfDiv div)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
div |
FlushFloatingElements
Source code
internal void FlushFloatingElements()
FitsPage
Source code
internal bool FitsPage(PdfPTable table, float margin)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
table |
|
|
|
margin |
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