Docx to pdf with aspose.words

Hello,

I have just used the library to transform a 188 page docx to a 233 page pdf. I am wondering where the bloat comes from and if it’s possible to make it a 1-1 mapping ie the pdf is also 188 pages?

Thanks

@NeilPasrich Could you please attach your input and output documents here for testing? We will check the issue and provide you more information.
Please note, MS Word documents are flow by their nature, so there is no “page” concept. Consumer application layouts the document content into pages on the fly. Aspose.Words has it’s own layout engine for this purpose.
Most likely the problem on your side occurs because fonts required for document rendering are not available in your environment. To build an accurate document layout the fonts are required. If Aspose.Words cannot find the fonts used in the document the fonts are substituted . This might lead into the layout and appearance difference.
Please see our documentation to learn where Aspose.Words looks for fonts:
https://docs.aspose.com/words/python-net/specifying-truetype-fonts-location/