Hi,
Using the aspose-cells and aspose version 22.12, and aspose-pdf 22.9, there seems to be an issue where the text is merging Together in DOC or PPT format for some text.
PDF file: bold.pdf (220.9 KB)
I am using below code:
import com.aspose.pdf.Font
import com.aspose.pdf.FontRepository
import com.aspose.pdf.License
import com.aspose.pdf.TextFragment
import com.aspose.pdf.TextFragmentState
import com.aspose.pdf.TextFragmentAbsorber
import com.aspose.pdf.DocSaveOptions
import com.aspose.pdf.Document
def dataDir = “/Users/sayuj.singh/Documents/TIK/”
License license = new License();
license.setLicense("/Users/sayuj.singh/Desktop/Libs/EXS/ExportService/src/main/webapp/aspose/license/development/Aspose.Pdf.lic")
Document doc = new Document(dataDir + “bold.pdf”);
TextFragmentAbsorber textFragmentAbsorber = new TextFragmentAbsorber();
doc.getPages().accept(textFragmentAbsorber)
DocSaveOptions saveOption = new DocSaveOptions();
saveOption.setFormat(DocSaveOptions.DocFormat.DocX);
doc.save(dataDir + “3.docx”, saveOption);
image.jpg (265.9 KB)