Aspose Content Overflowing to Extra Pages

Hi team

I see a difference when using the aspose words in the local environment and GKP environment .
As the actual file is three page document converted to stream and passed it is properly saved with three page in the local environment where as the same stream is saved into 4 pages in the GKP environment …

Could you help us how we can resolve this in the GKP environment

@veera1208 Could you please attach your input and output documents here for testing? We will check the issue and provide you more information.
Do you convert the document to PDF or other fixed-page format? If so, the problem on your side might occur 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 font used in the document, the font is substituted. This might lead into fonts mismatch and document layout differences due to the different fonts metrics. You can implement IWarningCallback to get notifications when font substitution is performed.
Please see our documentation to learn where Aspose.Words looks for fonts:
https://docs.aspose.com/words/net/specifying-truetype-fonts-location/

Hi team
we have used the below command to install fonts for the Kuberneets paltform (Java11 && RedhatLinux 8)

RUN microdnf install freetype fontconfig

We will be getting different fonts and cannot rely on the static font settings .

It is working fine with the fonts but we are seeing the an extra page

Is there a way to modfiy the above command or use the default settings for the font …Please help us

@veera1208 I am afraid there is no package for Linux that includes all MS Word, also the documents might use non-standard MS Word and these fonts are required to build accurate document layout. You can implement IWarningCallback to get notification what fonts used in the source document are not available in your environment.