מציג PDF
סקירה
PdfViewer היא מחלקה ב‑Aspose.PDF FOSS עבור .NET.
יורשת מ‑: IFacade, System.IDisposable.
ממשק לתצוגה / הדפסה של מסמך PDF.
מחלקה זו מספקת 35 שיטות לעבודה עם אובייקטים מסוג PdfViewer בתוכניות .NET.
השיטות הזמינות כוללות: BindPdf, Close, ClosePdfFile, DecodeAllPages, DecodePage, Dispose, GetDefaultPageSettings, GetDefaultPrinterSettings, OpenPdfFile, PdfViewer, PrintDocument, PrintDocumentWithSettings, ו‑4 שיטות נוספות.
כל החברים הציבוריים נגישים לכל יישום .NET לאחר התקנת חבילת Aspose.PDF FOSS for .NET.
מאפיינים: AutoResize, AutoRotate, AutoRotateMode, CoordinateType, FormPresentationMode, HorizontalAlignment, ו‑13 נוספים.
מאפיינים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
AutoResize | bool | קריאה/כתיבה | מקבל או מגדיר את שינוי הגודל האוטומטי. |
AutoRotate | bool | קריאה/כתיבה | מקבל או מגדיר את הסיבוב האוטומטי. |
AutoRotateMode | AutoRotateMode | קריאה/כתיבה | מקבל או מגדיר את מצב הסיבוב האוטומטי. |
CoordinateType | PageCoordinateType | קריאה/כתיבה | מקבל או מגדיר את סוג הקואורדינטה. |
FormPresentationMode | FormPresentationMode | קריאה/כתיבה | מקבל או מגדיר את מצב הצגת הטופס. |
HorizontalAlignment | HorizontalAlignment | קריאה/כתיבה | מקבל או מגדיר את היישור האופקי. |
VerticalAlignment | VerticalAlignment | קריאה/כתיבה | מקבל או מגדיר את היישור האנכי. |
PageCount | int | קריאה | מספר העמודים במסמך הקשור, או 0 כאשר אין דבר קשור. |
Password | string | קריאה/כתיבה | סיסמת הבעלים המשמשת בעת פתיחת מסמכים מוצפנים באמצעות OpenPdfFile(string). |
PrintAsGrayscale | bool | קריאה/כתיבה | מקבל או מגדיר הדפסה בגווני אפור. |
PrintAsImage | bool | קריאה/כתיבה | מקבל או מגדיר הדפסה כתמונה. |
PrintPageDialog | bool | קריאה/כתיבה | כאשר אמת, PrintDocumentWithSetup יציג את תיבת הדו-שיח של ההדפסה במערכת ההפעלה. |
PrintStatus | object | קריאה | תמיד מחזיר null בבנייה זו; הדפסה לא מיושמת. |
PrinterJobName | string | קריאה/כתיבה | מקבל או מגדיר את שם משימת המדפסת. |
RenderingOptions | Aspose.Pdf.RenderingOptions | קריאה/כתיבה | מקבל או מגדיר את אפשרויות הרינדור. |
Resolution | int | קריאה/כתיבה | DPI של הרסטריזציה היעד שנלקח בחשבון ברינדור ברמת הצופה (שיטות Decode זורקות חריגה, ולכן זה כרגע רק תצורה). |
ScaleFactor | float | קריאה/כתיבה | מקבל או מגדיר את גורם הקנה. |
ShowHiddenAreas | bool | קריאה/כתיבה | מקבל או מגדיר את הצגת האזורים המוסתרים. |
UseIntermidiateImage | bool | קריאה/כתיבה | מקבל או מגדיר את השימוש בתמונה ביניים. |
שיטות
| Signature | Description |
|---|---|
PdfViewer() | קורא ל‑PdfViewer על מופע ה‑PdfViewer הזה. |
PdfViewer(document: Document) | קורא ל‑PdfViewer(document) על מופע ה‑PdfViewer הזה. |
BindPdf(srcDoc: Document) | טוען קובץ PDF מנתיב קובץ לתצוגה |
BindPdf(srcFile: string) | קורא ל‑BindPdf(srcFile) על מופע ה‑PdfViewer הזה. |
BindPdf(srcStream: Stream) | קורא ל‑BindPdf(srcStream) על מופע ה‑PdfViewer הזה. |
OpenPdfFile(filePath: string) | קורא ל‑OpenPdfFile(filePath) על מופע ה‑PdfViewer הזה. |
OpenPdfFile(inputStream: Stream) | קורא ל‑OpenPdfFile(inputStream) על מופע ה‑PdfViewer הזה. |
Close() | קורא ל‑Close על מופע ה‑PdfViewer הזה. |
ClosePdfFile() | קורא ל‑ClosePdfFile על מופע ה‑PdfViewer הזה. |
Dispose() | קורא ל‑Dispose על מופע ה‑PdfViewer הזה. |
Save(destFile: string) | קורא ל‑Save(destFile) על מופע ה‑PdfViewer הזה. |
Save(destStream: Stream) | קורא ל‑Save(destStream) על מופע ה‑PdfViewer הזה. |
DecodePage(pageNumber: int) | תמיד זורק חריגה: הצופה אינו מייצר אובייקטי Bitmap; יש לבצע רינדור דרך ImageDevice (מבוסס SkiaSharp) במקום זאת. |
DecodeAllPages() | תמיד זורק חריגה: ראה DecodePage(int). |
GetDefaultPageSettings() | מחזיר PageSettings חדש וריק. |
GetDefaultPrinterSettings() | מחזיר PrinterSettings חדש וריק. |
PrintDocument() | שולח את קובץ ה‑PDF הקשור כרגע למדפסת ברירת המחדל |
PrintDocumentWithSettings(printerSettings: PrinterSettings) | קורא ל‑PrintDocumentWithSettings(printerSettings) על מופע ה‑PdfViewer הזה. |
PrintDocumentWithSettings(pageSettings: PageSettings, printerSettings: PrinterSettings) | קורא ל‑PrintDocumentWithSettings(pageSettings, printerSettings) על מופע ה‑PdfViewer הזה. |
PrintDocumentWithSetup() | קורא ל‑PrintDocumentWithSetup על מופע ה‑PdfViewer הזה. |
PrintDocuments(documents: Document[]) | קורא ל‑PrintDocuments(documents) על מופע ה‑PdfViewer הזה. |
PrintDocuments(filePaths: string[]) | קורא ל‑PrintDocuments(filePaths) על מופע ה‑PdfViewer הזה. |
PrintDocuments(documentStreams: Stream[]) | קורא ל‑PrintDocuments(documentStreams) על מופע ה‑PdfViewer הזה. |
PrintDocuments(printerSettings: PrinterSettings, documents: Document[]) | קורא ל‑PrintDocuments(printerSettings, documents) על מופע ה‑PdfViewer הזה. |
PrintDocuments(printerSettings: PrinterSettings, filePaths: string[]) | קורא ל‑PrintDocuments(printerSettings, filePaths) על מופע ה‑PdfViewer הזה. |
PrintDocuments(printerSettings: PrinterSettings, documentStreams: Stream[]) | קורא ל‑PrintDocuments(printerSettings, documentStreams) על מופע ה‑PdfViewer הזה. |
PrintDocuments(printerSettings: PrinterSettings, pageSettings: PageSettings, documents: Document[]) | קורא ל‑PrintDocuments(printerSettings, pageSettings, documents) על מופע ה‑PdfViewer הזה. |
PrintDocuments(printerSettings: PrinterSettings, pageSettings: PageSettings, filePaths: string[]) | קורא ל‑PrintDocuments(printerSettings, pageSettings, filePaths) על מופע ה‑PdfViewer הזה. |
PrintDocuments(printerSettings: PrinterSettings, pageSettings: PageSettings, documentStreams: Stream[]) | קורא ל‑PrintDocuments(printerSettings, pageSettings, documentStreams) על מופע ה‑PdfViewer הזה. |
PrintLargePdf(filePath: string) | קורא ל‑PrintLargePdf(filePath) על מופע ה‑PdfViewer הזה. |
PrintLargePdf(inputStream: Stream) | קורא ל‑PrintLargePdf(inputStream) על מופע ה‑PdfViewer הזה. |
PrintLargePdf(filePath: string, printerSettings: PrinterSettings) | קורא ל‑PrintLargePdf(filePath, printerSettings) על מופע ה‑PdfViewer הזה. |
PrintLargePdf(inputStream: Stream, printerSettings: PrinterSettings) | קורא ל‑PrintLargePdf(inputStream, printerSettings) על מופע ה‑PdfViewer הזה. |
PrintLargePdf(filePath: string, pageSettings: PageSettings, printerSettings: PrinterSettings) | קורא ל‑PrintLargePdf(filePath, pageSettings, printerSettings) על מופע ה‑PdfViewer הזה. |
PrintLargePdf(inputStream: Stream, pageSettings: PageSettings, printerSettings: PrinterSettings) | קורא ל‑PrintLargePdf(inputStream, pageSettings, printerSettings) על מופע ה‑PdfViewer הזה. |