Hi,
When I convert pdf to html using aspose.pdf java version, spaces loss.
In my case: Narrow linewidth lasers are necessary as local to Narrowlinewidthlasersarenecessaryaslocaloscil
Original pdf screenshot:
Image20190315113904.png (46.5 KB)
Converted html screenshot:
Image20190315113943.png (2.8 KB)
Here’s my test pdf:
100024.pdf (226.7 KB)
Here’s my testing code:
Document pdf = new Document(pdfFile.getAbsolutePath());
HtmlSaveOptions options = new HtmlSaveOptions();
options.setFixedLayout(false);
options.setSplitIntoPages(false);
options.FontSavingMode = HtmlSaveOptions.FontSavingModes.AlwaysSaveAsTTF;
options.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsExternalPngFilesReferencedViaSvg;
options.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedCssOnly;pdf.save(htmlFile.getAbsolutePath(), options);