pdf-slave 1.0.0.0 → 1.0.1.0
raw patch · 4 files changed
+34/−2 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Text.PDF.Slave: BundleFormatError :: FilePath -> ParseException -> PDFRenderException
+ Text.PDF.Slave: BundleOrTemplateFormatError :: FilePath -> ParseException -> ParseException -> PDFRenderException
+ Text.PDF.Slave: InputFileFormatError :: FilePath -> String -> PDFRenderException
+ Text.PDF.Slave: TemplateFormatError :: FilePath -> ParseException -> PDFRenderException
+ Text.PDF.Slave: data PDFRenderException
+ Text.PDF.Slave: displayPDFRenderException :: PDFRenderException -> String
+ Text.PDF.Slave: renderBundleOrTemplateFromFile :: FilePath -> Maybe Value -> Sh PDFContent
+ Text.PDF.Slave: renderBundleToPDF :: Template -> FilePath -> Sh PDFContent
+ Text.PDF.Slave: renderFromFileBundleToPDF :: FilePath -> Maybe Value -> Sh PDFContent
+ Text.PDF.Slave: renderFromFileToPDF :: FilePath -> Sh PDFContent
Files
- CHANGELOG.md +6/−1
- README.md +21/−0
- pdf-slave.cabal +1/−1
- src/Text/PDF/Slave.hs +6/−0
CHANGELOG.md view
@@ -1,4 +1,9 @@-0.1.0.0+1.0.1.0+=======++* Added missing reexports into head module.++1.0.0.0 ======= * Initial release.
README.md view
@@ -16,6 +16,27 @@ - Other `.htex` templates that compiles into TeX and includes into parent template. - Other `.htex` templates that compiles into PDF and includes into parent template. +Description+===========++In many real-world systems we need to produce reports, cheques and other documents+to users. One possible solution is rendering LaTeX files, but it is not flexible+enough as you need to solve burden with generation of LaTeX file from varying inputs,+manage static files like images and handling dependencies between pieces of document.++The new tool takes the burden away. Now all static files and generation code is+located within a single template project, that describes how to build your PDF document in a declaretive way.++Common work flow with pdf-slave:+* Develop template from several LaTeX files with embedded Haskell (thanks to haskintex+ tool)++* Pack the template project into bundle all-in file.++* Distribute the bundle (for instance to your service server).++* Call pdf-slave with bundle and inputs in JSON file to generate PDF document.+ Template reference ==================
pdf-slave.cabal view
@@ -1,5 +1,5 @@ name: pdf-slave-version: 1.0.0.0+version: 1.0.1.0 synopsis: Tool to generate PDF from haskintex templates and YAML input description: Please see README.md homepage: https://github.com/NCrashed/pdf-slave#readme
src/Text/PDF/Slave.hs view
@@ -16,6 +16,12 @@ , storeTemplateInFiles -- * Template rendering to PDF , PDFContent+ , PDFRenderException(..)+ , displayPDFRenderException+ , renderBundleOrTemplateFromFile+ , renderFromFileBundleToPDF+ , renderFromFileToPDF+ , renderBundleToPDF , renderTemplateToPDF ) where