Duplicated
Last Updated: 21 Mar 2025 10:50 by ADMIN
Created by: Sri
Comments: 1
Category: WordsProcessing
Type: Bug Report
0

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)

  }

Unplanned
Last Updated: 05 Mar 2025 12:03 by Jason
Unplanned
Last Updated: 03 Mar 2025 09:09 by Vijayaprasad
Created by: Vijayaprasad
Comments: 0
Category: WordsProcessing
Type: Feature Request
1
Preserve the comments when exporting the DOCX file to PDF format
Unplanned
Last Updated: 21 Jan 2025 16:20 by ADMIN

Getting an exception message when trying to view a document as a PDF using the PdfFormatProvider which started happening only after upgrading Telerik to the latest version, 7.1.0 in Telerik UI for Blazor.

Exception Message:

width should be greater or equal than 0. (Parameter 'width')

I have copied the stack trace and source of the exception below:

 

Source: Telerik.Documents.Fixed

Stack Trace:    at Telerik.Windows.Documents.Fixed.Model.Editing.Layout.ContentElementLayoutElementBase`1.DrawHighlights(DrawLayoutElementContext context)
   at Telerik.Windows.Documents.Fixed.Model.Editing.Layout.ContentElementLayoutElementBase`1.Draw(DrawLayoutElementContext context)
   at Telerik.Windows.Documents.Fixed.Model.Editing.Block.Draw(IEnumerable`1 lineElements, DrawLayoutElementContext context)
   at Telerik.Windows.Documents.Fixed.Model.Editing.Block.DrawInternal(FixedContentEditor editor, Rect boundingRect)
   at Telerik.Windows.Documents.Fixed.Model.Editing.Block.Telerik.Windows.Documents.Fixed.Model.Editing.Flow.IDrawArrangedElement.DrawArrangedElement(FixedContentEditor editor, Rect boundingRect)
   at Telerik.Windows.Documents.Fixed.Model.Editing.Flow.SectionInfo.DrawArrangedElement(IBlockElement blockElement, Double horizontalOffset, Double verticalOffset)
   at Telerik.Windows.Documents.Fixed.Model.Editing.Utils.SectionInfoExtensions.DrawArrangedElements(SectionInfo section, IList`1 elements)
   at Telerik.Windows.Documents.Fixed.Model.Editing.RadFixedDocumentEditor.Draw()
   at Telerik.Windows.Documents.Fixed.Model.Editing.RadFixedDocumentEditor.StartNewPage(SectionProperties sectionProperties)
   at Telerik.Windows.Documents.Fixed.Model.Editing.RadFixedDocumentEditor.StartNewPage()
   at Telerik.Windows.Documents.Fixed.Model.Editing.RadFixedDocumentEditor.AddBlock(IBlockElement blockElement, CancellationToken cancellationToken)
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExporter.ExportSection(Section section, RadFixedDocumentEditor editor)
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExporter.ExportDocument(RadFlowDocument document, RadFixedDocumentEditor editor)
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExporter.ExportInternal()
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExporter.Export()
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider.ExportToFixedDocument(RadFlowDocument document, CancellationToken cancellationToken)
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider.ExportOverride(RadFlowDocument document, Stream output, CancellationToken cancellationToken)
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider.ExportOverride(RadFlowDocument document, Stream output)
   at Telerik.Windows.Documents.Common.FormatProviders.FormatProviderBase`1.Export(T document, Stream output)
   at Telerik.Windows.Documents.Common.FormatProviders.BinaryFormatProviderBase`1.Export(T document)

Unplanned
Last Updated: 20 Jan 2025 14:49 by ADMIN
Implement repeating header row for tables when exporting with PdfFormatProvider.

