Hello,
We use the current Vintasoft Image SDK 14.0 in our software and one of our customers reported a problem with a PDF file. We get hieroglyphs displayed on several pages. If we open the PDF file with Adobe Reader or PDF X-Change, for example, the pages look normal. In the Vintasoft demos we get the pages displayed normally in NET 4, samples compiled for NET 8 also with hieroglyphs.
Could it be due to the change in standard encoding from NET 7? Encoding.Default has since been UTF8. Or can you please help us solve this problem.
Correct Page
http://www.wpm-ingenieure.de/downloads/ ... orrect.jpg
Wrong Page
http://www.wpm-ingenieure.de/downloads/ ... _wrong.jpg
Testfile PDF
http://www.wpm-ingenieure.de/downloads/ ... tasoft.pdf
Open PDF Document in NET 8 with hieroglyphs
Moderator: Alex
Re: Open PDF Document in NET 8 with hieroglyphs
Hello,
Thank you for information and PDF document.
We was not able to reproduce the problem in VintaSoft PDF Reader Demo for .NET Framework 4 ("[SdkInstallPath]\VintaSoft\Imaging .NET 14.0\Bin\DotNet4\AnyCPU\PdfReaderDemo.exe") and VintaSoft PDF Reader Demo for .NET 9 ("[SdkInstallPath]\VintaSoft\Imaging .NET 14.0\Bin\DotNet9\AnyCPU\PdfReaderDemo.exe").
Please run VintaSoft PDF Reader Demo for .NET 9 ("[SdkInstallPath]\VintaSoft\Imaging .NET 14.0\Bin\DotNet9\AnyCPU\PdfReaderDemo.exe") and see the result. If SDK will have problems, you will see red text with errors in the bottom panel of application window.
I think you have problem because PDF document has external fonts and SDK was not able to find external fonts in your system.
Please read how to work with external fonts in PDF document here: https://www.vintasoft.com/docs/vsimagin ... ument.html
Also please see source codes of CustomFontProgramsController class in VintaSoft PDF Reader Demo: "[SdkInstallPath]\VintaSoft\Imaging .NET 14.0\Examples\WinForms\CSharp\PdfReaderDemo\DemosCommonCode.Imaging\Fonts\CustomFontProgramsController.cs".
Let me know if you will have any question or problem.
Best regards, Alexander
Thank you for information and PDF document.
We was not able to reproduce the problem in VintaSoft PDF Reader Demo for .NET Framework 4 ("[SdkInstallPath]\VintaSoft\Imaging .NET 14.0\Bin\DotNet4\AnyCPU\PdfReaderDemo.exe") and VintaSoft PDF Reader Demo for .NET 9 ("[SdkInstallPath]\VintaSoft\Imaging .NET 14.0\Bin\DotNet9\AnyCPU\PdfReaderDemo.exe").
Please run VintaSoft PDF Reader Demo for .NET 9 ("[SdkInstallPath]\VintaSoft\Imaging .NET 14.0\Bin\DotNet9\AnyCPU\PdfReaderDemo.exe") and see the result. If SDK will have problems, you will see red text with errors in the bottom panel of application window.
I think you have problem because PDF document has external fonts and SDK was not able to find external fonts in your system.
Please read how to work with external fonts in PDF document here: https://www.vintasoft.com/docs/vsimagin ... ument.html
Also please see source codes of CustomFontProgramsController class in VintaSoft PDF Reader Demo: "[SdkInstallPath]\VintaSoft\Imaging .NET 14.0\Examples\WinForms\CSharp\PdfReaderDemo\DemosCommonCode.Imaging\Fonts\CustomFontProgramsController.cs".
Let me know if you will have any question or problem.
Best regards, Alexander
Re: Open PDF Document in NET 8 with hieroglyphs
Hello,
we have the VintaSoft\Imaging .NET 14.0\Examples\WPF\CSharp\WpfPdfEditorDemo\WpfPdfEditorDemo.Net9.csproj
opened, entered license key, recompiled. This means we can always reproduce it. The same is true in our software, which runs on .NET 8 basis. Always reproducible on our other clients. The error does not occur in Adobe Reader or other PDF viewing programs.
I also had this problem twice with VintaSoft\Imaging .NET 14.0\Bin\DotNet9\AnyCPU\PdfEditorDemo.exe. I've already tried to figure out reproduction steps, but it worked a few times without any problems.

we have the VintaSoft\Imaging .NET 14.0\Examples\WPF\CSharp\WpfPdfEditorDemo\WpfPdfEditorDemo.Net9.csproj
opened, entered license key, recompiled. This means we can always reproduce it. The same is true in our software, which runs on .NET 8 basis. Always reproducible on our other clients. The error does not occur in Adobe Reader or other PDF viewing programs.
I also had this problem twice with VintaSoft\Imaging .NET 14.0\Bin\DotNet9\AnyCPU\PdfEditorDemo.exe. I've already tried to figure out reproduction steps, but it worked a few times without any problems.

Re: Open PDF Document in NET 8 with hieroglyphs
Hello,
First of all, sorry for long delay - we "lost" your message due New Year holidays.
Please do the following test:

Please let me know result of your test.
Best regards, Alexander
First of all, sorry for long delay - we "lost" your message due New Year holidays.
Please do the following test:
- Run VintaSoft PDF Reader Demo ("[SdkInstallPath]\VintaSoft\Imaging .NET 14.0\Bin\DotNet9\AnyCPU\PdfReaderDemo.exe").
- Open PDF document "testfile_vintasoft.pdf"
- Go to 5-th page.
- Open "Text extraction" tab in Side panel.
- Set mouse cursor to the symbol "Σ" in PDF page and see information about text symbol.
- Select "Document => Fonts.." menu and see information about fonts of PDF document.

Please let me know result of your test.
Best regards, Alexander
Re: Open PDF Document in NET 8 with hieroglyphs
In Bin\DotNet 9\Any CPU\ projects the PDF file is displayed correctly. If I open the project in the Examples\WPF\CSharp\WpfPdfEditorDemo\ folder in Visual Studio and open the PDF file, it is displayed incorrectly, as described. The same applies if we use the Imaging SDK in our software base .NET 8.
The result of the test is

The result of the test is
