parallax/jsPDF

html: add width option

Open

#2,925 创建于 2020年9月23日

在 GitHub 查看
 (16 评论) (4 反应) (2 负责人)JavaScript (4,596 fork)batch import
Feature Requestdifficulty:mediumhacktoberfest

仓库指标

Star
 (28,280 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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).

贡献者指南