Skip to content

Commit 9ab19c9

Browse files
committed
chore: added PdfFop UTF8 handler
1 parent e1cc7da commit 9ab19c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fj-doc-mod-fop/src/main/java/org/fugerit/java/doc/mod/fop/PdfFopTypeHandler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.io.*;
44
import java.nio.charset.Charset;
5+
import java.nio.charset.StandardCharsets;
56
import java.util.*;
67
import java.util.stream.Collectors;
78

@@ -46,6 +47,8 @@ public class PdfFopTypeHandler extends FreeMarkerFopTypeHandler {
4647

4748
public static final DocTypeHandler HANDLER = new PdfFopTypeHandler();
4849

50+
public static final DocTypeHandler HANDLER_UTF8 = new PdfFopTypeHandler( StandardCharsets.UTF_8 );
51+
4952
public static final String ATT_FOP_CONFIG_MODE = "fop-config-mode";
5053
public static final String ATT_FOP_CONFIG_MODE_DEFAULT = "default";
5154
public static final String ATT_FOP_CONFIG_MODE_CLASS_LOADER = "classloader";

0 commit comments

Comments
 (0)