DocxToPDF "compresses" word table visually

Hi.

We are converting a docx to PDF.
And its working, but the result is not as good as when the conversion is done from within Word.
I have attached a comparison.

The left image is done with DocToPDFConverter version 17.4460.0.55
The right image is done from word using save as pdf.

As you can see, the table have been compressed in height, and it doesn't look very good when you print the result.

The code i used to do the conversion is this.

var wordDocument = new WordDocument("input.docx", Syncfusion.DocIO.FormatType.Automatic);
wordDocument.ChartToImageConverter = new ChartToImageConverter();
wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal;
var converter = new DocToPDFConverter();
var pdfDocument = converter.ConvertToPDF(wordDocument);
pdfDocument.Save("test.pdf");
pdfDocument.Close();
wordDocument.Close();


So my question is, is there anything i can do to make the conversion output a result that is more like the one that word outputs? The rightside image in the attacked image.
As a last resort we can modify the word template if that is necessary, but we'r not talking about just one template so that is something that we would rather not do.

Changing the way syncfusion converts the document would be a prefered solution.


Attachment: PDF_Conversion_Difference_10c79413.zip

5 Replies

MR Manikandan Ravichandran Syncfusion Team March 25, 2020 09:05 AM UTC

Hi Anders,

Thank you for contacting Syncfusion support.

We have tried to reproduce the mentioned issue but we unable to reproduce this issue in our end. We suspect this issue might be specific to word document. So, could your please share the input document used at your end to reproduce the mentioned problem.

Note: If you have any confidential data in your Word document, please replace with some dummy data and provide us the same. We just need your document to recreate the problem you face.

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran



AW Anders Wester March 25, 2020 10:12 AM UTC

Hi.

I have attached the word document that we are using as template.
I hope that helps.

regards,
Anders

Attachment: 1_Checkliste_Minigravemaskine_X_693b5dfb.zip


MR Manikandan Ravichandran Syncfusion Team March 26, 2020 09:34 AM UTC

Hi Anders,

Thank you for your update.

We can reproduce the issue with "Table compressed in the generated PDF document” in our end and suspect it to be a defect. We will validate this issue and update you with more details on 30th March 2020.

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran



MR Manikandan Ravichandran Syncfusion Team March 30, 2020 03:05 PM UTC

Hi Anders,

Thank you for your patience.

We are currently validating the reported “Table compressed in generated PDF document” issue and we are facing complexity in GDI with specific “MS Gothic” font. We are working this issue with high priority and we will provide the further details on April 1, 2020.

Please let me know if you have any concern on this

Regards,
Manikandan Ravichandran



MR Manikandan Ravichandran Syncfusion Team April 1, 2020 03:44 PM UTC

Hi Andreas,

Thank you for your patience.

We have confirmed that the reported issue with “Table compressed in generated PDF document” is a defect and we have logged a defect report. Since you have been using our weekly release, we will include the fix for this defect in our weekly NuGet release which is estimated to be available on 21st April 2020

The status of this bug task can be tracked through the below link:
https://www.syncfusion.com/feedback/13104/text-is-not-preserved-properly-in-word-to-pdf-conversion-for-particular-font

Note: If you require patch for the reported issue in any of our Essential Studio version (except weekly release version), then kindly let us know the currently installed version, so that we can provide a patch in that version based on our SLA policy.

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran


Loader.
Up arrow icon