使用abcPDF打印格局html-> pdf [英] Printing landscape html->pdf using abcPDF

查看:296
本文介绍了使用abcPDF打印格局html-> pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试从html输出中获取由abcPDF生成的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.

通过将此类应用于第4页的div,可以获取HTML转换为第4页的格局:

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;
}

当abcPDF将html转换为pdf时,第4页仍然是portait。

When abcPDF converts the html to pdf though, the 4th page is still portait.

任何想法或暗示?

谢谢!

推荐答案

不知道你是否找到了答案,但这里是我怎么做的。从ABCpdf文件找到它:

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打印格局html-> pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