简体   繁体   English

使用iTextSharp将整个页面导出为pdf

[英]exporting whole page to pdf with iTextSharp

i need to export a pages to pdf, the pages will have grids on as they are reports. 我需要将页面导出为pdf,这些页面将是网格,因为它们是报表。 i have had a look at iTextSharp which for exporting JUST the grid works a treat. 我看了一下iTextSharp,它仅用于导出网格就可以了。 But when i try it with the whole page, it gets a bit confused with the images in the page, and doesnt deal with the styling particularly well.. is it possible to export a whole page in one hit, or do i have to add in page elements on a per element basis? 但是,当我尝试使用整个页面时,它与页面中的图像有些混淆,并且不能很好地处理样式..是否可以一次点击就导出整个页面,还是我必须添加在每个元素的页面元素中?

thanks 谢谢

nat t

您将必须添加元素并设置其格式...记住,html!= pdf ...因此您必须提供该翻译

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM