当前位置:网站首页>[question] font 'stsongstd light' with 'unigb-ucs2-h' is not recognized

[question] font 'stsongstd light' with 'unigb-ucs2-h' is not recognized

2020-12-07 16:19:22 osc_ vuklrt7s

Preface

        Use IText analysis PDF When you file , There are often problems as shown in the question , The reason for this problem is IText In the process of updating , stay IText5 The above version changed the namespace (com/itextpdf/text/pdf/fonts/), however iTextAsian No updates , It's the same package name as before (com/lowagie/text/pdf/fonts/), The path can't be found , Pictured :



Solution steps

1. decompression ITextAsian.jar package , Put the extracted file into a folder .

2. take com Under the folder lowagie It is amended as follows itextpdf, Pictured .



3. After change , Put it in a folder , and cmd Go to the folder Directory , Carry out orders :jar cvf iTextAsian.jar com/itextpdf/text/pdf/fonts/*, Pictured .



4. Will create a new jar The package replaces the original , Import into project .

summary

        There are also such problems , This itext No, it's a little bit off center .

版权声明
本文为[osc_ vuklrt7s]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/20201207161125117c.html