parallax/jsPDF

html: add width option

Open

#2,925 opened on Sep 23, 2020

View on GitHub
 (16 comments) (4 reactions) (2 assignees)JavaScript (4,596 forks)batch import
Feature Requestdifficulty:mediumhacktoberfest

Repository metrics

Stars
 (28,280 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Currently, there is no easy way to specify the desired width of the html in the PDF. The width can only be specified indirectly over html2canvas' scale option (similar to #2917). It would be very convenient, if we could simply supply a width (in PDF units) to the html method. This option should basically function like the width of a browser window (which means, it should not scale the content).

Contributor guide