使用rotativa从HTML生成PFD。 [英] Generating PFD from HTML using rotativa.

查看:127
本文介绍了使用rotativa从HTML生成PFD。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在MVC应用程序中使用Rotativa来生成PDF。我通过NuGet安装了1.6.4的Rotativa。现在我可以使用Rotativa轻松地将我的html页面下载为PDF格式。

但是我想将我的pdf页面分为两个部分(左和右)。使用左侧部分直到分页符然后跳转到页面的右侧部分,然后跳到下一页。



这可以使用Rotativa吗?



感谢您提前的帮助。



我尝试了什么:



我在MVC应用程序中使用Rotativa来生成PDF。我通过NuGet安装了1.6.4的Rotativa。现在我可以使用Rotativa轻松地将我的html页面下载为PDF格式。

但是我想将我的pdf页面分为两个部分(左和右)。使用左侧部分直到分页符然后跳转到页面的右侧部分然后跳到下一页。

Hi,

I am using Rotativa in an MVC application to generate PDF. I installed 1.6.4 of Rotativa via NuGet. Now I can easily download my html page as PDF using Rotativa.
but I would like to divide my pdf page into two section(Left and right). use the left section until page break then jump to the right section of the page and then to the next page.

Is this possible do this using Rotativa ??

Thanks for your help in advance.

What I have tried:

I am using Rotativa in an MVC application to generate PDF. I installed 1.6.4 of Rotativa via NuGet. Now I can easily download my html page as PDF using Rotativa.
but I would like to divide my pdf page into two section(Left and right). use the left section until page break then jump to the right section of the page and then to the next page.

推荐答案

您必须在视图中进行分离,以这种格式设计你的html视图,然后发送它rotativa pdf generation。在rotativa中没有需要的东西,你的要求可以在View Itself中解决。
You have to do that seperation in view itself, design your html view in that format, then send it rotativa pdf generation. no things in needed in rotativa, your requirement can be solved in View Itself.


这篇关于使用rotativa从HTML生成PFD。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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