DocIORenderer ConvertToPDF adds white spaces before polish characters

Hi,

I have a problem with converting .doc to .pdf. Check attachment and result. If there is a table within .doc and additional table in cell, there polish characters are broken. Outside of this inner table it is not perfect but better. Look at my samples how odd words looks like in pdf. They are broken with whitespace or their format is different in different parts. Maybe I need to update my .doc file?

Here is my code:

var fileName = DateTime.Now.ToString("yyyy_MM_dd_HH_mm_ss");

var docFileInfo = new FileInfo(Path.Combine(environment.WebRootPath, "uploads", $"sample.doc"));
WordDocument document2 = null;
using (var stream = docFileInfo.OpenRead())
{
    document2 = new WordDocument(stream, Syncfusion.DocIO.FormatType.Doc);
}

DocIORenderer render = new DocIORenderer();
var doc = render.ConvertToPDF(document2);

using (var stream = new FileStream(Path.Combine(environment.WebRootPath, "uploads", $"{fileName}.pdf"), FileMode.Create))
{
    doc.Save(stream);
}
doc.Close(true);
document2.Close();



Attachment: samples_12586385.rar

2 Replies

DB Dilli Babu Nandha Gopal Syncfusion Team July 13, 2018 04:53 PM UTC

Hi Piotr, 
 
Thank you for contacting Syncfusion support. 
 
We have confirmed that the reported issue in Word to PDF conversion is a defect and we have logged a defect report. This fix for this issue will include in our 2018 Volume 3 release.  
Please let us know if you have any questions. 
 
Regards, 
Dilli babu 



DB Dilli Babu Nandha Gopal Syncfusion Team January 9, 2019 06:05 PM UTC

Hi Piotr, 

We are glad to announce that our Essential Studio Volume 4, 2018 release (v16.4.0.42) is rolled out and is available for download under the following link. 

  
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 

Regards, 
Dilli babu. 


Loader.
Up arrow icon