Packages

object PDF extends PDF

The default instance of the PDF renderer.

Linear Supertypes
PDF, RenderResultProcessor[FOWriter], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PDF
  2. PDF
  3. RenderResultProcessor
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. lazy val defaultFopFactory: FopFactory

    The reusable default instance of the FOP factory that the PDF renderer will use if no custom factory is specified.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. val factory: XSLFO
    Definition Classes
    PDF → RenderResultProcessor
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def process(tree: DocumentTree, render: (DocumentTree, OutputConfig) ⇒ Unit, output: BinaryOutput): Unit

    Processes the tree by first using the specified render function to produce the interim XSL-FO result, transform the result to PDF and write it to the specified final output.

    Processes the tree by first using the specified render function to produce the interim XSL-FO result, transform the result to PDF and write it to the specified final output.

    tree

    the tree to render to the interim result

    render

    the render function for producing the interim XSL-FO result

    output

    the output to write the final result to

    Definition Classes
    PDF → RenderResultProcessor
  18. def renderFO(tree: DocumentTree, render: (DocumentTree, OutputConfig) ⇒ Unit): String

    Renders the XSL-FO that serves as a basis for producing the final PDF output.

    Renders the XSL-FO that serves as a basis for producing the final PDF output. The result should include the output from rendering the documents in the specified tree as well as any additional insertions like bookmarks or table of content. For this the specified DocumentTree instance may get modified before passing it to the given render function.

    The default implementation simply delegates to an instance of FOforPDF which uses a PDFConfig object to drive configuration. In rare cases where the flexibility provided by PDFConfig is not sufficient, this method may get overridden.

    tree

    the document tree serving as input for the renderer

    render

    the actual render function for producing the XSL-FO output

    returns

    the rendered XSL-FO as a String

    Attributes
    protected
    Definition Classes
    PDF
  19. def renderPDF(foInput: Input, output: BinaryOutput, sourcePaths: Seq[String] = Nil): Unit

    Render the given XSL-FO input as a PDF to the specified binary output.

    Render the given XSL-FO input as a PDF to the specified binary output. The optional sourcePaths argument may be used to allow resolving relative paths for loading external files like images.

    foInput

    the input in XSL-FO format

    output

    the output to write the final result to

    sourcePaths

    the paths that may contain files like images which will be used to resolve relative paths

    Definition Classes
    PDF
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  25. def withConfig(config: PDFConfig): PDF

    Allows to specify configuration options like insertion of bookmarks or table of content.

    Allows to specify configuration options like insertion of bookmarks or table of content.

    Definition Classes
    PDF
  26. def withFopFactory(fopFactory: FopFactory): PDF

    Allows to specify a custom FopFactory in case additional configuration is required for custom fonts, stemmers or other FOP features.

    Allows to specify a custom FopFactory in case additional configuration is required for custom fonts, stemmers or other FOP features.

    A FopFactory is a fairly heavy-weight object, so make sure that you reuse either the FopFactory instance itself or the resulting PDF renderer. In case you do not specify a custom factory, Laika ensures that the default factory is reused between renderers.

    Definition Classes
    PDF
  27. def withMessageLevel(level: MessageLevel): PDF

    Specifies the minimum required level for a system message to get included into the output by this renderer.

    Specifies the minimum required level for a system message to get included into the output by this renderer.

    Definition Classes
    PDF

Inherited from PDF

Inherited from RenderResultProcessor[FOWriter]

Inherited from AnyRef

Inherited from Any

Ungrouped