Completed
Last Updated: 27 Feb 2023 10:40 by ADMIN
Release R1 2023 SP1
Sachin
Created on: 01 Feb 2023 09:10
Category: WordsProcessing
Type: Bug Report
2
WordsProcessing: PdfFormatProvider: NETStandard: ArgumentOutOfRangeException is thrown when a document contains a table cell with a negative height
ArgumentOutOfRangeException is thrown when a document contains a table cell with a negative height. 
3 comments
ADMIN
Dimitar
Posted on: 03 Feb 2023 09:58

Hi Martin, 

Yes, we're working on a fix. If everything goes as expected the fix will be available in the next service pack. 

Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
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.

Martin
Posted on: 02 Feb 2023 12:53
Hi, I also reported this bug (ticket 1595759) which does not appear to be caused by a missing font.  Will there be a fix in the pipeline for this?
ADMIN
Dimitar
Posted on: 01 Feb 2023 12:33

Hi Sachin,

I have further investigated this and it is caused by a missing font. The document uses the Arial font which is smaller that the default Helvetica font which causes the invalid height. If you register the Arial font there will be no exception:

var fontData = File.ReadAllBytes(@"C:\fonts\\Arial.TTF");
FontsRepository.RegisterFont(new FontFamily("Arial"), FontStyles.Normal, FontWeights.Normal, fontData);

More information is available here: PdfProcessing - Fonts.

I hope this helps.

Regards,
Dimitar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.