Free Support Forum - aspose.com

Convert PDF to Word using Aspsoe.PDF for C++ - System.:Exception: key

Hi,

I’m using Aspose.PDF for C++ 20.5.
Converted this PDF file error with message:
System.:Exception: key.

This is my test code:

auto lic = System::MakeObject<Aspose::Pdf::License>();
lic->SetLicense("J:\\Works\\AsposeSDK\\Bin\\Aspose.Total.C++.lic");

auto options = System::MakeObject<Aspose::Pdf::DocSaveOptions>();
options->set_Format(Aspose::Pdf::DocSaveOptions::DocFormat::DocX);

auto doc = System::MakeObject<Aspose::Pdf::Document>(u"testpdf.pdf");
doc->Save("testpdf-save.docx", options);

隐私.技术标.zip (6.2 MB)

@kngstr

Would you please try using Aspose.PDF for C++ 20.8 in your environment and in case issue still persists, please share complete exception details with us. We will further proceed to assist you accordingly.

@asad.ali

My license was expired. Can not use 20.8.
No more exception details, only this message.

If converting some pages, it’s OK. For example, 1 to 50 pages, it works fine.

@asad.ali

Another file with the same exception.

bug2.zip (1.7 MB)

@kngstr

We are checking the scenario in our environment and will get back to you shortly.

@asad.ali

Another exception found.

RAX = 0000000000000000 RBX = 0000026D590B11D0 RCX = 0000000000000000 RDX = 0000000000000000 RSI = 0000026D579458D0 RDI = 0000026D590B1608 R8  = 0000000000000000 R9  = 0000000000000000 R10 = 0000000000000000 R11 = 0000000000000000 R12 = 0000000000000000 R13 = 0000000000000000 R14 = 0000026D590B1618 R15 = 0000026D579458E0 RIP = 00007FF7545122C3 RSP = 000000AAD05FF910 RBP = 0000000000000000 EFL = 00000000 



 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf11fca35()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf11fb5bf()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf11ff37b()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf120104a()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf12000df()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf1200eac()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf11fb3ad()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf1203176()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf11c40ca()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf11dd9f3()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf11dda89()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf11c40ca()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf11fb4b1()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf113642e()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf11258e9()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf10a0fff()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf10715f7()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbf1867ef7()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbef2208f5()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbef1cb0e9()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbef2011a1()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbef21f730()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbef202239()	未知
 	Aspose.Pdf.Cpp_vc14x64.dll!00007ffbef21f9d8()	未知
>	pdfTest.exe!main() 行 149	C++
 	[外部代码]	



“pdfTest.exe”(Win32): 已加载“F:\StudyDiskJ\Works\AsposeSDK\AsposeSDK\Testsdk\Testsdk\x64\Release\pdfTest.exe”。已加载符号。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\ntdll.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\kernel32.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\KernelBase.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\ucrtbase.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\vcruntime140.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\msvcp140.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“F:\StudyDiskJ\Works\AsposeSDK\AsposeSDK\Testsdk\Testsdk\x64\Release\aspose_cpp_vc14x64.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\bcrypt.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\advapi32.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\msvcrt.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\sechost.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\rpcrt4.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\crypt32.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“F:\StudyDiskJ\Works\AsposeSDK\AsposeSDK\Testsdk\Testsdk\x64\Release\Aspose.Pdf.Cpp_vc14x64.dll”。模块已生成,不包含符号。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\msasn1.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\user32.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\win32u.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\gdi32.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\gdi32full.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\combase.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\msvcp_win.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\bcryptprimitives.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\ws2_32.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\ole32.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\dbghelp.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\imm32.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\DWrite.dll”。无法查找或打开 PDB 文件。
“pdfTest.exe”(Win32): 已加载“C:\Windows\System32\cryptbase.dll”。无法查找或打开 PDB 文件。
0x00007FFC534DA719 处(位于 pdfTest.exe 中)引发的异常: Microsoft C++ 异常: System::ExceptionWrapper<System::Details_NotSupportedException>,位于内存位置 0x000000AAD05F92F8 处。
0x00007FFBF11FCA35 (Aspose.Pdf.Cpp_vc14x64.dll)处(位于 pdfTest.exe 中)引发的异常: 0xC0000005: 读取位置 0xFFFFFFFFFFFFFFFF 时发生访问冲突。

盐高投评级报告.zip (1.6 MB)

@kngstr

We were able to replicate the issue in our environment with Aspose.PDF for C++ 20.8. There is a bug when .pdf document with 100 and more pages cannot be saved in other formats correctlly. The issue lays in “common part” aspose_cpp_vc14.dll. We have logged following ticket in our issue tracking system for the issues:

  • PDFCPP-1395
  • PDFCPP-1396

We will further work over resolving them and keep you posted with the status of their correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

@asad.ali

Thanks.

Will I get some hotfix for 20.7? Since this is a bug.
Is this bug affact Words or Slides?

@kngstr

We are investigating against your required information and will inform you soon.

@kngstr

There is specific feature for interrupting sleeping threads that sometimes works incorrectly.
We do not think that Aspose.Slides and Aspose.Words use it at present time.

We regret that it would not be possible as it will require hotfix for CodePorting.Native.API and all other products (Slides, Words, etc) and teams are already working on 20.9 release.

@asad.ali

Thanks.
I queried purchase forum.
No need hotfixes.
I can get fixed version.

@asad.ali

Another file with Access violation at address 000007FEB8E7A895 in module 'Aspose.PDF.Cpp_vc14x64.dll'. Read of address 0000000000000000
关于组织申报2020年度市级示范家庭农场和市农民合作社示范社的通知(1).zip (236.7 KB)

@kngstr

A ticket as PDFCPP-1410 has been logged in our issue management system for your recently shared file. We will further review it and let you know as soon as it is resolved. Please give us some time.

We apologize for your inconvenience.

@asad.ali

Another file with Access violation at address 000007FECAB9A895 in module 'Aspose.PDF.Cpp_vc14x64.dll'. Read of address 0000000000000000
三期二标2包双城服务区.zip (471.9 KB)

@kngstr

This issue has been logged as PDFCPP-1416 in our issue tracking system. We will let you know as soon as it is resolved. We apologize for the inconvenience faced.

@asad.ali

Another file with Access violation at address 00007FF96E1D9E65 in module 'Aspose.PDF.Cpp_vc14x64.dll'. Read of address 0000000000000018
按专家意见修改版-国网河南检修公司500千伏香山变电站消防水池基坑.zip (1.3 MB)

@kngstr

We have updated the information under the ticket ID (PDFCPP-1416) which was logged for this information and will inform you once we have additional updates regarding its resolution.

The issues you have found earlier (filed as PDFCPP-1395,PDFCPP-1396) have been fixed in Aspose.PDF for C++ 20.9.