document-builder
document-builder copied to clipboard
unicode symbols in pdf (error)
def builder = new PdfDocumentBuilder(new File('example.pdf'))
builder.create {
document {
paragraph "ПРИВЕТ"
}
}
Exception thrown
java.lang.IllegalArgumentException: U+041F ('Pecyrillic') is not available in this font's encoding: WinAnsiEncoding