https://github.com/posixpascal/chrome-printing-bug
Code repository for http://stackoverflow.com/questions/32849271/prawn-chrome-printing-pdf-causes-it-to-shrink
https://github.com/posixpascal/chrome-printing-bug
Last synced: 4 months ago
JSON representation
Code repository for http://stackoverflow.com/questions/32849271/prawn-chrome-printing-pdf-causes-it-to-shrink
- Host: GitHub
- URL: https://github.com/posixpascal/chrome-printing-bug
- Owner: posixpascal
- Created: 2015-10-04T12:08:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-04T12:14:11.000Z (over 9 years ago)
- Last Synced: 2025-03-09T00:39:51.474Z (4 months ago)
- Language: Ruby
- Size: 121 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PDF Printing in Chrome/Firefox isn't pixel-perfect.
### What you need to reproduce
- ruby
- prawn.rb
- a 2515px wide (300dpi) image (provided by repository)
- bundler### Install
Install using `bundle install`### Running
Run `ruby pdf_gen.rb` to create the PDF (it's stored as output.pdf in current folder).
Print the PDF 2 times (once with Chrome Printer Dialog & once with the system one). The result should be different (in my case it is).