重建失败:未找到预告片。原始消息:未找到PDF startxref。 [英] Rebuild failed: trailer not found.; Original message: PDF startxref not found.

查看:3301
本文介绍了重建失败:未找到预告片。原始消息:未找到PDF startxref。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



在我的Web应用程序中,从Page_Load上的文本中获取PDF,但我收到错误我的错误就像这样

重建失败:未找到预告片。原始消息:找不到PDF startxref。

描述:执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

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.

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));





如何解决我的错误..

请帮帮我



谢谢和问候

Santhosh



how to solve my error..
please help me

thanks and regards
Santhosh

推荐答案

Rebuild失败:找不到预告片。原始消息:未找到PDF startxref。



这意味着您的源pdf已损坏。
Rebuild failed: trailer not found.; Original message: PDF startxref not found.

That means that your source pdf is corrupt.


这篇关于重建失败:未找到预告片。原始消息:未找到PDF startxref。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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