Generator

Hello there,

I have applied the singleton pattern to create an instance (called generator) that provides 2 methods to generate pdf out of the require document parts/specifications such as: path to the document, document specifications, document parts and the styleesheets applied to the pdf document to be generated.

This way one calls PDFKit.generator.generate(...) or PDFKit.generator.pdf(...) and it returns the pdf document file.

The different between the two methods is that one receive the document parts(header, body, etc..) as strings(.generate) and the other (.pdf) as paths to the html files.

If I could have feedback from your regarding this feature would be great! I hope that you will decided to merge it with master. if not..all good anyways...:)

All The Best,

frankapimenta