Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个非常宽的页面,大约 2000-3000 像素,我想使用 PhantomJS 将其打印为 PDF。无论我将视口设置多宽,页面大小都保持不变,而内容却超出了实际的打印区域。这听起来对我来说是正确的。但是有没有办法正确打印非常宽的页面?
谢谢!
使用 paperSize 属性来增加 phantomjs 将打印到的页面的大小。