A similar functionality can be achieved using the editing API of RadPdfProcessing. There is attached a project showing a sample implementation. More details are available in the forum post at http://www.telerik.com/forums/repeat-table-heading-after-page-break#kH616fyAKUiDl6WAknUILg
Unplanned
Last Updated: 17 Jan 2025 13:25 by Yim
NetFramework: HtmlFormatProvider: VerificationException is thrown when importing specific HTML document.
Unplanned
Last Updated: 17 Jan 2025 11:42 by Simone

When you have indented and justified text, it is wrongly exported to PDF:

			<w:pPr>
				<w:spacing w:after="0" w:line="360" w:lineRule="auto"/>
				<w:ind w:left="567" w:right="567" w:firstLine="708"/>
				<w:jc w:val="both"/>
				<w:rPr>
					<w:rFonts w:ascii="Calibri Light" w:hAnsi="Calibri Light"/>
				</w:rPr>
			</w:pPr>

Unplanned
Last Updated: 14 Jan 2025 12:15 by Simone
			<w:r w:rsidRPr="00CB6D35">
				<w:rPr>
					<w:rFonts w:ascii="Calibri Light" w:hAnsi="Calibri Light"/>
					<w:b/>
					<w:u w:val="double"/>
				</w:rPr>
				<w:t>DETTAGLIO SINISTRO</w:t>
			</w:r>

Unplanned
Last Updated: 14 Jan 2025 11:52 by Simone
Export a DOCX file with a header containing image and multiline text. After exporting it to PDF format, the header text is smashed. 
Unplanned
Last Updated: 23 Dec 2024 11:38 by Xiao
Importing a DOCX file (produced by the WPF RichTextBox) and exporting it to PDF format results in changed font from Arial to Verdana for some parts of the document.
Completed
Last Updated: 13 Dec 2024 15:10 by ADMIN
Release R2 2023
This is only reproducible when the Run contains an empty string. If the paragraph is empty or the Run contains a space, everything is working correctly.

Workaround: Remove all empty runs from the document.
Unplanned
Last Updated: 13 Dec 2024 11:18 by Deepak Subhedar
Created by: Deepak Subhedar
Comments: 0
Category: WordsProcessing
Type: Feature Request
0
TxtFormatProvider: Expose Encoding settings.
Unplanned
Last Updated: 27 Nov 2024 14:34 by Robert

(DIPs) is a unit type used in RadWordsProcessing when setting the FontSize of a Run. If you load a document with font size in WordPad set to 20 points and load it to RadFlowDocument, its value is converted by using the following method. If the RTF content stored from WordPad is saved to HTML format with WordPad, the font size is preserved with the same unit: style='font-size:20.0pt;'. We should add the option to control the font size unit when exporting to HTML format.

Completed
Last Updated: 13 Nov 2024 09:22 by ADMIN
Release 2024.2.426 (2024 Q2)
The list indentation is wrong when exporting several levels to PDF
Completed
Last Updated: 13 Nov 2024 08:50 by ADMIN
Release 2024.4.1106 (Q4 2024)
ArgumentException is thrown during MailMerge with a document with inline shape in its header/footer.
Completed
Last Updated: 13 Nov 2024 08:49 by ADMIN
Release 2024.4.1106 (Q4 2024)
IndexOutOfRangeException is thrown when importing a specific document.
Completed
Last Updated: 13 Nov 2024 08:03 by ADMIN
Release 2024.4.1106 (Q4 2024)

At this point, the justify alignment is not supported. Provide the ability to export text with this setting.

This functionality is dependent on PdfProcessing: Provide API for setting the text alignment to Justify

Completed
Last Updated: 13 Nov 2024 08:03 by ADMIN
Release 2024.4.1106 (Q4 2024)
When exporting a document containing a table with no cells an exception is thrown: System.InvalidOperationException: 'Sequence contains no elements'
Completed
Last Updated: 13 Nov 2024 08:02 by ADMIN
Release 2024.4.1106 (Q4 2024)
ADMIN
Created by: Peshito
Comments: 0
Category: WordsProcessing
Type: Bug Report
0
Exporting documents to with headings to RTF does not properly export some heading colors in the document.