Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/157.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/420.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';无法加载PDF文档 我在Ubuntu 17.10上有一个关于C++中的PodoFo LIB版本0.95的问题。 我尝试通过扫描仪加载PDF扫描文档(对于未扫描的文档,它工作正常),但加载文档时出现问题 pdf::Document::Document(const std::string &fname) { try { memDocument.Load(fname.c_str()); LTRACE << "created pdf::Document from file"; } catch (const PoDoFo::PdfError &error) { LERROR << "Error while loading PDF document(" << fname << "): " << PoDoFo::PdfError::ErrorMessage(error.GetError()); } }_C++_Pdf_Podofo - Fatal编程技术网

Can';无法加载PDF文档 我在Ubuntu 17.10上有一个关于C++中的PodoFo LIB版本0.95的问题。 我尝试通过扫描仪加载PDF扫描文档(对于未扫描的文档,它工作正常),但加载文档时出现问题 pdf::Document::Document(const std::string &fname) { try { memDocument.Load(fname.c_str()); LTRACE << "created pdf::Document from file"; } catch (const PoDoFo::PdfError &error) { LERROR << "Error while loading PDF document(" << fname << "): " << PoDoFo::PdfError::ErrorMessage(error.GetError()); } }

Can';无法加载PDF文档 我在Ubuntu 17.10上有一个关于C++中的PodoFo LIB版本0.95的问题。 我尝试通过扫描仪加载PDF扫描文档(对于未扫描的文档,它工作正常),但加载文档时出现问题 pdf::Document::Document(const std::string &fname) { try { memDocument.Load(fname.c_str()); LTRACE << "created pdf::Document from file"; } catch (const PoDoFo::PdfError &error) { LERROR << "Error while loading PDF document(" << fname << "): " << PoDoFo::PdfError::ErrorMessage(error.GetError()); } },c++,pdf,podofo,C++,Pdf,Podofo,有人有同样的问题吗?或者有什么想法 警告消息 WARNING: There are more objects (15) in this XRef table than specified in the size key of the trailer directory (8)! <</ID[<DC15F9B0B1D5684CB68315FC2D09425E<DC15F9B0B1D5684CB68315FC2D09425E>]/Info 7 0 R/Root 9 0

有人有同样的问题吗?或者有什么想法

警告消息

WARNING: There are more objects (15) in this XRef table than specified in the size key of the trailer directory (8)!
<</ID[<DC15F9B0B1D5684CB68315FC2D09425E<DC15F9B0B1D5684CB68315FC2D09425E>]/Info 7 0 R/Root 9 0 R/Size 8>>
警告:此外部参照表中的对象(15)多于拖车目录(8)的大小键中指定的对象!

为什么是c++14标签?这与c++14有什么关系?错误消息听起来像是pdf文件有问题,交叉引用表中的对象比预告片中声明的多。你能分享它进行分析吗?是的,你是对的,但我尝试过的每个文档都有相同的问题(当然大小不同)。我在一个文档中手动更改了ref大小,并正确加载了它,但我将有数百个文档,因此有一些简单的方法可以自动修复它?如果它们都有相同的损坏,它们是否可能由相同的软件进行后期处理,并带有导致此问题的错误?那么首先你应该停止这一切。关于自动修复:如果您尝试用PoDoFo加载这些文档,警告中包含了非常清楚的信息,说明必须更改哪些内容。使用常规文件io应该很容易实现这种更改。
WARNING: There are more objects (15) in this XRef table than specified in the size key of the trailer directory (8)!
<</ID[<DC15F9B0B1D5684CB68315FC2D09425E<DC15F9B0B1D5684CB68315FC2D09425E>]/Info 7 0 R/Root 9 0 R/Size 8>>