PdfViewer

Overview

PdfViewer là một lớp trong Aspose.PDF FOSS cho .NET. Dòng thừa kế từ: IFacade, System.IDisposable.

Có sẵn để xem / in một tài liệu PDF.

Khóa học này cung cấp 35 phương pháp để làm việc với các đối tượng PdfViewer trong các chương trình .NET. Các phương pháp có sẵn bao gồm: BindPdf, Close, ClosePdfFile, DecodeAllPages, DecodePage, Dispose, GetDefaultPageSettings, GetDefaultPrinterSettings, OpenPdfFile, PdfViewer, PrintDocument, PrintDocumentWithSettings,Và 4 phương pháp bổ sung. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng .NET nào sau khi cài đặt Aspose.PDF FOSS cho gói .Net. Tài sản : AutoResize, AutoRotate, AutoRotateMode, CoordinateType, FormPresentationMode, HorizontalAlignment,Và 13 nhiều hơn nữa.

Properties

NameTypeAccessDescription
AutoResizeboolĐọc / viết- Nhận hoặc đặt xe lại.
AutoRotateboolĐọc / viếtGets hoặc đặt xe xoay.
AutoRotateModeAutoRotateModeĐọc / viếtNhận hoặc đặt chế độ tự động xoay.
CoordinateTypePageCoordinateTypeĐọc / viếtNhận hoặc đặt kiểu phối hợp.
FormPresentationModeFormPresentationModeĐọc / viếtNhận hoặc đặt biểu mẫu chế độ trình bày.
HorizontalAlignmentHorizontalAlignmentĐọc / viếtNhận hoặc đặt sự sắp xếp ngang.
VerticalAlignmentVerticalAlignmentĐọc / viếtNhận hoặc đặt sự phù hợp dọc.
PageCountintReadSố trang trong tài liệu được gắn kết, hoặc 0 khi không có gì bị ràng buộc.
PasswordstringĐọc / viếtMã mật khẩu được sử dụng khi mở các tài liệu mã hóa thông qua OpenPdfFile(string).
PrintAsGrayscaleboolĐọc / viếtNhận hoặc đặt in như grayscale.
PrintAsImageboolĐọc / viếtNhận hoặc đặt in như hình ảnh.
PrintPageDialogboolĐọc / viếtKhi đúng, PrintDocumentWithSetup sẽ hiển thị đối thoại OS in.
PrintStatusobjectReadLuôn có null trở lại trong cấu trúc này; in không được thực hiện.
PrinterJobNamestringĐọc / viếtNhận hoặc đặt tên công việc của máy in.
RenderingOptionsAspose.Pdf.RenderingOptionsĐọc / viếtNhận hoặc đặt các tùy chọn rendering.
ResolutionintĐọc / viếtMục tiêu rasterisation DPI được tư vấn bởi trình bày cấp độ người xem (các phương pháp Decode ném, vì vậy hiện nay chỉ là cấu hình).
ScaleFactorfloatĐọc / viếtNhận hoặc đặt yếu tố quy mô.
ShowHiddenAreasboolĐọc / viếtNhận hoặc đặt các khu vực ẩn của chương trình.
UseIntermidiateImageboolĐọc / viếtNhận hoặc đặt hình ảnh sử dụng tạm thời.

Methods

