Open
Description
Version: 1.8-current
Original reporter: Iain W. Bird
When using very high browserwidth options, e.g. to allow high DPI background images:
htmldoc --browserwidth 3307 --webpage test2.htm --outfile test2.pdf --size A4 --jpeg=70 --no-title
images become very small unless specified in percent.
This patch allows image sizes to be specified in "in", "mm" or "px" (96DPI). If units are not specified, the pre-existing behaviour is retained.
Use in HTML as follows, e.g.
TEST IMAGE SIZE NATIVE
TEST IMAGE SIZE 80%
TEST IMAGE SIZE 1 INCH
TABLE WIDTH 1in |
TEST IMAGE SIZE 2x1 INCH
TABLE WIDTH 2in |
TEST IMAGE HEIGHT 50mm
TEST IMAGE WIDTH 144pt
TEST IMAGE WIDTH 12pc
TEST IMAGE WIDTH 530px
TEST IMAGE WIDTH 530
Patch file has been tested under cygwin and MS-VC 2013 for the htmldoc executable