添加字体库设置
This commit is contained in:
@ -119,7 +119,7 @@ public class ExpertSignatureServiceImpl implements ExpertSignatureService {
|
|||||||
|
|
||||||
File f = new File(path + "merged.pdf");
|
File f = new File(path + "merged.pdf");
|
||||||
FileOutputStream fos = new FileOutputStream(f);
|
FileOutputStream fos = new FileOutputStream(f);
|
||||||
FontSettings.getDefaultInstance().setDefaultFontName("MS YaHei");
|
FontSettings.getDefaultInstance().setFontsFolder("/storage/fonts/",true);
|
||||||
try {
|
try {
|
||||||
com.aspose.words.Document doc = new com.aspose.words.Document(path + "merged.docx");
|
com.aspose.words.Document doc = new com.aspose.words.Document(path + "merged.docx");
|
||||||
doc.save(fos, SaveFormat.PDF);
|
doc.save(fos, SaveFormat.PDF);
|
||||||
|
Reference in New Issue
Block a user