不推荐使用 PdfContentByte 类型的方法 createGraphics(float, float)

The method createGraphics(float, float) from the type PdfContentByte is deprecated

PdfContentByte 类型的方法 createGraphics(float, float) 已弃用,这是此方法的替代方法

检查 iText 的 JavaDoc

Gets a Graphics2D to write on. The graphics are translated to PDF commands as shapes. No PDF fonts will appear.

Deprecated: use the constructor in PdfGraphics2D