PdfViewer

PdfViewer

Přehled

PdfViewer je třída v Aspose.PDF FOSS pro .NET. Dědí z: IFacade, System.IDisposable.

Fasáda pro prohlížení / tisk PDF dokumentu.

Tato třída poskytuje 35 metod pro práci s objekty PdfViewer v programech .NET. Dostupné metody zahrnují: BindPdf, Close, ClosePdfFile, DecodeAllPages, DecodePage, Dispose, GetDefaultPageSettings, GetDefaultPrinterSettings, OpenPdfFile, PdfViewer, PrintDocument, PrintDocumentWithSettings a 4 další metody. Všichni veřejní členové jsou přístupní jakékoli aplikaci .NET po instalaci balíčku Aspose.PDF FOSS pro .NET. Vlastnosti: AutoResize, AutoRotate, AutoRotateMode, CoordinateType, FormPresentationMode, HorizontalAlignment a 13 dalších.

Vlastnosti

Název:Typ:PřístupPopis:
AutoResizeboolČtení/zápisZíská nebo nastaví automatické přizpůsobení velikosti.
AutoRotateboolČtení/zápisZíská nebo nastaví automatické otáčení.
AutoRotateModeAutoRotateModeČtení/zápisZíská nebo nastaví režim automatického otáčení.
CoordinateTypePageCoordinateTypeČtení/zápisZíská nebo nastaví typ souřadnic.
FormPresentationModeFormPresentationModeČtení/zápisZíská nebo nastaví režim prezentace formuláře.
HorizontalAlignmentHorizontalAlignmentČtení/zápisZíská nebo nastaví vodorovné zarovnání.
VerticalAlignmentVerticalAlignmentČtení/zápisZíská nebo nastaví svislé zarovnání.
PageCountintČteníPočet stránek ve svázaném dokumentu, nebo 0, pokud není nic svázáno.
PasswordstringČtení/zápisHeslo vlastníka používané při otevírání šifrovaných dokumentů pomocí OpenPdfFile(string).
PrintAsGrayscaleboolČtení/zápisZíská nebo nastaví tisk v odstínech šedi.
PrintAsImageboolČtení/zápisZíská nebo nastaví tisk jako obrázek.
PrintPageDialogboolČtení/zápisKdyž je true, PrintDocumentWithSetup zobrazí dialog tisku OS.
PrintStatusobjectČteníVždy vrací null v této verzi; tisk není implementován.
PrinterJobNamestringČtení/zápisZíská nebo nastaví název tiskové úlohy.
RenderingOptionsAspose.Pdf.RenderingOptionsČtení/zápisZíská nebo nastaví možnosti vykreslování.
ResolutionintČtení/zápisCílové DPI rasterizace používané DecodePage / DecodeAllPages.
ScaleFactorfloatČtení/zápisZíská nebo nastaví měřítkový faktor.
ShowHiddenAreasboolČtení/zápisZíská nebo nastaví zobrazení skrytých oblastí.
UseIntermidiateImageboolČtení/zápisZíská nebo nastaví použití mezilehlého obrázku.

Metody

Podpis:Popis:
PdfViewer()Volá PdfViewer na této instanci PdfViewer.
PdfViewer(document: Document)Volá PdfViewer(document) na této instanci PdfViewer.
BindPdf(srcDoc: Document)Volá BindPdf(srcDoc) na této PdfViewer instanci.
BindPdf(srcFile: string)Volá BindPdf(srcFile) na této PdfViewer instanci.
BindPdf(srcStream: Stream)Volá BindPdf(srcStream) na této PdfViewer instanci.
OpenPdfFile(filePath: string)Volá OpenPdfFile(filePath) na této PdfViewer instanci.
OpenPdfFile(inputStream: Stream)Volá OpenPdfFile(inputStream) na této instanci PdfViewer.
Close()Volá Close na této instanci PdfViewer.
ClosePdfFile()Volá ClosePdfFile na této instanci PdfViewer.
Dispose()Volá Dispose na této instanci PdfViewer.
Save(destFile: string)Volá Save(destFile) na této instanci PdfViewer.
Save(destStream: Stream)Volá Save(destStream) na této instanci PdfViewer.
DecodePage(pageNumber: int)Vykreslí jednu stránku (číslovanou od 1) do bitmapy při rozlišení DPI.
DecodeAllPages()Vykreslí každou stránku do bitmapy; viz DecodePage(int).
GetDefaultPageSettings()Vrátí novou, prázdnou PageSettings.
GetDefaultPrinterSettings()Vrátí novou, prázdnou PrinterSettings.
PrintDocument()Volá PrintDocument na této PdfViewer instanci.
PrintDocumentWithSettings(printerSettings: PrinterSettings)Volá PrintDocumentWithSettings(printerSettings) na této PdfViewer instanci.
PrintDocumentWithSettings(pageSettings: PageSettings, printerSettings: PrinterSettings)Volá PrintDocumentWithSettings(pageSettings, printerSettings) na této instanci PdfViewer.
PrintDocumentWithSetup()Volá PrintDocumentWithSetup na této instanci PdfViewer.
PrintDocuments(documents: Document[])Volá PrintDocuments(documents) na této instanci PdfViewer.
PrintDocuments(filePaths: string[])Volá PrintDocuments(filePaths) na této instanci PdfViewer.
PrintDocuments(documentStreams: Stream[])Volá PrintDocuments(documentStreams) na této instanci PdfViewer.
PrintDocuments(printerSettings: PrinterSettings, documents: Document[])Volá PrintDocuments(printerSettings, documents) na této instanci PdfViewer.
PrintDocuments(printerSettings: PrinterSettings, filePaths: string[])Volá PrintDocuments(printerSettings, filePaths) na této instanci PdfViewer.
PrintDocuments(printerSettings: PrinterSettings, documentStreams: Stream[])Volá PrintDocuments(printerSettings, documentStreams) na této instanci PdfViewer.
PrintDocuments(printerSettings: PrinterSettings, pageSettings: PageSettings, documents: Document[])Volá PrintDocuments(printerSettings, pageSettings, documents) na této instanci PdfViewer.
PrintDocuments(printerSettings: PrinterSettings, pageSettings: PageSettings, filePaths: string[])Volá PrintDocuments(printerSettings, pageSettings, filePaths) na této instanci PdfViewer.
PrintDocuments(printerSettings: PrinterSettings, pageSettings: PageSettings, documentStreams: Stream[])Volá PrintDocuments(printerSettings, pageSettings, documentStreams) na této instanci PdfViewer.
PrintLargePdf(filePath: string)Volá PrintLargePdf(filePath) na této instanci PdfViewer.
PrintLargePdf(inputStream: Stream)Volá PrintLargePdf(inputStream) na této instanci PdfViewer.
PrintLargePdf(filePath: string, printerSettings: PrinterSettings)Volá PrintLargePdf(filePath, printerSettings) na této instanci PdfViewer.
PrintLargePdf(inputStream: Stream, printerSettings: PrinterSettings)Volá PrintLargePdf(inputStream, printerSettings) na této instanci PdfViewer.
PrintLargePdf(filePath: string, pageSettings: PageSettings, printerSettings: PrinterSettings)Volá PrintLargePdf(filePath, pageSettings, printerSettings) na této instanci PdfViewer.
PrintLargePdf(inputStream: Stream, pageSettings: PageSettings, printerSettings: PrinterSettings)Volá PrintLargePdf(inputStream, pageSettings, printerSettings) na této instanci PdfViewer.

Viz také:

 Čeština