I`m using RazorPDF from the NuGet Package and i want to know how i can set the page to render as landscape.

The code of the page is something like this:

<itext pagesize="A4">
..... some content .....
</itext>
有帮助吗?

解决方案

Add this attribute

orientation="landscape"
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top