Packagecom.flexicious.controls.interfaces
Interfacepublic interface IPDFPrinter

A class that pulls in a PDF library (like AlivePDF) and spits out the PDF bytes to it. We purposely do not include a concrete implementation in the core library code so that there are no dependencies on a specific PDF library and you can plug in your own. The sample project includes an example of using AlivePDF



Public Methods
 MethodDefined By
  
addPage(page:DisplayObject, printOptions:PrintOptions):void
For each page generated by the Print Controller, this method is called.
IPDFPrinter
  
beginDocument(printOptions:PrintOptions):void
Called when the Print controller is ready to send out the pages.
IPDFPrinter
  
endDocument(printOptions:PrintOptions):void
Once all pages are added to the doc, this method is called.
IPDFPrinter
Method Detail
addPage()method
public function addPage(page:DisplayObject, printOptions:PrintOptions):void

For each page generated by the Print Controller, this method is called.

Parameters

page:DisplayObject — The currently added page
 
printOptions:PrintOptions — The printOptions that started the pdf

beginDocument()method 
public function beginDocument(printOptions:PrintOptions):void

Called when the Print controller is ready to send out the pages.

Parameters

printOptions:PrintOptions — The printOptions that started the pdf

endDocument()method 
public function endDocument(printOptions:PrintOptions):void

Once all pages are added to the doc, this method is called.

Parameters

printOptions:PrintOptions — The printOptions that started the pdf