PdfViewer

ภาพรวม

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 คน.

คุณสมบัติ

ชื่อประเภทAccessคําอธิบาย
AutoResizeboolอ่าน/เขียนรับหรือกำหนดการปรับขนาดอัตโนมัติ.
AutoRotateboolอ่าน/เขียนรับหรือกำหนดการหมุนอัตโนมัติ.
AutoRotateModeAutoRotateModeอ่าน/เขียนรับหรือกำหนดโหมดการหมุนอัตโนมัติ.
CoordinateTypePageCoordinateTypeอ่าน/เขียนรับหรือกำหนดประเภทพิกัด.
FormPresentationModeFormPresentationModeอ่าน/เขียนรับหรือกำหนดโหมดการนำเสนอของฟอร์ม.
HorizontalAlignmentHorizontalAlignmentอ่าน/เขียนรับหรือกำหนดการจัดแนวนอน.
VerticalAlignmentVerticalAlignmentอ่าน/เขียนรับหรือกำหนดการจัดตำแหน่งแนวตั้ง.
PageCountintอ่านจํานวนหน้าในเอกสารที่ผูกพัน หรือ 0 เมื่อไม่มีอะไรถูกผับพัน.
Passwordstringอ่าน/เขียนปิดรหัสเจ้าของที่ใช้ในการเปิดเอกสารที่ถูกเข้าร่องผ่าน OpenPdfFile(string).
PrintAsGrayscaleboolอ่าน/เขียนรับหรือกำหนดการพิมพ์เป็นระดับสีเทา.
PrintAsImageboolอ่าน/เขียนรับหรือกำหนดการพิมพ์เป็นภาพ.
PrintPageDialogboolอ่าน/เขียนเมื่อเป็นจริง, PrintDocumentWithSetup จะเปิดหน้า dialog การพิมพ์ของ OS.
PrintStatusobjectอ่านยืนยัน null ใน build นี้เสมอ; การพิมพ์ไม่ได้ถูกนําไปใช้งาน.
PrinterJobNamestringอ่าน/เขียนรับหรือกำหนดชื่องานของเครื่องพิมพ์.
RenderingOptionsAspose.Pdf.RenderingOptionsอ่าน/เขียนรับหรือกำหนดตัวเลือกการเรนเดอร์.
Resolutionintอ่าน/เขียนการทําการประกอบรสเตอร์ DPI ของเป้าหมายที่ได้รับการค้นหาโดยการแสดงระดับผู้ชม (วิธี FOSS Decode throw, ดังนั้นในปัจจุบันนี้เป็นการตั้งค่าเพียงเท่านั้น).
ScaleFactorfloatอ่าน/เขียนรับหรือกำหนดค่าอัตราส่วนการปรับขนาด.
ShowHiddenAreasboolอ่าน/เขียนรับหรือกำหนดการแสดงพื้นที่ที่ซ่อนอยู่.
UseIntermidiateImageboolอ่าน/เขียนรับหรือกำหนดการใช้ภาพกลาง.

วิธีการ

Signatureคําอธิบาย
PdfViewer()เรียก PdfViewer ในตัวอย่างนี้ PdfViewer.
PdfViewer(document: Document)เรียก PdfViewer(เอกสาร) ในตัวอย่างนี้ 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)ยกเสมอ: FOSS ไม่ผลิตวัตถุ Bitmap จากผู้ชม; ทําการแสดงผ่าน ImageDevice (SkiaSharp-backed) แทน.
DecodeAllPages()ยกเสมอ: ดู DecodePage ((int)).
GetDefaultPageSettings()กลับ PageSettings ที่ว่างๆใหม่ ๆ.
GetDefaultPrinterSettings()กลับ PrinterSettings ที่ว่างๆใหม่ ๆ.
PrintDocument()ส่ง PDF ที่ติดต่ออยู่ในขณะนี้ไปยังเครื่องพิมพ์แบบตั้งค่า
PrintDocumentWithSettings(printerSettings: PrinterSettings)เรียก PrintDocumentWithSettings(printerSettings) ในตัวอย่างนี้ PdfViewer.
PrintDocumentWithSettings(pageSettings: PageSettings, printerSettings: PrinterSettings)เรียก PrintDocumentWithSettings ((pageSettings, printerSetings) ในตัวอย่างนี้ PdfViewer.
PrintDocumentWithSetup()เรียก PrintDocumentWithSetup ในตัวอย่างนี้ PdfViewer.
PrintDocuments(documents: Document[])เรียก PrintDocuments(เอกสาร) ในตัวอย่างนี้ 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, pageSetings , documents) ในตัวอย่างนี้ PdfViewer.
PrintDocuments(printerSettings: PrinterSettings, pageSettings: PageSettings, filePaths: string[])เรียก PrintDocuments ((printerSettings, pageSetings , filePaths) ในตัวอย่างนี้ PdfViewer.
PrintDocuments(printerSettings: PrinterSettings, pageSettings: PageSettings, documentStreams: Stream[])เรียก PrintDocuments ((printerSettings, pageSetings , 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, printerSetings) ในตัวอย่างนี้ PdfViewer.
PrintLargePdf(inputStream: Stream, pageSettings: PageSettings, printerSettings: PrinterSettings)เรียก PrintLargePdf ((inputStream, pageSettings, printerSetings) ในตัวอย่างนี้ PdfViewer.

ดูเช่นกัน

 ภาษาไทย