מציג PDF

מציג 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 נוספים.

מאפיינים

שםסוגגישהתיאור
AutoResizeboolקריאה/כתיבהמקבל או מגדיר את שינוי הגודל האוטומטי.
AutoRotateboolקריאה/כתיבהמקבל או מגדיר את הסיבוב האוטומטי.
AutoRotateModeAutoRotateModeקריאה/כתיבהמקבל או מגדיר את מצב הסיבוב האוטומטי.
CoordinateTypePageCoordinateTypeקריאה/כתיבהמקבל או מגדיר את סוג הקואורדינטה.
FormPresentationModeFormPresentationModeקריאה/כתיבהמקבל או מגדיר את מצב הצגת הטופס.
HorizontalAlignmentHorizontalAlignmentקריאה/כתיבהמקבל או מגדיר את היישור האופקי.
VerticalAlignmentVerticalAlignmentקריאה/כתיבהמקבל או מגדיר את היישור האנכי.
PageCountintקריאהמספר העמודים במסמך הקשור, או 0 כאשר אין דבר קשור.
Passwordstringקריאה/כתיבהסיסמת הבעלים המשמשת בעת פתיחת מסמכים מוצפנים באמצעות OpenPdfFile(string).
PrintAsGrayscaleboolקריאה/כתיבהמקבל או מגדיר הדפסה בגווני אפור.
PrintAsImageboolקריאה/כתיבהמקבל או מגדיר הדפסה כתמונה.
PrintPageDialogboolקריאה/כתיבהכאשר אמת, PrintDocumentWithSetup יציג את תיבת הדו-שיח של ההדפסה במערכת ההפעלה.
PrintStatusobjectקריאהתמיד מחזיר null בבנייה זו; הדפסה לא מיושמת.
PrinterJobNamestringקריאה/כתיבהמקבל או מגדיר את שם משימת המדפסת.
RenderingOptionsAspose.Pdf.RenderingOptionsקריאה/כתיבהמקבל או מגדיר את אפשרויות הרינדור.
Resolutionintקריאה/כתיבהDPI של הרסטריזציה היעד שנלקח בחשבון ברינדור ברמת הצופה (שיטות Decode זורקות חריגה, ולכן זה כרגע רק תצורה).
ScaleFactorfloatקריאה/כתיבהמקבל או מגדיר את גורם הקנה.
ShowHiddenAreasboolקריאה/כתיבהמקבל או מגדיר את הצגת האזורים המוסתרים.
UseIntermidiateImageboolקריאה/כתיבהמקבל או מגדיר את השימוש בתמונה ביניים.

שיטות

SignatureDescription
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 הזה.

ראה גם

 עברית