C# Класс PdfSharp.Xps.XpsConverter

Main class that provides the functionallity to convert an XPS file into a PDF file.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
BitmapSourceFromPage ( System.Windows.Documents.DocumentPage docPage, double resolution ) : System.Windows.Media.Imaging.BitmapSource
Convert ( PdfSharp.Xps.XpsModel.XpsDocument xpsDocument, string pdfFilename, int docIndex ) : void

Implements the PDF file to XPS file conversion.

Convert ( string xpsFilename ) : void

Converts the specified PDF file into an XPS file. The new file is stored in the same directory.

Convert ( string xpsFilename, string pdfFilename, int docInde ) : void

Implements the PDF file to XPS file conversion.

Convert ( string xpsFilename, string pdfFilename, int docIndex, bool createComparisonDocument ) : void

Implements the PDF file to XPS file conversion.

CreatePage ( int xpsPageIndex ) : PdfPage

HACK

Initialize ( ) : void
RenderPage ( PdfPage page, int xpsPageIndex ) : void

Renders an XPS document page to the specified PDF page.

SaveXpsPageToBitmap ( string xpsFileName ) : void
XpsConverter ( PdfSharp.Pdf.PdfDocument pdfDocument, PdfSharp.Xps.XpsModel.XpsDocument xpsDocument ) : System

Initializes a new instance of the XpsConverter class.

XpsConverter ( PdfSharp.Pdf.PdfDocument pdfDocument, string xpsDocumentPath ) : System

Initializes a new instance of the XpsConverter class.

Описание методов

BitmapSourceFromPage() статический публичный Метод

static public BitmapSourceFromPage ( System.Windows.Documents.DocumentPage docPage, double resolution ) : System.Windows.Media.Imaging.BitmapSource
docPage System.Windows.Documents.DocumentPage
resolution double
Результат System.Windows.Media.Imaging.BitmapSource

Convert() публичный статический Метод

Implements the PDF file to XPS file conversion.
public static Convert ( PdfSharp.Xps.XpsModel.XpsDocument xpsDocument, string pdfFilename, int docIndex ) : void
xpsDocument PdfSharp.Xps.XpsModel.XpsDocument
pdfFilename string
docIndex int
Результат void

Convert() публичный статический Метод

Converts the specified PDF file into an XPS file. The new file is stored in the same directory.
public static Convert ( string xpsFilename ) : void
xpsFilename string
Результат void

Convert() публичный статический Метод

Implements the PDF file to XPS file conversion.
public static Convert ( string xpsFilename, string pdfFilename, int docInde ) : void
xpsFilename string
pdfFilename string
docInde int
Результат void

Convert() публичный статический Метод

Implements the PDF file to XPS file conversion.
public static Convert ( string xpsFilename, string pdfFilename, int docIndex, bool createComparisonDocument ) : void
xpsFilename string
pdfFilename string
docIndex int
createComparisonDocument bool
Результат void

CreatePage() публичный Метод

HACK
public CreatePage ( int xpsPageIndex ) : PdfPage
xpsPageIndex int
Результат PdfSharp.Pdf.PdfPage

Initialize() публичный Метод

public Initialize ( ) : void
Результат void

RenderPage() публичный Метод

Renders an XPS document page to the specified PDF page.
public RenderPage ( PdfPage page, int xpsPageIndex ) : void
page PdfSharp.Pdf.PdfPage The target PDF page. The page must belong to the PDF document of this converter.
xpsPageIndex int The zero-based XPS page number.
Результат void

SaveXpsPageToBitmap() статический публичный Метод

static public SaveXpsPageToBitmap ( string xpsFileName ) : void
xpsFileName string
Результат void

XpsConverter() публичный Метод

Initializes a new instance of the XpsConverter class.
public XpsConverter ( PdfSharp.Pdf.PdfDocument pdfDocument, PdfSharp.Xps.XpsModel.XpsDocument xpsDocument ) : System
pdfDocument PdfSharp.Pdf.PdfDocument The PDF document.
xpsDocument PdfSharp.Xps.XpsModel.XpsDocument The XPS document.
Результат System

XpsConverter() публичный Метод

Initializes a new instance of the XpsConverter class.
public XpsConverter ( PdfSharp.Pdf.PdfDocument pdfDocument, string xpsDocumentPath ) : System
pdfDocument PdfSharp.Pdf.PdfDocument The PDF document.
xpsDocumentPath string The XPS document path.
Результат System