Declined
Last Updated: 23 Sep 2021 08:46 by ADMIN
Created by: Linus
Comments: 2
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;
            }
        }

 

 

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)


Declined
Last Updated: 23 Aug 2021 12:00 by ADMIN
Created by: Bermando
Comments: 1
Category: WordsProcessing
Type: Bug Report
0
I am trying to open a docx and send it to a client using DocxFormatProvider. I only use Import and Export methods. Sometimes it works well, but some of docs once get their markup broken when opened on a client. No errors, no messages, no difference which version of word is used.
Declined
Last Updated: 19 Jul 2021 07:19 by ADMIN
Created by: Rakesh
Comments: 1
Category: PdfProcessing
Type: Bug Report
0

Hello Support,

I am generating pdf using PdfFormatProvider. In this i am passing html data which should be converted into pdf. For that I have written below code.

 

HtmlFormatProvider htmlFormatProvider = new HtmlFormatProvider();

RadFlowDocument htmlDocument = htmlFormatProvider.Import(htmlContentValue);

 var anotherpara = sectionBody.Blocks.AddParagraph();

editor.MoveToParagraphStart(anotherpara);

editor.InsertDocument(htmlDocument, options);

This works fine and also get pdf with expected value. But I would like to set spacing between two lines which I could not set or its not working. For that I have added below code.

I have also attached screenshot for it. like how its showing on pdf

editor.ParagraphFormatting.AutomaticSpacingAfter.LocalValue = false;
editor.ParagraphFormatting.AutomaticSpacingBefore.LocalValue = false;
editor.ParagraphFormatting.SpacingAfter.LocalValue = 0;
editor.ParagraphFormatting.SpacingBefore.LocalValue = 0;

 

So could you please let me know fix for it.

Declined
Last Updated: 07 Jul 2021 11:45 by ADMIN
Created by: Charles
Comments: 1
Category: PdfProcessing
Type: Feature Request
0

Attempting to open a Pdf document containing an unsupported action type results in a NotSupportedActionException being thrown (see PdfProcessing: Add support for actions of type Launch).

 

Can the behavior be changed to ignore unsupported actions and allow the document to be opened?

 
Declined
Last Updated: 06 Jul 2021 09:46 by ADMIN

Importing XLSX file in Blazor Web Assembly for .NET 5.0 is very slow.

 

          <InputFile OnChange="@HandleFileSelected" />

 

async Task HandleFileSelected(InputFileChangeEventArgs e)

{

   var ms = new MemoryStream((int)e.File.Size);
        Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.Xlsx.XlsxFormatProvider formatProvider = new Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.Xlsx.XlsxFormatProvider();
        using (Stream ey = e.File.OpenReadStream(e.File.Size))
        {
            await ey.CopyToAsync(ms,(int)e.File.Size);
            ey.Close();
        }
        oWorkbook = formatProvider.Import(ms);

  }  

Declined
Last Updated: 05 Mar 2021 08:49 by ADMIN
Created by: Greg Lesniakiewicz
Comments: 0
Category: PdfProcessing
Type: Feature Request
1

The common annotation properties are described in table "Entries common to all annotation dictionaries" of the Pdf specification.

Declined: Handling a partial annotation import-export could lead to exporting invalid PDF documents.

Declined
Last Updated: 12 Feb 2021 11:47 by ADMIN
Created by: Mecho
Comments: 2
Category: Telerik Document Processing
Type: Feature Request
0

We would like to have image formats like JPG, PNG and TIFF supported in addition to the PDF and Office document support in DPL.

Declined
Last Updated: 28 Jan 2021 06:51 by ADMIN
Created by: David
Comments: 3
Category: Telerik Document Processing
Type: Bug Report
0

Based on how Excel works, VLookup doesn't need to be sorted, if the 4th parameter is FALSE.  The 4th Parameter determines whether an approximate search is used or an exact match is used.  by default true is used and an approximate search requires a sorted range.  However, if set to FALSE,  then the range doesn't need to be sorted.  the value is checked against the entire column of cells and can be unsorted. 

