简体   繁体   English

使用Aspose.Cells在Excel中读取嵌入的PDF文件

[英]Read the embed PDF file in Excel using Aspose.Cells

I'm trying to read PDF files in Excel and save it to local using Aspose.Cells for C# , but when I read the PDF's ObjectSourceFullName , it's "*. bin", and other attributes also not show anything identify it's PDF. 我正在尝试在Excel中读取PDF文件,并使用Aspose.Cells for C#将其保存到本地,但是当我读取PDF的ObjectSourceFullName时 ,它是“ * 。bin ”,其他属性也没有显示任何标识它的PDF。 How this happened and how to solve this? 这是怎么发生的以及如何解决呢? Please help me, Thanks!!! 请帮助我,谢谢!!!

You can identify the type of OLE object with its ClassIdentifier property. 您可以使用其ClassIdentifier属性标识OLE对象的类型。 It is a 16-bytes number. 它是一个16字节的数字。 Convert it to GUID and then check what this GUID means inside the Windows Registry. 将其转换为GUID,然后在Windows注册表中检查此GUID的含义。

Guid guid = new Guid(wb.Worksheets[0].OleObjects[0].ClassIdentifier);

The following screenshot explains that {b801ca65-a1fc-11d0-85ad-444553540000} actually means Adobe Acrobat Document . 以下屏幕截图说明了{b801ca65-a1fc-11d0-85ad-444553540000}实际上是指Adobe Acrobat Document

在此处输入图片说明

Note: I am working as Developer Evangelist at Aspose 注意: 我在Aspose担任开发人员布道者

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM