Skip to content

Commit

Permalink
add meta tag parsing to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser authored and jdpace committed Jul 16, 2010
1 parent 5dfcdf2 commit 0260049
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -32,7 +32,10 @@ Create PDFs using plain old HTML+CSS. Uses [wkhtmltopdf](http://github.com/antia
# Stylesheets can not be added when source is provided as a URL of File.
kit = PDFKit.new('http://google.com')
kit = PDFKit.new(File.new('/path/to/html'))


# Add any kind of option through meta tags
PDFKit.new('<html><head><meta name="pdfkit-header" content="file:///tmp/foo/bar /></head></html>")

## Middleware

PDFKit comes with a middleware that allows users to get a PDF view of any page on your site by appending .pdf to the URL.
Expand Down

0 comments on commit 0260049

Please sign in to comment.