PdfiumViewer
|
Represents a PDF document. More...
Public Member Functions | |
void | Render (int page, Graphics graphics, float dpiX, float dpiY, Rectangle bounds, bool forPrinting) |
Renders a page of the PDF document to the provided graphics instance. More... | |
void | Render (int page, Graphics graphics, float dpiX, float dpiY, Rectangle bounds, PdfRenderFlags flags) |
Renders a page of the PDF document to the provided graphics instance. More... | |
Image | Render (int page, float dpiX, float dpiY, bool forPrinting) |
Renders a page of the PDF document to an image. More... | |
Image | Render (int page, float dpiX, float dpiY, PdfRenderFlags flags) |
Renders a page of the PDF document to an image. More... | |
Image | Render (int page, int width, int height, float dpiX, float dpiY, bool forPrinting) |
Renders a page of the PDF document to an image. More... | |
Image | Render (int page, int width, int height, float dpiX, float dpiY, PdfRenderFlags flags) |
Renders a page of the PDF document to an image. More... | |
Image | Render (int page, int width, int height, float dpiX, float dpiY, PdfRotation rotate, PdfRenderFlags flags) |
Renders a page of the PDF document to an image. More... | |
void | Save (string path) |
Save the PDF document to the specified location. More... | |
void | Save (Stream stream) |
Save the PDF document to the specified location. More... | |
PdfMatches | Search (string text, bool matchCase, bool wholeWord) |
Finds all occurences of text. More... | |
PdfMatches | Search (string text, bool matchCase, bool wholeWord, int page) |
Finds all occurences of text. More... | |
PdfMatches | Search (string text, bool matchCase, bool wholeWord, int startPage, int endPage) |
Finds all occurences of text. More... | |
PrintDocument | CreatePrintDocument () |
Creates a PrintDocument for the PDF document. More... | |
PrintDocument | CreatePrintDocument (PdfPrintMode printMode) |
Creates a PrintDocument for the PDF document. More... | |
PrintDocument | CreatePrintDocument (PdfPrintSettings settings) |
Creates a PrintDocument for the PDF document. More... | |
PdfPageLinks | GetPageLinks (int page, Size size) |
Returns all links on the PDF page. More... | |
void | DeletePage (int page) |
Delete the page from the PDF document. More... | |
void | RotatePage (int page, PdfRotation rotation) |
Rotate the page. More... | |
PdfInformation | GetInformation () |
Get metadata information from the PDF document. More... | |
string | GetPdfText (int page) |
Get all text on the page. More... | |
string | GetPdfText (PdfTextSpan textSpan) |
Get all text matching the text span. More... | |
IList< PdfRectangle > | GetTextBounds (PdfTextSpan textSpan) |
Get all bounding rectangles for the text span. More... | |
PointF | PointToPdf (int page, Point point) |
Convert a point from device coordinates to page coordinates. More... | |
Point | PointFromPdf (int page, PointF point) |
Convert a point from page coordinates to device coordinates. More... | |
RectangleF | RectangleToPdf (int page, Rectangle rect) |
Convert a rectangle from device coordinates to page coordinates. More... | |
Rectangle | RectangleFromPdf (int page, RectangleF rect) |
Convert a rectangle from page coordinates to device coordinates. More... | |
Properties | |
int | PageCount [get] |
Number of pages in the PDF document. More... | |
PdfBookmarkCollection | Bookmarks [get] |
Bookmarks stored in this PdfFile More... | |
IList< SizeF > | PageSizes [get] |
Size of each page in the PDF document. More... | |
Represents a PDF document.
PrintDocument PdfiumViewer.IPdfDocument.CreatePrintDocument | ( | ) |
PrintDocument PdfiumViewer.IPdfDocument.CreatePrintDocument | ( | PdfPrintMode | printMode | ) |
Creates a PrintDocument for the PDF document.
printMode | Specifies the mode for printing. The default value for this parameter is CutMargin. |
Implemented in PdfiumViewer.PdfDocument.
PrintDocument PdfiumViewer.IPdfDocument.CreatePrintDocument | ( | PdfPrintSettings | settings | ) |
Creates a PrintDocument for the PDF document.
settings | The settings used to configure the print document. |
Implemented in PdfiumViewer.PdfDocument.
void PdfiumViewer.IPdfDocument.DeletePage | ( | int | page | ) |
Delete the page from the PDF document.
page | The page to delete. |
Implemented in PdfiumViewer.PdfDocument.
PdfInformation PdfiumViewer.IPdfDocument.GetInformation | ( | ) |
Get metadata information from the PDF document.
Implemented in PdfiumViewer.PdfDocument.
PdfPageLinks PdfiumViewer.IPdfDocument.GetPageLinks | ( | int | page, |
Size | size | ||
) |
Returns all links on the PDF page.
page | The page to get the links for. |
size | The size of the page. |
Implemented in PdfiumViewer.PdfDocument.
string PdfiumViewer.IPdfDocument.GetPdfText | ( | int | page | ) |
Get all text on the page.
page | The page to get the text for. |
Implemented in PdfiumViewer.PdfDocument.
string PdfiumViewer.IPdfDocument.GetPdfText | ( | PdfTextSpan | textSpan | ) |
Get all text matching the text span.
textSpan | The span to get the text for. |
Implemented in PdfiumViewer.PdfDocument.
IList<PdfRectangle> PdfiumViewer.IPdfDocument.GetTextBounds | ( | PdfTextSpan | textSpan | ) |
Get all bounding rectangles for the text span.
The algorithm used to get the bounding rectangles tries to join adjacent character bounds into larger rectangles.
textSpan | The span to get the bounding rectangles for. |
Implemented in PdfiumViewer.PdfDocument.
Point PdfiumViewer.IPdfDocument.PointFromPdf | ( | int | page, |
PointF | point | ||
) |
Convert a point from page coordinates to device coordinates.
page | The page number where the point is from. |
point | The point to convert. |
Implemented in PdfiumViewer.PdfDocument.
PointF PdfiumViewer.IPdfDocument.PointToPdf | ( | int | page, |
Point | point | ||
) |
Convert a point from device coordinates to page coordinates.
page | The page number where the point is from. |
point | The point to convert. |
Implemented in PdfiumViewer.PdfDocument.
Rectangle PdfiumViewer.IPdfDocument.RectangleFromPdf | ( | int | page, |
RectangleF | rect | ||
) |
Convert a rectangle from page coordinates to device coordinates.
page | The page where the rectangle is from. |
rect | The rectangle to convert. |
Implemented in PdfiumViewer.PdfDocument.
RectangleF PdfiumViewer.IPdfDocument.RectangleToPdf | ( | int | page, |
Rectangle | rect | ||
) |
Convert a rectangle from device coordinates to page coordinates.
page | The page where the rectangle is from. |
rect | The rectangle to convert. |
Implemented in PdfiumViewer.PdfDocument.
Image PdfiumViewer.IPdfDocument.Render | ( | int | page, |
float | dpiX, | ||
float | dpiY, | ||
bool | forPrinting | ||
) |
Renders a page of the PDF document to an image.
page | Number of the page to render. |
dpiX | Horizontal DPI. |
dpiY | Vertical DPI. |
forPrinting | Render the page for printing. |
Implemented in PdfiumViewer.PdfDocument.
Image PdfiumViewer.IPdfDocument.Render | ( | int | page, |
float | dpiX, | ||
float | dpiY, | ||
PdfRenderFlags | flags | ||
) |
Renders a page of the PDF document to an image.
page | Number of the page to render. |
dpiX | Horizontal DPI. |
dpiY | Vertical DPI. |
flags | Flags used to influence the rendering. |
Implemented in PdfiumViewer.PdfDocument.
void PdfiumViewer.IPdfDocument.Render | ( | int | page, |
Graphics | graphics, | ||
float | dpiX, | ||
float | dpiY, | ||
Rectangle | bounds, | ||
bool | forPrinting | ||
) |
Renders a page of the PDF document to the provided graphics instance.
page | Number of the page to render. |
graphics | Graphics instance to render the page on. |
dpiX | Horizontal DPI. |
dpiY | Vertical DPI. |
bounds | Bounds to render the page in. |
forPrinting | Render the page for printing. |
Implemented in PdfiumViewer.PdfDocument.
void PdfiumViewer.IPdfDocument.Render | ( | int | page, |
Graphics | graphics, | ||
float | dpiX, | ||
float | dpiY, | ||
Rectangle | bounds, | ||
PdfRenderFlags | flags | ||
) |
Renders a page of the PDF document to the provided graphics instance.
page | Number of the page to render. |
graphics | Graphics instance to render the page on. |
dpiX | Horizontal DPI. |
dpiY | Vertical DPI. |
bounds | Bounds to render the page in. |
flags | Flags used to influence the rendering. |
Implemented in PdfiumViewer.PdfDocument.
Image PdfiumViewer.IPdfDocument.Render | ( | int | page, |
int | width, | ||
int | height, | ||
float | dpiX, | ||
float | dpiY, | ||
bool | forPrinting | ||
) |
Renders a page of the PDF document to an image.
page | Number of the page to render. |
width | Width of the rendered image. |
height | Height of the rendered image. |
dpiX | Horizontal DPI. |
dpiY | Vertical DPI. |
forPrinting | Render the page for printing. |
Implemented in PdfiumViewer.PdfDocument.
Image PdfiumViewer.IPdfDocument.Render | ( | int | page, |
int | width, | ||
int | height, | ||
float | dpiX, | ||
float | dpiY, | ||
PdfRenderFlags | flags | ||
) |
Renders a page of the PDF document to an image.
page | Number of the page to render. |
width | Width of the rendered image. |
height | Height of the rendered image. |
dpiX | Horizontal DPI. |
dpiY | Vertical DPI. |
flags | Flags used to influence the rendering. |
Implemented in PdfiumViewer.PdfDocument.
Image PdfiumViewer.IPdfDocument.Render | ( | int | page, |
int | width, | ||
int | height, | ||
float | dpiX, | ||
float | dpiY, | ||
PdfRotation | rotate, | ||
PdfRenderFlags | flags | ||
) |
Renders a page of the PDF document to an image.
page | Number of the page to render. |
width | Width of the rendered image. |
height | Height of the rendered image. |
dpiX | Horizontal DPI. |
dpiY | Vertical DPI. |
rotate | Rotation. |
flags | Flags used to influence the rendering. |
Implemented in PdfiumViewer.PdfDocument.
void PdfiumViewer.IPdfDocument.RotatePage | ( | int | page, |
PdfRotation | rotation | ||
) |
Rotate the page.
page | The page to rotate. |
rotation | How to rotate the page. |
Implemented in PdfiumViewer.PdfDocument.
void PdfiumViewer.IPdfDocument.Save | ( | Stream | stream | ) |
Save the PDF document to the specified location.
stream | Stream to save the PDF document to. |
Implemented in PdfiumViewer.PdfDocument.
void PdfiumViewer.IPdfDocument.Save | ( | string | path | ) |
Save the PDF document to the specified location.
path | Path to save the PDF document to. |
Implemented in PdfiumViewer.PdfDocument.
PdfMatches PdfiumViewer.IPdfDocument.Search | ( | string | text, |
bool | matchCase, | ||
bool | wholeWord | ||
) |
Finds all occurences of text.
text | The text to search for. |
matchCase | Whether to match case. |
wholeWord | Whether to match whole words only. |
Implemented in PdfiumViewer.PdfDocument.
PdfMatches PdfiumViewer.IPdfDocument.Search | ( | string | text, |
bool | matchCase, | ||
bool | wholeWord, | ||
int | page | ||
) |
Finds all occurences of text.
text | The text to search for. |
matchCase | Whether to match case. |
wholeWord | Whether to match whole words only. |
page | The page to search on. |
Implemented in PdfiumViewer.PdfDocument.
PdfMatches PdfiumViewer.IPdfDocument.Search | ( | string | text, |
bool | matchCase, | ||
bool | wholeWord, | ||
int | startPage, | ||
int | endPage | ||
) |
Finds all occurences of text.
text | The text to search for. |
matchCase | Whether to match case. |
wholeWord | Whether to match whole words only. |
startPage | The page to start searching. |
endPage | The page to end searching. |
Implemented in PdfiumViewer.PdfDocument.
|
get |
Bookmarks stored in this PdfFile
|
get |
Number of pages in the PDF document.
|
get |
Size of each page in the PDF document.