README in ezprint-0.2.2 vs README in ezprint-0.3.1

- old
+ new

@@ -54,9 +54,30 @@ layout: false template: the template for the current controller/action stylesheets: none + +Using another PDF processor +=========================== + +While ezprint has been designed with PDFKit in mind, other PDF processors +such as princexml can be used. A princexml processor is included and can be used +by setting Ezprint.processor = :prince in an initializer. + +It's also easy to create your own processor: + +module Ezprint + module Processors + class MyProcessor < Base + def self.process(html_string, options = {}) + # Code to return a PDF string from an html string here. + end + end + end +end + + Credits ======= Michael Bleigh for writing the awesome princely plugin, which most of the code is reworked from.