PDFRenderer

laika.render.pdf.PDFRenderer
class PDFRenderer[F[_]](fopFactory: FopFactory, dispatcher: Dispatcher[F])(implicit evidence$1: Async[F])

Responsible for the final step in producing the binary PDF format from a single XSL-FO input stream that represents the entire document and its navigation elements.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def render(foInput: String, output: BinaryOutput[F], metadata: DocumentMetadata, staticDocuments: Seq[BinaryInput[F]]): F[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.

Attributes

foInput

the input in XSL-FO format

metadata

the metadata associated with the PDF

output

the output to write the final result to

staticDocuments

additional files like fonts or images that the renderer should resolve for FOP which will be used to resolve relative paths