Completed
Last Updated: 21 Sep 2021 07:23 by ADMIN
Release R3 2021 SP1

When replacing a string within a run that is not the first element in the paragraph an unexpected behavior occurs.

These are the known cases:

  • System.ArgumentOutOfRangeException: 'Index and length must refer to a location within the string. Parameter name: length'
  • System.InvalidCastException: 'Unable to cast object of type <<type>> to type 'Telerik.Windows.Documents.Flow.Model.Run'.'
  • Shifted text.
Pending Review
Last Updated: 21 Sep 2021 06:41 by Linus
Created by: Linus
Comments: 0
Category: PdfProcessing
Type: Bug Report
0

Hi, 

 

I am trying to convert a HTML body to a PDF using HtmlFormatProvider and PdfFormatProvider. 

It works well when I try to create a pdf with "normal" characters, but when I use characters like "åäö" the characters is either missing or replaced with other character. 

I have found a similiar issue but that was due to the fact that the person was using .net core I am using .net framework. 

Am I missing something when I am converting it to a PDF or is there a limitation with special characters like "åäö". 

 


        private string CreateAndStorePdf(string htmlBody)
        {
            Telerik.Windows.Documents.Extensibility.JpegImageConverterBase jpegImageConverter = new Telerik.Documents.ImageUtils.JpegImageConverter();
            Telerik.Windows.Documents.Extensibility.FixedExtensibilityManager.JpegImageConverter = jpegImageConverter;

            var provider = new HtmlFormatProvider();
            var document = provider.Import(htmlBody);
            var exportProvider = new PdfFormatProvider();
            var fixedExportProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();
            var fileName = "_original.pdf";

            try
            {
                using (var outputStream = new MemoryStream())
                {
                    exportProvider.Export(fixedExportProvider.ExportToFixedDocument(document), outputStream);
                    outputStream.Seek(0, SeekOrigin.Begin);
                    var pdfBytes = new BinaryReader(outputStream).ReadBytes((int)outputStream.Length);

                    return fileName;
                }
            }
            catch (Exception ex)
            {
                Log.Error(ex, "The pdf could not be created.");
                return null;
            }
        }

 

 

Completed
Last Updated: 20 Sep 2021 14:07 by ADMIN
Release R3 2021 SP1
When importing a document containing a destination that does not refer to a formula an exception is thrown: System.NullReferenceException: 'Object reference not set to an instance of an object.'
Completed
Last Updated: 20 Sep 2021 13:33 by ADMIN
Release R3 2021 SP1

ArgumentOutOfRangeException is thrown when importing a document because of wrongly parsing to Unicode mapping.

System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index'

Declined
Last Updated: 20 Sep 2021 11:58 by ADMIN
Created by: Tobias
Comments: 4
Category: Telerik Document Processing
Type: Bug Report
0

Dear Team,

when I create a pdf with your components (RadFixedDocument, RadFixedPage, FixedContentEditor) I cannot add a "german umlaut" in that report because then it cannot be viewed in your own pdfviewer- control (the exception is: Error loading document: Position is out of range).

I tried to solve this in "creating/ loading" arial.ttf as external font (even this is weird as idea), but this also did not work.

What is your solution for that?

I bought the Telerik components basically for PDF processing, this simply needs to work...

Many thanks for an urgent update on that!

Best regards

Tobias

Declined
Last Updated: 20 Sep 2021 11:55 by ADMIN

I have read that there limitations to PDF files being imported, however, the file being imported  was generated with FixedContentEditor, so, should be able to import?

  using (Stream stream = Stream)
        {
          try
          {
            this._document = provider.Import(stream);
            _InputPath = fileName;
          }
          catch (Exception e)
          {
            Errors = "Could not open file " + fileName + ": " + e.Message;
            this._document = null;
          }
        }
      }
Declined
Last Updated: 20 Sep 2021 11:54 by ADMIN

I open an xlsx file thant i create with Excel and edit it with RadSpreadProcessing.

But then I can't display it in a RadSpreadsheet control. An error is displayed during execution on localhost.

Here is the error message:

