Completed
Last Updated: 25 Mar 2020 15:08 by ADMIN
Release LIB 2020.1.316 (03/16/2020)
deepa
Created on: 20 Feb 2020 23:14
Category: PdfProcessing
Type: Bug Report
1
PdfProcessing: Ignored whitespaces when exporting text with char spacing

I am using the trial version of telerik for xamarin for .net core which was released last year, to convert pdf to text. Our service is hosted in Azure. The text which I get back, in certain cases the spaces are missing (say for example instead of 'I [am] here', it displays 'I[am]here'. This happens randomly. 

The code which we have used is as follows -

byte[] pdfBinary = Convert.FromBase64String(inputString);

 TextFormatProviderSettings textFormatProviderSettings = new TextFormatProviderSettings("\r\n", " ");
         
 var textFormatProvider = new TextFormatProvider();
 var pdfFormatProvider = new PdfFormatProvider();

 RadFixedDocument document = pdfFormatProvider.Import(pdfBinary);
 result = textFormatProvider.Export(document, textFormatProviderSettings);
9 comments
ADMIN
Martin
Posted on: 25 Mar 2020 15:08

Hi Deepa,

I tried to reproduce the described behavior but in my end, everything seems to work as expected. I used the provided code snippet to export the RTF document to TXT document (see in the attachment: ExportedFromRadWordsProcessing.txt) and at the same time I exported the the RTF to TXT file using Microsoft Word and the result is the same (see in the attachment: ExportedFromWord.txt). Could you give us more information on how you process the RTF document in order to receive the file from the provided expected result?

On a side note, I would like to ask you to submit different support tickets for the different questions you might have. This will guarantee that the questions will be handled by the most appropriate person and helps us in providing you with the best service. Separating the questions also helps in keeping the support history organized - for future reference for you and for us. Thank you for understanding.

Regards,
Martin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Attached Files:
Deepa
Posted on: 25 Mar 2020 05:18

Okay, I got the latest components for Xamarin and looks like the issue has been fixed. Thank you! I really appreciate the quick response.

On similar lines, we are trying to use Telerik Xamarin components to convert rtf to text. Our code is as below -

varrtfFormatProvider = newRtfFormatProvider();

vartxtFormatProvider = newTxtFormatProvider();

RadFlowDocument doc = null;

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

string result = txtFormatProvider.Export(doc);

We have some spacing issues in this as well.

I am attaching the sample text which I used for testing along with this comment. Also adding a snapshot of what the issue is. 2 images of what we get and what we expect it to be. Can you let me know if I am missing anything in my code? Your help is greatly appreciated.

Attached Files:
Deepa
Posted on: 24 Mar 2020 21:35

Hi Martin,

I just wanted to follow up on this to see if this is going to be available in Telerik UI for Xamarin in near future. We really want to use this component, but are not able to because of this issue.

Thanks,

Deepa 

 

 

ADMIN
Martin
Posted on: 18 Mar 2020 10:20

Hello Deepa,

I have cross-checked with our Xamarin team. If there are no unexpected circumstances this fix should be live with the next minor release of Telerik UI for Xamarin, planned for the end of the week.

Regards,
Martin
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Deepa
Posted on: 17 Mar 2020 21:12
I see this release (2020.1.316) for Silverlight, Winforms and WPF Telerik components. We have reported this issue for the Telerik Xamarin component. Has this issue been resolved for the Xamarin Telerik component? The last release for Xamarin component was on February 19, 2020 (2020.1.218.410), which has the issue.  
ADMIN
Martin
Posted on: 17 Mar 2020 07:39

Hi Deepa,

We have released LIB version 2020.1.316 yesterday and it is currently available for download.

Regards,
Martin
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Deepa
Posted on: 16 Mar 2020 17:19
When is this release library - 2020.1.316 version, available for testing?
ADMIN
Martin
Posted on: 25 Feb 2020 10:24

Hello Deepa,

Following our discussion and after the review of the provided document, indeed the issue is related to ignored whitespaces when exporting text with char spacing. Until now we have only an internal item logged and now I am relating it to this public bug report.

Regards,
Martin
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
ADMIN
Martin
Posted on: 24 Feb 2020 08:19

Hello Deepa,

It seems like you are hitting a known issue logged in our backlog related to ignored whitespaces when exporting text with char spacing. However, I cannot be sure that this is the case without having a document to help us to reproduce this behavior. I saw you open a support ticket as well, so could I ask you to send us the document causing this issue in the support ticket tread in order to make a deeper investigation?


Martin
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.