Skip to content

helgoboss/droplib-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Droplib PDF

Adds PDF support to droplib

Available processors

html-to-pdf

Converts HTML to PDF.

Processor arguments:

  • context: Context
  • Any other symbol provided when constructing the processor

template-function

Evaluates to a function that renders a template with the given arguments.

Symbols available in template:

  • context: Context
  • args: Object containing all the arguments which have been passed to the function template
  • Any other symbol provided when constructing the processor

...

Todos

  • Write documentation
  • Error messages, e.g. if descriptor is invalid (always automatically including processed file)
  • Glob support
  • Expose processors in a better way
  • Give default IDs to processors
  • Get all standard processors
  • Factor out heavy processors into separate modules (e.g. html-to-pdf)