Click here to Skip to main content
15,891,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

In My Web Application get the PDF from text on Page_Load but i got the error my Error Like this
Rebuild failed: trailer not found.; Original message: PDF startxref not found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
C#
Rebuild failed: trailer not found.; Original message: PDF startxref not found.

Source Error:

string pdfTemplate = olddoc;
PdfReader pdfReader = new PdfReader(pdfTemplate);
PdfStamper pdfStamper = new PdfStamper(pdfReader, new FileStream(
pdfTemplate, FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite));


how to solve my error..
please help me

thanks and regards
Santhosh
Posted
v2

1 solution

Rebuild failed: trailer not found.; Original message: PDF startxref not found.

That means that your source pdf is corrupt.
 
Share this answer
 

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