java.lang.Object
de.srsoftware.document.processor.FileProcessor
de.srsoftware.document.processor.weasyprint.WeasyDoc
Alle implementierten Schnittstellen:
de.srsoftware.document.api.Document

public abstract class WeasyDoc extends FileProcessor
PDF compiled from HTML via weasyprint
  • Konstruktordetails

    • WeasyDoc

      public WeasyDoc()
      create a new instance
  • Methodendetails

    • command

      protected List<String> command(Map<String,Object> data)
      Provides the command for rendering using weasyprint. Defaults to: weasyprint [input filename] [output filename] Additional arguments can be added as String List in the value for the key "additional_args" of the data map.
      Angegeben von:
      command in Klasse FileProcessor
      Parameter:
      data - context for the command creation
      Gibt zurück:
      the weasyprint compile command
    • description

      public String description()
    • id

      public String id()
    • mimeType

      public String mimeType()
    • software

      public String software()
      Beschreibung aus Klasse kopiert: FileProcessor
      Provides the name of the software used with the processor instance
      Angegeben von:
      software in Klasse FileProcessor
      Gibt zurück:
      a software string
    • source

      protected abstract de.srsoftware.document.api.Document source()
      the source code document
      Gibt zurück:
      the source code document
    • timeout

      public Duration timeout()
      Beschreibung aus Klasse kopiert: FileProcessor
      the default timeout for the render process
      Setzt außer Kraft:
      timeout in Klasse FileProcessor
      Gibt zurück:
      a duration of 10 seconds