-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
275 additions
and
461 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
# Maven | ||
|
||
## 命令 | ||
配置好环境后,使用vscode开发,不使用IDE | ||
- mvn test | ||
|
||
## itext7 | ||
|
||
itext7 的字体涉及到版权问题,基本就是与adobe有关 | ||
|
||
```java | ||
PdfFont f2 = PdfFontFactory.createFont("STSong-Light", "UniGB-UCS2-H",true); | ||
PdfFont f3 = PdfFontFactory.createFont("C:/Windows/Fonts/simhei.ttf", PdfEncodings.IDENTITY_H,true); | ||
//Add paragraph to the document | ||
document.add(new Paragraph("hellos你好").setFont(f2)); | ||
document.add(new Paragraph("hellos你好").setFont(f3)); | ||
``` | ||
# Maven | ||
|
||
## 命令 | ||
配置好环境后,使用vscode开发,不使用IDE | ||
- mvn test 跑test下的所有类 | ||
- mvn test -Dtest=ReportTest 跑test下指定的类 | ||
|
||
## itext7 | ||
|
||
itext7 的字体涉及到版权问题,基本就是与adobe有关 | ||
|
||
```java | ||
PdfFont f2 = PdfFontFactory.createFont("STSong-Light", "UniGB-UCS2-H",true); | ||
PdfFont f3 = PdfFontFactory.createFont("C:/Windows/Fonts/simhei.ttf", PdfEncodings.IDENTITY_H,true); | ||
//Add paragraph to the document | ||
document.add(new Paragraph("hellos你好").setFont(f2)); | ||
document.add(new Paragraph("hellos你好").setFont(f3)); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.