We process spreadsheets that use VLOOKUP with 4th parameter set to FALSE and unsorted data in range.  These work in Excel, but not in Telerik Spreadsheet processing.

thanks, 

Declined
Last Updated: 13 Jan 2021 16:11 by ADMIN
Created by: Fadi
Comments: 1
Category: Telerik Document Processing
Type: Bug Report
1

Even without flattening the form the Barcode font gets lost.

Noticed that manually setting the font using the font name with spaces seems to work.

Other custom fonts on our form appear to work, however the Free 3 of 9 does not.

Declined
Last Updated: 05 Jan 2021 12:50 by ADMIN
Created by: Fadi
Comments: 3
Category: Telerik Document Processing
Type: Bug Report
1

Attached a project to demonstrate some issues we're seeing that need resolving in order to use the component.

1. When using a font like Tahoma on a form field, the value no longer displays or contains garbled text.

2. Input file is 24KB, output is 2MB!

3. Rotated field lose their rotation after being flattened.

4. Simulate merging with other files, 100 times the file is now 150MB! It's as though it's not re-using the fonts, but keeps adding the same ones.

5. when merging, but not flattening, the form fields are all lost on pages after page 1

Declined
Last Updated: 13 Apr 2020 09:11 by ADMIN
Created by: Deepa
Comments: 1
Category: WordsProcessing
Type: Bug Report
0

We are using the Telerik Xamarin UI components, which were released on 18th March 2020, for one of our micro-services hosted in Azure cloud, to convert rtf text to raw text. Currently we have Linux containers in Azure. The code which we are using is as follows -

var rtfFormatProvider = new RtfFormatProvider();

var txtFormatProvider = new TxtFormatProvider();

RadFlowDocument doc = null;

doc = rtfFormatProvider.Import(<<Base64_Inputstring>>.DecodeFromBase64String());

string result = txtFormatProvider.Export(doc);

However, we observed that the output of the above code is different when run on Windows platform as compared to when run on Linux platform. For Linux, the CR characters are not included in the raw text. We would like to see the same output for Linux as what we get for Windows, that is raw text with the CR characters. Is this something which can be fixed? Can you suggest a work-around for this issue?

I am attaching a sample input along with this mail, as well as the Windows output and the Linux output, for your reference.

Thanks,

Deepa 

 

 

Declined
Last Updated: 30 Mar 2020 07:08 by ADMIN
Created by: Rudá Cunha
Comments: 1
Category: Telerik Document Processing
Type: Feature Request
0

Allow to export the documents to image.

Being able to generate a thumbnail for example.

Declined
Last Updated: 05 Feb 2020 15:30 by ADMIN
Created by: Martin
Comments: 2
Category: SpreadProcessing
Type: Bug Report
0
Wrong measured column width when exporting to PDF after binaries version 2019.2.624.
Declined
Last Updated: 04 Feb 2020 08:14 by ADMIN
Created by: Dimitar
Comments: 1
Category: PdfProcessing
Type: Feature Request
1
Add support for R16 color space
Declined
Last Updated: 11 Dec 2019 06:32 by ADMIN
Created by: Benny
Comments: 1
Category: WordsProcessing
Type: Bug Report
2

Special chars (åäö) with PdfFormatProvider wont work.

Project submitted!

    public void SpecialCharsTest()
        {
            RadFlowDocument document = new RadFlowDocument();

            RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);

            editor.InsertText("Before text");
            editor.InsertText("åäö ÅÄÖ ☕"); // This line will not appear in the pdf 
            editor.InsertText("After text");
            using (Stream output = new FileStream("specialCharTest.pdf", FileMode.OpenOrCreate))
            {
                PdfFormatProvider provider = new PdfFormatProvider();
                provider.Export(document, output);
            }
        }

Special characters wont work :-/

Declined
Last Updated: 19 Nov 2019 08:55 by ADMIN

This element serves as a frame and allows the element to be positioned as a floating element. More information about it is available in section 22.9.2.18 ST_XAlign (Horizontal Alignment Location) of Open Office XML.

DECLINED: Duplicate with - Implement support for Text Frame Properties.

1 2 3