None of the .net samples works.
So I deinstalled everything, rebooted and reinstalled it.
I noticed some changes:
Installation now is in C:\Program Files (x86)\PDF-XChange instead of C:\Program Files (x86)\Tracker..
The DLL-Name has changed to PXCEditorCore.x64.dll instead of PDFXEditCore.x64.dll
none of them is reflected in the weblink (https://sdkhelp.pdf-xchange.com/view/Main_Page) in installationfolder.
The .net csharp FullDemo sample still don't work.
Error: System.InvalidCastException: 'Die angegebene Umwandlung ist ungültig.'
at MainFrm.cs line 541:
pxcInst = (PDFXEdit.IPXC_Inst)pdfCtl.Inst.GetExtension("PXC");
Stacktrace
at PDFXEdit.PXV_InstClass.GetExtension(String sName)
at FullDemo.MainFrm..ctor() in C:\Program Files (x86)\PDF-XChange\Editor SDK\Samples\CSharp\FullDemo\MainFrm.cs:line 541
at FullDemo.Program.Main() in C:\Program Files (x86)\PDF-XChange\Editor SDK\Samples\CSharp\FullDemo\Program.cs:line 20
during build I get a
Code: Select all
1>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(3081,5): warning MSB3305: Processing COM reference "PDFXEdit" from path "C:\Program Files (x86)\PDF-XChange\Editor SDK\Bin\PXCEditorCore.x64.dll". Interface 'IAFS_FilesAutoConversionCallback' is marked as [dual], but does not derive from IDispatch. It will be converted as an IUnknown-derived interface.
1>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(3081,5): warning MSB3305: Processing COM reference "PDFXEdit" from path "C:\Program Files (x86)\PDF-XChange\Editor SDK\Bin\PXCEditorCore.x64.dll". Interface 'IAFS_Dlg' is marked as [dual], but does not derive from IDispatch. It will be converted as an IUnknown-derived interface.
1>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(3081,5): warning MSB3305: Processing COM reference "PDFXEdit" from path "C:\Program Files (x86)\PDF-XChange\Editor SDK\Bin\PXCEditorCore.x64.dll". The type library importer could not convert the signature for the member 'IXC_PageBlockData.pData'.
1>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(3081,5): warning MSB3305: Processing COM reference "PDFXEdit" from path "C:\Program Files (x86)\PDF-XChange\Editor SDK\Bin\PXCEditorCore.x64.dll". At least one of the arguments for 'IPXS_PDFVariant.GetString_Unsafe' cannot be marshaled by the runtime marshaler. Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate.
1>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(3081,5): warning MSB3305: Processing COM reference "PDFXEdit" from path "C:\Program Files (x86)\PDF-XChange\Editor SDK\Bin\PXCEditorCore.x64.dll". At least one of the arguments for 'IPXC_SecurityHandler.GetAuthData' cannot be marshaled by the runtime marshaler. Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate.
1>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(3081,5): warning MSB3305: Processing COM reference "PDFXEdit" from path "C:\Program Files (x86)\PDF-XChange\Editor SDK\Bin\PXCEditorCore.x64.dll". Type library importer encountered a property getter 'TotalModifications' on type 'PDFXEdit.IPXC_DocSrcInfo' without a valid return type. The importer will attempt to import this property as a method instead.
1>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(3081,5): warning MSB3305: Processing COM reference "PDFXEdit" from path "C:\Program Files (x86)\PDF-XChange\Editor SDK\Bin\PXCEditorCore.x64.dll". The type library importer could not convert the signature for the member '_CERT_CONTEXT.pbCertEncoded'.
1>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(3081,5): warning MSB3305: Processing COM reference "PDFXEdit" from path "C:\Program Files (x86)\PDF-XChange\Editor SDK\Bin\PXCEditorCore.x64.dll". The type library importer could not convert the signature for the member '_CERT_CONTEXT.pCertInfo'.
...Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
type="win32"
name="PDFXEditCore.x86.X"
version="1.0.0.0" />
<file name = "PDFXEditCore.x86.dll">
best regards
Stephan