I changed the page encoding and now it is not returning this line in log.
I tried specifying the encoding in the render method, but it doesn't work.
Code:
StringReader input = new StringReader(content);
HashMap map = new HashMap();
map.put( "pd4ml.extra.resource.loaders", "package.CustomFileResourceProvider" );
pd4ml.setDynamicParams(map);
pd4ml.render(input,fos);
I removed all page content and only printing "HELLO" and then I tried printing the "content" value:
Code:
<?xml version="1.0" encoding="ISO-8859-15"?><html xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />
</head>
<body>
HELLO
</body>
</html>
I also tried by specifying TTF with these lines:
Code:
pd4ml.useTTF( "java:fonts", true );
pd4ml.setDefaultTTFs("Times New Roman", "Arial", "Courier New");
It continues returning an empty PDF as the one I attach.