Do not want to embed fonts in PDFs generated by Aspose.Cells

Asked 2 years ago, Updated 2 years ago, 110 views

Aspose.Cells for Java (ver 8.5.0) is used to generate PDFs from Excel templates.
This Excel template uses MS-like fonts such as MSP Gothic.
The application is a web application and the AP server is Wildfly.

If you run this application on Windows Server, there is no problem.
However, if you run it on CentOS, the PDF will become garbled.
Judging from the phenomenon, when generating PDFs, it seems that the process is dependent on the font installed on the server side.
PDFs have a font embedding mechanism, so they're probably enabled.

[Additional note]
I checked the actual embedded font by referring to the link in labunix's answer.

PDF generated by Windows Server → garbled
WindowsServer

PDF generated by CentOS → garbled
CentOS

PDF generated by CentOS (IPA font installed) → no garbled characters
CentOS (IPA)

[Additional note]

Installing MS fonts in CentOS is not allowed under license.
The client environment for this application is Windows, so I would like to make it available if MS fonts are installed on the client.
I'm wondering if I could just disable font embedding.

I wonder if the guess so far is correct.
If correct, which API can I switch this setting in Aspose.Cells for Java?

java pdf

2022-09-30 21:17

1 Answers

First of all, whether the embedded font is an MS font or an Adobe font,
Check the properties of each PDF created for embedded fonts.

http://www.matsucollo.co.jp/homepage/comic/datamake/pdf_font.html

If you have a problem with the MS embedded font mentioned above, use the IPA font, which is an alternative font. Why don't you install it in CentOS?

http://ipafont.ipa.go.jp/old/ipafont/download.html

I am not familiar with the API, but is the following document not sufficient?

www.aspose.com/api/java/pdf/com.aspose.pdf.text/classes/SystemFontsSubstitution


2022-09-30 21:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.