Duplicated
Last Updated: 03 Mar 2025 13:49 by ADMIN
Sebastian
Created on: 03 Mar 2025 12:59
Category: UI for WPF
Type: Bug Report
0
PDF Import / Export

Hello together,

I am experiencing a bug with the following use case:

  1. Import an existing PDF file
  2. Modify the PDF file
  3. Export the PDF file

When upgrading Telerik.Documents.Fixed from version 2024.3.806 to version 2024.4.1106 the exported PDF file is missing different parts of the originally imported PDF file or even results in a complete "messy" file. Input and output files are view with Adobe Acrobat, Google Chrome, Edge...all showing the same result.

Even omitting step 2 (i.e. I only import and directly export the PDF file) results in the same bug after.

I do not use any special import or export setting to reproduce the error. But even with applying different import/export settings I could not change the buggy outcome.

 

var bytes = File.ReadAllBytes(@"C:\temp\in.pdf");
var formatProvider = new PdfFormatProvider();
var document = formatProvider.Import(bytes, TimeSpan.FromSeconds(20));
var outBytes = formatProvider.Export(document, TimeSpan.FromSeconds(20));
File.WriteAllBytes(@"C:\temp\out.pdf", outBytes);

See the attached file for example, import it and export it (via code snippet above).

With version 2024.3.806 everything works fine - and as I am not seeing any relevant breaking changes or other release information regarding this issue, I am a little bit lost with what I could do to solve the issue..

Thanks for your support!

 

Attached Files:
Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
1 comment
ADMIN
Martin Ivanov
Posted on: 03 Mar 2025 13:49

Hello Sebastian,

This is related to an issue with cultures that use the comma character as decimal separator (as de-DE). The issue was introduced with the release you mentioned (from November 2025) and it was fixed with one of the Preview releases after that. I cannot recreate the problem in the latest release (2025.1.211). Can you test this on your side to double check if the problem is resolved also in your original application?

Regards,
Martin Ivanov
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!