Interface IPdfDocument
Assembly: IronPdf.dll
Syntax
public interface IPdfDocument
Properties
Bookmarks
Declaration
PdfBookmarkCollection Bookmarks { get; }
Property Value
PageCount
Declaration
Property Value
Type |
Description |
System.Int32 |
|
PageSizes
Declaration
IList<SizeF> PageSizes { get; }
Property Value
Type |
Description |
System.Collections.Generic.IList<System.Drawing.SizeF> |
|
Methods
CreatePrintDocument()
Declaration
PrintDocument CreatePrintDocument()
Returns
Type |
Description |
System.Drawing.Printing.PrintDocument |
|
CreatePrintDocument(PdfPrintMode)
Declaration
PrintDocument CreatePrintDocument(PdfPrintMode printMode)
Parameters
Returns
Type |
Description |
System.Drawing.Printing.PrintDocument |
|
CreatePrintDocument(PdfPrintSettings)
Declaration
PrintDocument CreatePrintDocument(PdfPrintSettings settings)
Parameters
Returns
Type |
Description |
System.Drawing.Printing.PrintDocument |
|
DeletePage(Int32)
Declaration
void DeletePage(int page)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
Declaration
PdfInformation GetInformation()
Returns
GetPageLinks(Int32, Size)
Declaration
PdfPageLinks GetPageLinks(int page, Size size)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
System.Drawing.Size |
size |
|
Returns
GetPdfText(PdfTextSpan)
Declaration
string GetPdfText(PdfTextSpan textSpan)
Parameters
Returns
Type |
Description |
System.String |
|
GetPdfText(Int32)
Declaration
string GetPdfText(int page)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
Returns
Type |
Description |
System.String |
|
GetTextBounds(PdfTextSpan)
Declaration
IList<PdfRectangle> GetTextBounds(PdfTextSpan textSpan)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IList<PdfRectangle> |
|
PointFromPdf(Int32, PointF)
Declaration
Point PointFromPdf(int page, PointF point)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
System.Drawing.PointF |
point |
|
Returns
Type |
Description |
System.Drawing.Point |
|
PointToPdf(Int32, Point)
Declaration
PointF PointToPdf(int page, Point point)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
System.Drawing.Point |
point |
|
Returns
Type |
Description |
System.Drawing.PointF |
|
RectangleFromPdf(Int32, RectangleF)
Declaration
Rectangle RectangleFromPdf(int page, RectangleF rect)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
System.Drawing.RectangleF |
rect |
|
Returns
Type |
Description |
System.Drawing.Rectangle |
|
RectangleToPdf(Int32, Rectangle)
Declaration
RectangleF RectangleToPdf(int page, Rectangle rect)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
System.Drawing.Rectangle |
rect |
|
Returns
Type |
Description |
System.Drawing.RectangleF |
|
Render(Int32, Int32, Int32, Single, Single, PdfRenderFlags)
Declaration
Image Render(int page, int width, int height, float dpiX, float dpiY, PdfRenderFlags flags)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
System.Single |
dpiX |
|
System.Single |
dpiY |
|
PdfRenderFlags |
flags |
|
Returns
Type |
Description |
System.Drawing.Image |
|
Render(Int32, Int32, Int32, Single, Single, PdfRotation, PdfRenderFlags)
Declaration
Image Render(int page, int width, int height, float dpiX, float dpiY, PdfRotation rotate, PdfRenderFlags flags)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
System.Single |
dpiX |
|
System.Single |
dpiY |
|
PdfRotation |
rotate |
|
PdfRenderFlags |
flags |
|
Returns
Type |
Description |
System.Drawing.Image |
|
Render(Int32, Int32, Int32, Single, Single, Boolean)
Declaration
Image Render(int page, int width, int height, float dpiX, float dpiY, bool forPrinting)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
System.Single |
dpiX |
|
System.Single |
dpiY |
|
System.Boolean |
forPrinting |
|
Returns
Type |
Description |
System.Drawing.Image |
|
Render(Int32, Single, Single, PdfRenderFlags)
Declaration
Image Render(int page, float dpiX, float dpiY, PdfRenderFlags flags)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
System.Single |
dpiX |
|
System.Single |
dpiY |
|
PdfRenderFlags |
flags |
|
Returns
Type |
Description |
System.Drawing.Image |
|
Render(Int32, Single, Single, Boolean)
Declaration
Image Render(int page, float dpiX, float dpiY, bool forPrinting)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
System.Single |
dpiX |
|
System.Single |
dpiY |
|
System.Boolean |
forPrinting |
|
Returns
Type |
Description |
System.Drawing.Image |
|
RotatePage(Int32, PdfRotation)
Declaration
void RotatePage(int page, PdfRotation rotation)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
PdfRotation |
rotation |
|
Save(Stream)
Declaration
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Save(String)
Declaration
Parameters
Type |
Name |
Description |
System.String |
path |
|
Search(String, Boolean, Boolean)
Declaration
PdfMatches Search(string text, bool matchCase, bool wholeWord)
Parameters
Type |
Name |
Description |
System.String |
text |
|
System.Boolean |
matchCase |
|
System.Boolean |
wholeWord |
|
Returns
Search(String, Boolean, Boolean, Int32)
Declaration
PdfMatches Search(string text, bool matchCase, bool wholeWord, int page)
Parameters
Type |
Name |
Description |
System.String |
text |
|
System.Boolean |
matchCase |
|
System.Boolean |
wholeWord |
|
System.Int32 |
page |
|
Returns
Search(String, Boolean, Boolean, Int32, Int32)
Declaration
PdfMatches Search(string text, bool matchCase, bool wholeWord, int startPage, int endPage)
Parameters
Type |
Name |
Description |
System.String |
text |
|
System.Boolean |
matchCase |
|
System.Boolean |
wholeWord |
|
System.Int32 |
startPage |
|
System.Int32 |
endPage |
|
Returns