We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ad7223 commit b11db3fCopy full SHA for b11db3f
kernel/src/main/java/com/itextpdf/kernel/pdf/annot/PdfAnnotation.java
@@ -43,6 +43,7 @@ This file is part of the iText (R) project.
43
*/
44
package com.itextpdf.kernel.pdf.annot;
45
46
+import com.itextpdf.io.font.PdfEncodings;
47
import com.itextpdf.kernel.color.Color;
48
import com.itextpdf.kernel.geom.Rectangle;
49
import com.itextpdf.kernel.pdf.PdfArray;
@@ -405,7 +406,7 @@ public PdfAnnotation setContents(PdfString contents) {
405
406
* @return this {@link PdfAnnotation} instance.
407
408
public PdfAnnotation setContents(String contents) {
- return setContents(new PdfString(contents));
409
+ return setContents(new PdfString(contents, PdfEncodings.UNICODE_BIG));
410
}
411
412
/**
0 commit comments