C# Class Bloom.Publish.PdfMaker

Creates a pdf from Html, optionally layed out in various booklet layouts
Mostrar archivo Open project: BloomBooks/BloomDesktop Class Usage Examples

Public Properties

Property Type Description
ShowCropMarks bool

Public Methods

Method Description
MakePdf ( string inputHtmlPath, string outputPdfPath, string paperSizeName, bool landscape, bool saveMemoryMode, bool layoutPagesForRightToLeft, PublishModel booketLayoutMethod, PublishModel bookletPortion, BackgroundWorker worker, DoWorkEventArgs doWorkEventArgs, Control owner ) : void

Private Methods

Method Description
CheckPdf ( string outputPdfPath ) : void
GetZoomBasedOnScreenDPISettings ( ) : double
MakeBooklet ( string pdfPath, string incomingPaperSize, PublishModel booketLayoutMethod, bool layoutPagesForRightToLeft ) : void

Method Details

MakePdf() public method

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.
return void

Property Details

ShowCropMarks public_oe property

turns on crop marks and TrimBox
public bool ShowCropMarks
return bool