Project Wonder 5.0

er.pdf
Class ERPDFUtilities

java.lang.Object
  extended by er.pdf.ERPDFUtilities

public class ERPDFUtilities
extends java.lang.Object


Method Summary
static com.webobjects.foundation.NSData htmlAsPdf(java.lang.String content)
          Turns a valid XHTML document string and renders it as a PDF document.
static com.webobjects.foundation.NSData htmlAsPdf(java.lang.String content, java.lang.String encoding)
          Turns a valid XHTML document string and renders it as a PDF document.
static com.webobjects.foundation.NSData htmlAsPdf(java.lang.String content, java.lang.String encoding, java.lang.String urlPrefix)
          Turns a valid XHTML document string and renders it as a PDF document.
static com.webobjects.foundation.NSData htmlAsPdf(java.lang.String html, java.lang.String encoding, java.lang.String urlPrefix, com.webobjects.foundation.NSDictionary<java.lang.String,java.lang.Object> config)
          Turns a valid XHTML document string and renders it as a PDF document.
static com.webobjects.appserver.WOActionResults pageAsPdf(com.webobjects.appserver.WOElement element)
          Creates and returns a component that will render the output of the passed wocomponent as a PDF when response generation is invoked.
static com.webobjects.appserver.WOActionResults pageAsPdf(com.webobjects.appserver.WOElement element, com.webobjects.foundation.NSDictionary<java.lang.String,java.lang.Object> config)
          Creates and returns a page component that will render the output of the passed component as a PDF when appendToResponse() is called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

pageAsPdf

public static com.webobjects.appserver.WOActionResults pageAsPdf(com.webobjects.appserver.WOElement element)
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

pageAsPdf

public static com.webobjects.appserver.WOActionResults pageAsPdf(com.webobjects.appserver.WOElement element,
                                                                 com.webobjects.foundation.NSDictionary<java.lang.String,java.lang.Object> config)
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

htmlAsPdf

public static com.webobjects.foundation.NSData htmlAsPdf(java.lang.String content)
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.

htmlAsPdf

public static com.webobjects.foundation.NSData htmlAsPdf(java.lang.String content,
                                                         java.lang.String encoding)
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.

htmlAsPdf

public static com.webobjects.foundation.NSData htmlAsPdf(java.lang.String content,
                                                         java.lang.String encoding,
                                                         java.lang.String urlPrefix)
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.

htmlAsPdf

public static com.webobjects.foundation.NSData htmlAsPdf(java.lang.String html,
                                                         java.lang.String encoding,
                                                         java.lang.String urlPrefix,
                                                         com.webobjects.foundation.NSDictionary<java.lang.String,java.lang.Object> config)
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.

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.