aspose-free-consulting / projects

The starting point for Aspose free consulting projects
5 stars 5 forks source link

PDF to docx conversion Alignment and font issues - Aspose.PDF for .NET #359

Closed anandababu-annadurai-anth closed 5 months ago

anandababu-annadurai-anth commented 5 months ago

Hi Team,

While converting the PDF into docx file using aspose.pdf for .net package,the converted document has alignment issues and font mismatch in few places. The PDF has graphik font, in the converted docx file, the font is getting replaced with other font only in few places.

Please find the below code, passing the pdf file as stream and converting it to docx/doc with help of Aspose.pdf package.

Kindly help on these issues.

Document document = new Document(stream); document.DisableFontLicenseVerifications = true; . . byte[] data; using (var ms = new MemoryStream()) { if (fileType.ToLower() == “docx”) document.Save(ms, SaveFormat.DocX); else document.Save(ms, SaveFormat.Doc); data = ms.ToArray(); } return data;

Converted docx file issues: image003

Source PDF file: IRCY11502477.pdf

thumbnail_image002

asadalikhan90 commented 5 months ago

@anandababu-annadurai-anth

We believe that we have already responded to your similar inquiry in our official support forum. We have logged an issue in our issue tracking system and have linked it to the forum thread as well. You can please keep following up there and we will also keep you posted on issue progress there.

anandababu-annadurai-anth commented 5 months ago

Sure..Thanks for your response. I will followup on the support forum.