Exception non gérée à la ligne 48298, colonne 17 dans http://localhost:53844/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:fr-CA:bc17b1ef-7a1b-49cb-a795-5f1c64597a53:ea597d4b:b25378d2;Telerik.Web.UI:fr-CA:b87b3d5b-f055-4852-bdaf-fef1991116e3:16e4e7cd:f7645509:22a6274a:33715776:8674cba1:7c926187:88144a7a:b7778d6c:c08e9f8a:59462f1:a51ee93e:24ee1bba:6d43f6d9:e330518b:1e771326:8e6f0d33:864068a5:6a6d718d:58366029:874f8ea2:4cd1fec6:71188da4:487c8be1:670fdf23:d944e0f6:c442ac3f:ec7335e:2e4adfe5:b4bec146:77613e24:69667591:a4c22f0d:e0037459:2f872eeb:75e7b247:b9057478:e8e3832e:728f182a:c4143936:5f88c545:6ed7f76e:32b48b51:935ec1c6:f0c58c30:16dc2978:1611ddf4:1bfaef2a:26e91122:c128760b:a7e79140:185812c5:f46195d3:6b3f73b3:2003d0b8:aa288e2d:b092aa46:a44b89c4:c8618e41:e4f8f289:1a73651d:16d8629e:2bef5fcc:a9b7ace7:e085fe68:52af31a4:5fa37e7e

0x800a139e - Erreur d’exécution JavaScript: Expected op «,» but found punc «;» (input: IF(D8<>0;E8/D8;0))

If a workbook was created with Excel, an error prevents it from being opened programmatically in a RadSpreadsheet control. Although it can be displayed there using the open button of the RadSpreadsheet. This error does not occur if you copy the contents of this workbook into the RadSpreadsheet and then save it with the save button on the RadSpreadsheet.

Thank you

Declined
Last Updated: 20 Sep 2021 11:51 by ADMIN
Created by: Pedro
Comments: 1
Category: Telerik Document Processing
Type: Bug Report
0

I'm trying to use RadWordsProcessing

to replace text in .docx documents.

when i try to open a document i have an error:

BadImageFormatException: Could not load file or assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Reference assemblies should not be loaded for execution.  They can only be loaded in the Reflection-only loader context. (0x80131058)


Unplanned
Last Updated: 17 Sep 2021 11:48 by ADMIN

When using the RadFixedDocument.Pages.AddPage() method RadFixedPages are created without PageNumber set.

Such behavior is observed when exporting a RadFlowDocument to a RadFixedDocument using the ExportToFixedDocument as well.

Completed
Last Updated: 15 Sep 2021 13:15 by ADMIN
Release R3 2021

To reproduce: 

CultureInfo cultureInfo = new CultureInfo("es-ES");
var currency_info = new Telerik.Windows.Documents.Spreadsheet.Formatting.FormatStrings.CurrencyInfo(cultureInfo.NumberFormat.CurrencySymbol, cultureInfo);
var format_string = AccountingFormatStringBuilder.BuildFormatString(currency_info, cultureInfo.NumberFormat.CurrencyDecimalDigits);
 
Completed
Last Updated: 15 Sep 2021 13:14 by ADMIN
Release R3 2021
Unable to import field with a name the is not specified as a literal string
Completed
Last Updated: 15 Sep 2021 13:13 by ADMIN
Release R3 2021
Exception when importing a file with LabColor gradients 
Unplanned
Last Updated: 14 Sep 2021 09:37 by ADMIN
Exception when exporting empty table to HTML.
Unplanned
Last Updated: 13 Sep 2021 09:28 by ADMIN

When exporting merged documents when they are imported with ImportSettings set to ReadOnDemand an exception is thrown: KeyNotFoundException: 'The given key was not present in the dictionary.'

 

Unplanned
Last Updated: 07 Sep 2021 11:12 by ADMIN
Documents produced using PdfProcessing that contain a signature field and are password-protected, cannot be imported. An InvalidOperationException is thrown with the message "Password is not correct." when importing with PdfProcessing; Adobe Acrobat also doesn't recognize the password.
Unplanned
Last Updated: 07 Sep 2021 06:51 by ADMIN
Wrong image size and position when converting specific document to pdf
Completed
Last Updated: 03 Sep 2021 12:34 by ADMIN
Release R3 2021

Exporting sheet properties corrupts the file and it cannot be opened in Excel.

In the latest version we export: 

<sheetPr>
<pageSetUpPr fitToPage="true" />
<tabColor rgb="FF92D050" />
</sheetPr>

Excel cannot read this and tries to recover the file unsuccessfully. This works in R3 2020.

Unplanned
Last Updated: 03 Sep 2021 08:35 by ADMIN
When importing a document containing a formula with an invalid reference an exception is thrown: FormulaParseException: 'Unused input [A1] after attempting to parse the formula [#REF!A1]'
Unplanned
Last Updated: 03 Sep 2021 07:03 by ADMIN
Exception when trying to import a file generated with the PdfProcessing library from HTML
Completed
Last Updated: 01 Sep 2021 12:14 by ADMIN
Release R2 2021
ArgumentException with 'Invalid value' message is thrown when importing invalid font sizes from docx, e.g.

<w:sz></w:sz> 

(the 'val' attribute should be specified according to the OOXML specification).

Instead, such documents could be imported as the w:sz is not specified, similar to the behavior of MS Word.
1 2 3 4 5 6