C# 클래스 PdfSharp.Xps.XpsConverter

Main class that provides the functionallity to convert an XPS file into a PDF file.
파일 보기 프로젝트 열기: homoluden/WPF2PDF

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