SignatureDescription
PdfViewer()Hãy gọi PdfViewer trên trường hợp này PdfViewer.
PdfViewer(document: Document)Nhấn PdfViewer(document) trên ví dụ này PdfViewer.
BindPdf(srcDoc: Document)Tải PDF từ một đường file vào trình duyệt
BindPdf(srcFile: string)Nhắc BindPdf(srcFile) trên trường hợp này PdfViewer.
BindPdf(srcStream: Stream)Hãy gọi BindPdf(srcStream) trên trường hợp này PdfViewer.
OpenPdfFile(filePath: string)Nhấn OpenPdfFile(filePath) trên ví dụ này PdfViewer.
OpenPdfFile(inputStream: Stream)Nhấn OpenPdfFile(inputStream) trên ví dụ này PdfViewer.
Close()Call Close trên trường hợp PdfViewer này.
ClosePdfFile()Hãy gọi ClosePdfFile trên trường hợp này PdfViewer.
Dispose()Calls Có sẵn trên trường hợp PdfViewer này.
Save(destFile: string)Call Save(destFile) trên trường hợp này PdfViewer.
Save(destStream: Stream)Call Save(destStream) trên trường hợp này PdfViewer.
DecodePage(pageNumber: int)Luôn ném: trình duyệt không sản xuất các đối tượng Bitmap; chuyển qua ImageDevice (SkiaSharp-được hỗ trợ) thay vào đó.
DecodeAllPages()Luôn ném: xem DecodePage(int).
GetDefaultPageSettings()Trở lại một cái tươi, trống PageSettings.
GetDefaultPrinterSettings()Trở lại một cái tươi, trống PrinterSettings.
PrintDocument()Gửi PDF hiện được kết nối đến máy in mặc định
PrintDocumentWithSettings(printerSettings: PrinterSettings)Nhấn PrintDocumentWithSettings(printerSettings) trên ví dụ này PdfViewer.
PrintDocumentWithSettings(pageSettings: PageSettings, printerSettings: PrinterSettings)Nhấn PrintDocumentWithSettings(pageSettings, printerSetting) trên ví dụ này PdfViewer.
PrintDocumentWithSetup()Hãy gọi PrintDocumentWithSetup trên trường hợp này PdfViewer.
PrintDocuments(documents: Document[])Hãy gọi PrintDocuments(Documents) trên ví dụ này PdfViewer.
PrintDocuments(filePaths: string[])Nhấn PrintDocuments(filePaths) trên ví dụ này PdfViewer.
PrintDocuments(documentStreams: Stream[])Nhấn PrintDocuments(documentStreams) trên ví dụ này PdfViewer.
PrintDocuments(printerSettings: PrinterSettings, documents: Document[])Nhấn PrintDocuments(printerSettings, tài liệu) trên ví dụ này PdfViewer.
PrintDocuments(printerSettings: PrinterSettings, filePaths: string[])Nhấn PrintDocuments(printerSettings, filePaths) trên ví dụ này PdfViewer.
PrintDocuments(printerSettings: PrinterSettings, documentStreams: Stream[])Nhấn PrintDocuments(printerSettings, documentStreams) trên ví dụ này PdfViewer.
PrintDocuments(printerSettings: PrinterSettings, pageSettings: PageSettings, documents: Document[])Hãy gọi PrintDocuments(printerSettings, pageSetting, documents) trên ví dụ này PdfViewer.
PrintDocuments(printerSettings: PrinterSettings, pageSettings: PageSettings, filePaths: string[])Hãy gọi PrintDocuments(printerSettings, pageSetting, filePaths) trên ví dụ này PdfViewer.
PrintDocuments(printerSettings: PrinterSettings, pageSettings: PageSettings, documentStreams: Stream[])Hãy gọi PrintDocuments(printerSettings, pageSetting, documentStreams) trên ví dụ này PdfViewer.
PrintLargePdf(filePath: string)Nhấn PrintLargePdf(filePath) trên ví dụ này PdfViewer.
PrintLargePdf(inputStream: Stream)Nhấn PrintLargePdf(inputStream) trên ví dụ này PdfViewer.
PrintLargePdf(filePath: string, printerSettings: PrinterSettings)Nhấn PrintLargePdf(filePath, printerSettings) trên ví dụ này PdfViewer.
PrintLargePdf(inputStream: Stream, printerSettings: PrinterSettings)Nhấn PrintLargePdf(inputStream, printerSettings) trên ví dụ này PdfViewer.
PrintLargePdf(filePath: string, pageSettings: PageSettings, printerSettings: PrinterSettings)Hãy gọi PrintLargePdf(filePath, pageSettings, printerSetting) trên ví dụ này PdfViewer.
PrintLargePdf(inputStream: Stream, pageSettings: PageSettings, printerSettings: PrinterSettings)Hãy gọi PrintLargePdf(inputStream, pageSettings, printerSetting) trên ví dụ này PdfViewer.

See Also

 Tiếng Việt