Printing landscape html->pdf using abcPDF

家住魔仙堡 提交于 2019-12-06 11:22:11

问题


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!


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/3953821/printing-landscape-html-pdf-using-abcpdf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!