使用abcPDF打印landscape html-> pdf

Joh*_* Mc 2 html css landscape abcpdf

我想从html输出中获取由abcPDF生成的PDF,以纵向打印前三页,然后将第四页切换为横向.

通过将此类应用于第4页的div,我已经能够将html切换到第四页的横向:

.PageLandscape {
    width="100%";
    height="100%";
    filter: progid:DXImageTransform.Microsoft.BasicImage(Rotation=3);
    size:landscape;
}
Run Code Online (Sandbox Code Playgroud)

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

有什么想法或提示吗?

谢谢!

joh*_*oss 5

不确定你是否找到了答案,但这是我如何做到的.从ABCpdf文档中找到它:

http://www.websupergoo.com/helppdf7net/source/4-examples/08-landscape.htm

我想你可以在每页应用转换.但是因为您在整个文档上设置了旋转(当您保存时),不确定是否可以在每页的基础上进行.