ERPDFUtilities Class Reference

List of all members.

Static Public Member Functions

static NSData htmlAsPdf (String html, String encoding, String urlPrefix, NSDictionary< String, Object > config)
static NSData htmlAsPdf (String content, String encoding, String urlPrefix)
static NSData htmlAsPdf (String content, String encoding)
static NSData htmlAsPdf (String content)
static WOActionResults pageAsPdf (WOElement element, NSDictionary< String, Object > config)
static WOActionResults pageAsPdf (WOElement element)

Private Member Functions

 ERPDFUtilities ()


Constructor & Destructor Documentation

ERPDFUtilities (  )  [private]


Member Function Documentation

static NSData htmlAsPdf ( String  html,
String  encoding,
String  urlPrefix,
NSDictionary< String, Object >  config 
) [static]

Turns a valid XHTML document string and renders it as a PDF document.

Parameters:
html a string containing valid XHTML markup
encoding the encoding type used by the html string
urlPrefix the URL prefix to prepend to unqualified URLs in the html
config a dictionary of binding values used to configure the rending engine specified in the "engine" key. See the chosen rendering engine's documentation for available config options.
Returns:
an NSData object containing raw PDF data.

static NSData htmlAsPdf ( String  content,
String  encoding,
String  urlPrefix 
) [static]

Turns a valid XHTML document string and renders it as a PDF document.

Parameters:
content a string containing valid XHTML markup
encoding the encoding type used by the html string
urlPrefix the URL prefix to prepend to unqualified URLs in the html
Returns:
an NSData object containing raw PDF data.

static NSData htmlAsPdf ( String  content,
String  encoding 
) [static]

Turns a valid XHTML document string and renders it as a PDF document.

Parameters:
content a string containing valid XHTML markup
encoding the encoding type used by the html string
Returns:
an NSData object containing raw PDF data.

static NSData htmlAsPdf ( String  content  )  [static]

Turns a valid XHTML document string and renders it as a PDF document.

Parameters:
content a string containing valid XHTML markup
Returns:
an NSData object containing raw PDF data.

static WOActionResults pageAsPdf ( WOElement  element,
NSDictionary< String, Object >  config 
) [static]

Creates and returns a page component that will render the output of the passed component as a PDF when appendToResponse() is called. Note that the output of the passed component needs to be valid XHTML.

Parameters:
element the component you want to render as a PDF
config a dictionary of binding values to use to configure the PDFWrapper component and subsequent rending engine. See PDFWrapper for details on available bindings.
Returns:
a component that wraps the passed element and renders the output as a PDF

static WOActionResults pageAsPdf ( WOElement  element  )  [static]

Creates and returns a component that will render the output of the passed wocomponent as a PDF when response generation is invoked. Note that the output of the passed component needs to be valid XHTML.

Parameters:
element the component you want to render as a PDF
Returns:
an element that wraps the passed component and renders the output as a PDF


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:26 2012 for Project Wonder by  doxygen 1.5.8