Avoid divide by zero
Created by printing a page in Chrome to PDF, then: /usr/bin/gs -q -sDEVICE=tiffg3 -sOutputFile=total-pages-zero.tif -dNOPAUSE /tmp/test.pdf -c quit
Test TIFF with PageNumber 0 0
Save to a self.tempfile() so it's properly cleaned up afterwards
Merge pull request #976 from hugovk/tiff_ints

Fix saving TIFF with PageNumber total = 0