We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Negative letter-spacing after conversion from PDF to HTML

Hello,

We found a problem with the Aspose.Words Library for C#:
On various ducuments there will be a negative letter-spacing (always the same) for some words
letter-spacing:-107374182.4pt

I will attach an example file where this problem occours.

Best RegardsMuster_Vertraulichkeitsvereinbarung.pdf (1.1 MB)

@Legal_Analytics_GmbH

We have tested the scenario and managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-22231. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

We suggest you please use Aspose.PDF to convert PDF to HTML for better output. Following code example shows how to convert PDF to HTML using Aspose.PDF. Hope this helps you.

Aspose.Pdf.Document pdfDoc = new Aspose.Pdf.Document(MyDir + "Muster_Vertraulichkeitsvereinbarung.pdf");
pdfDoc.Save(MyDir + "output.html", Aspose.Pdf.SaveFormat.Html);

The issues you have found earlier (filed as WORDSNET-22231) have been fixed in this Aspose.Words for .NET 21.7 update and this Aspose.Words for Java 21.7 update.