Duplicated
Last Updated: 21 Mar 2025 10:50 by ADMIN
Sri
Created on: 20 Mar 2025 16:59
Category: WordsProcessing
Type: Bug Report
0
Cannot save RadFlowDocument to PDF

Hi, we are facing the below error when trying to convert a Docx file type to PDF type using RadFlowDocument in C# (.NET core 6.0). Please can you help with this issue as soon as possible?

Error message: "Negative height, if converting in Net Standard try registering a smaller font (Parameter 'height: -17.908799999999985')"

 

C# code snippet for reference:

  BinaryFormatProviderBase<RadFlowDocument> provider;
  RadFlowDocument document;

  using (var output = new MemoryStream())
  {
      provider.Export(document, output)

  }

Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
1 comment
ADMIN
Yoan
Posted on: 21 Mar 2025 10:50

Hello Sri,

Thank you for reaching out. I am sorry to hear that you are experiencing unexpected results. The exception you are experiencing seems to be related to an issue on our part that we already have reported and logged as a task in our Feedback Portal - WordsProcessing: PdfFormatProvider: ArgumentOutOfRangeException: 'Negative height, if converting in Net Standard try registering a smaller font'.

Please accept my apologies for the inconvenience and setbacks this might be causing you. If it fits your scenario, the only alternative I can suggest is to try using another font, as mentioned in the exception message. If you are interested in this task please know that you can also subscribe to it through the "Follow" button so you can track its status by receiving notification about future updates.

Thank you in advance for your patience and understanding.

Regards,
Yoan
Progress Telerik

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