Click here to Skip to main content
16,012,223 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.


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

Regards,
Posted
Updated 18-Oct-11 21:19pm
v2
Comments
André Kraak 19-Oct-11 3:21am    
Does your code work on smaller files?

Please post the code that is generating the problem.
If you wish to change your question use the Improve Question button.
nm.nagaraju 19-Oct-11 3:46am    
yes, my code is working for smaller files which have less than 2 GB.
but it does not work for larger files which have more than 2 GB.

1 solution

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.
 
Share this answer
 
Comments
nm.nagaraju 19-Oct-11 4:53am    
is there any alternate to read pdf files more than 2 GB.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900