We have a lot of font changes in pdf files produced from docx files only with textual changes.
When we open docx files we see same fonts, after pdf conversion with SpireDoc for Java 11.5.5:
- Code: Select all
private OutputStream convertToPdf(InputStream fileContent)
{
Document document = new Document(fileContent);
ByteArrayOutputStream fileOut = new ByteArrayOutputStream();
document.saveToStream(fileOut, FileFormat.PDF);
return fileOut;
}
Thanks,
Andrei Chorin