C# Класс Bloom.Publish.PdfMaker

Creates a pdf from Html, optionally layed out in various booklet layouts
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ShowCropMarks bool

Открытые методы

Метод Описание
MakePdf ( string inputHtmlPath, string outputPdfPath, string paperSizeName, bool landscape, bool saveMemoryMode, bool layoutPagesForRightToLeft, PublishModel booketLayoutMethod, PublishModel bookletPortion, BackgroundWorker worker, DoWorkEventArgs doWorkEventArgs, Control owner ) : void

Приватные методы

Метод Описание
CheckPdf ( string outputPdfPath ) : void
GetZoomBasedOnScreenDPISettings ( ) : double
MakeBooklet ( string pdfPath, string incomingPaperSize, PublishModel booketLayoutMethod, bool layoutPagesForRightToLeft ) : void

Описание методов

MakePdf() публичный Метод

public MakePdf ( string inputHtmlPath, string outputPdfPath, string paperSizeName, bool landscape, bool saveMemoryMode, bool layoutPagesForRightToLeft, PublishModel booketLayoutMethod, PublishModel bookletPortion, BackgroundWorker worker, DoWorkEventArgs doWorkEventArgs, Control owner ) : void
inputHtmlPath string
outputPdfPath string
paperSizeName string A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B10,B2,B3,B4,B5,B6,B7,B8,B9,C5E,Comm10E,DLE,Executive,Folio,Ledger,Legal,Letter,Tabloid
landscape bool true if landscape orientation, false if portrait orientation
saveMemoryMode bool true if PDF file is to be produced using less memory (but more time)
layoutPagesForRightToLeft bool true if RTL, false if LTR layout
booketLayoutMethod PublishModel NoBooklet,SideFold,CutAndStack,Calendar
bookletPortion PublishModel None,AllPagesNoBooklet,BookletCover,BookletPages,InnerContent
worker System.ComponentModel.BackgroundWorker If not null, the Background worker which is running this task, and may be queried to determine whether a cancel is being attempted
doWorkEventArgs System.ComponentModel.DoWorkEventArgs The event passed to the worker when it was started. If a cancel is successful, it's Cancel property should be set true.
owner System.Windows.Forms.Control A control which can be used to invoke parts of the work which must be done on the ui thread.
Результат void

Описание свойств

ShowCropMarks публичное свойство

turns on crop marks and TrimBox
public bool ShowCropMarks
Результат bool