在Windows应用程序(C#)中使用iTextSharp.dll读取较大的pdf文件(大于2 gb) [英] read larger pdf files(more than 2 gb) using iTextSharp.dll in windows application(c#)

查看:210
本文介绍了在Windows应用程序(C#)中使用iTextSharp.dll读取较大的pdf文件(大于2 gb)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我无法阅读大型pdf文件(超过2GB)[正在使用C#工作]
我正在使用iTextSharp.dll读取pdf文件.
我正在阅读pdf文件,以显示其中的页数.
在阅读时出现以下错误:

Hi,

I am not able to read large pdf files(more than 2GB)[am working on c#]
I am using iTextSharp.dll to read pdf files.
I am reading the pdf file to display number of pages in it.
while reading i am getting error as below:

Rebuild failed: Non-negative number required.<br />
Parameter name: value; Original message: PDF Startxref not found.



如何读取较大的pdf文件(超过2GB).

问候,



how can i read large pdf files(more than 2GB).

Regards,

推荐答案

有一个非常非常好的机会,你不能这样做. .NET框架有一个内置的限制,即任何单个对象都不能超过2GB.由于iTextSharp是用C#编写的,因此iTextSharp很有可能达到该限制,特别是如果您对不超过2Gb的类似文件没有问题的话.
可能值得看看 iText网站 [ ^ ],看看是否还有其他人正在解决此问题.
There is a very, very good chance that you can''t. The .NET framework has a built in limitation, that no single object can exceed 2GB. Since iTextSharp is written in C#, it is quite possible that iTextSharp is hitting that limit, particularly if you are not having a problem with similar files that do not exceed 2Gb.
It may be worth having a look at the iText website[^] and seeing if anyone else is hitting this problem.


这篇关于在Windows应用程序(C#)中使用iTextSharp.dll读取较大的pdf文件(大于2 gb)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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