Itextsharp重建失败 - PDF阅读器 [英] Itextsharp rebuild failed - PDF reader

查看:155
本文介绍了Itextsharp重建失败 - PDF阅读器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我收到

重建失败:对于int32,值太大或太小。原始消息:对于int32,值太大或太小。

在C#MVC中使用

 ITextSharp 

Pdfreader来读取pdf文件。 br />


以下是我的代码,

 PdfReader pdfReader = new PdfReader(fileName); 





帮助解决此问题。我只是针对特定文档获取此问题。但是我可以在Adobe Arcobat文档中加载相同的文档。

谢谢,

Baskar G



我尝试过:



 PdfReader pdfReader = new PdfReader(fileName); 

解决方案

由于您只是使用特定文档,因此很明显ITextSharp无法处理的那些文档中存在某些内容。



期待社区解决这个特殊问题,因为可用的信息是不可能的。



你需要弄清楚自己是什么不同的关于这些文件(来自那些工作)。



(或者,将int32更改为int64并处理其后果)。

Hi,

I am getting

rebuild failed: value was either too large or too small for an int32.; original message: value was either too large or too small for an int32.

While tring to read the pdf file using

ITextSharp

Pdfreader in C# MVC.

Below is my code,

PdfReader pdfReader = new PdfReader(fileName);



Help to solve this issue. I am only getting this issue for specific documents. But I am able to load the same document in Adobe Arcobat Document.
Thanks,
Baskar G

What I have tried:

PdfReader pdfReader = new PdfReader(fileName);

解决方案

Since you are only getting it with "specific documents", it's obvious there is "something" in THOSE documents that ITextSharp cannot handle.

Expecting the community to solve this particular problem given the available information is impossible.

You need to figure out yourself what is "different" about these documents (from the ones that "work").

(Or, change the int32 to an int64 and deal with the consequences of that).


这篇关于Itextsharp重建失败 - PDF阅读器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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