Printing landscape html->pdf using abcPDF

2019-04-14 17:42发布

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!

2条回答
▲ chillily
2楼-- · 2019-04-14 18:47

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.

查看更多
不美不萌又怎样
3楼-- · 2019-04-14 18:48

ABCpdf seems to sometimes ignore style-classes. Maybe you could you try an inline style-element?

查看更多
登录 后发表回答