使用 abcPDF 打印横向 html->pdf
我试图从 html 输出中获取由 abcPDF 生成的 PDF,以纵向打印前三页,然后将第四页切换为横向。
通过将此类应用于第四页的 div,我已经能够将 html 切换为第四页的横向:
.PageLandscape {
width="100%";
height="100%";
filter: progid:DXImageTransform.Microsoft.BasicImage(Rotation=3);
size:landscape;
}
但是,当 abcPDF 将 html 转换为 pdf 时,第四页仍然是纵向。
有什么想法或提示吗?
谢谢!
I am trying to get a PDF generated by abcPDF from html output to print the first three pages in portrait and then switch the fourth page to landscape.
I have been able to get the html to switch into landscape for the fourth page by applying this class to a div that is the 4th page:
.PageLandscape {
width="100%";
height="100%";
filter: progid:DXImageTransform.Microsoft.BasicImage(Rotation=3);
size:landscape;
}
When abcPDF converts the html to pdf though, the 4th page is still portait.
Any thoughts or hints?
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不确定您是否找到了答案,但这就是我的做法。从 ABCpdf 文档中找到它:
http://www.websupergoo.com /helppdf7net/source/4-examples/08-landscape.htm
我认为您可以对每页应用转换。但是因为您在整个文档上设置了旋转(保存时),所以不确定是否可以在每页的基础上进行旋转。
Not sure if you've found the answer, but here's how I did it. Found it from ABCpdf docs:
http://www.websupergoo.com/helppdf7net/source/4-examples/08-landscape.htm
I think you can apply the transformation per page. But because you set rotation on the document as a whole (when you save) not sure you can do it on a per page basis.
ABCpdf 似乎有时会忽略样式类。
也许你可以尝试内联样式元素?
ABCpdf seems to sometimes ignore style-classes.
Maybe you could you try an inline style-element?