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
| Name | Type | Access | Description |
|---|---|---|---|
AutoResize | bool | Đọc / viết | - Nhận hoặc đặt xe lại. |
AutoRotate | bool | Đọc / viết | Gets hoặc đặt xe xoay. |
AutoRotateMode | AutoRotateMode | Đọc / viết | Nhận hoặc đặt chế độ tự động xoay. |
CoordinateType | PageCoordinateType | Đọc / viết | Nhận hoặc đặt kiểu phối hợp. |
FormPresentationMode | FormPresentationMode | Đọc / viết | Nhận hoặc đặt biểu mẫu chế độ trình bày. |
HorizontalAlignment | HorizontalAlignment | Đọc / viết | Nhận hoặc đặt sự sắp xếp ngang. |
VerticalAlignment | VerticalAlignment | Đọc / viết | Nhận hoặc đặt sự phù hợp dọc. |
PageCount | int | Read | Số trang trong tài liệu được gắn kết, hoặc 0 khi không có gì bị ràng buộc. |
Password | string | Đọc / viết | Mã mật khẩu được sử dụng khi mở các tài liệu mã hóa thông qua OpenPdfFile(string). |
PrintAsGrayscale | bool | Đọc / viết | Nhận hoặc đặt in như grayscale. |
PrintAsImage | bool | Đọc / viết | Nhận hoặc đặt in như hình ảnh. |
PrintPageDialog | bool | Đọc / viết | Khi đúng, PrintDocumentWithSetup sẽ hiển thị đối thoại OS in. |
PrintStatus | object | Read | Luôn có null trở lại trong cấu trúc này; in không được thực hiện. |
PrinterJobName | string | Đọc / viết | Nhận hoặc đặt tên công việc của máy in. |
RenderingOptions | Aspose.Pdf.RenderingOptions | Đọc / viết | Nhận hoặc đặt các tùy chọn rendering. |
Resolution | int | Đọc / viết | Mụ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). |
ScaleFactor | float | Đọc / viết | Nhận hoặc đặt yếu tố quy mô. |
ShowHiddenAreas | bool | Đọc / viết | Nhận hoặc đặt các khu vực ẩn của chương trình. |
UseIntermidiateImage | bool | Đọc / viết | Nhận hoặc đặt hình ảnh sử dụng tạm thời. |
Methods
| Signature | Description |
|---|---|
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. |