Bug in PdfFormatProvider.Import when using non-english culture

1 Answer 58 Views
PdfProcessing
Anton
Top achievements
Rank 1
Anton asked on 30 Nov 2022, 08:13 AM

Hi,
there seems to be a bug in the PdfFormatProvider Import code.

When using swedish culture, the read PDF data has incorrect position matrices, causing all elements to disappear.

Example ("en"):

{
    "Matrix": {
        "IsIdentity": false,
        "Determinant": 1.7777777777777777,
        "M11": 1.3333333333333333,
        "M12": 0,
        "M21": 0,
        "M22": 1.3333333333333333,
        "OffsetX": 0,
        "OffsetY": 0
    }
}

Example ("sv"):

{
    "Matrix": {
        "IsIdentity": false,
        "Determinant": 0,
        "M11": 1.3333333333333333,
        "M12": 0,
        "M21": 0,
        "M22": 0,
        "OffsetX": 0,
        "OffsetY": 0
    }
}

 

Once found, it's easy for me to work around this big.
But it looks like it should be easy to fix!

Thanks,
Anton

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 02 Dec 2022, 07:13 AM

Hello Anton,

I tried to reproduce the described behavior by creating a sample import-export app and changing the CurrentUICulture to "sv" but with the sample document I used the document content is positioned as expected (check the attached project).

Maybe I am missing something in the setup or the mentioned behavior is document-specific, so please, update the attached sample project in order to help us to reproduce the described behavior and/or send us the document causing it.

I must assure you that we treat all client files in a strictly confidential manner and for testing purposes only.

Looking forward to hearing from you.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
PdfProcessing
Asked by
Anton
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or