PDF from HTML Transformation -error java.lang.IllegalArgumentException: null incompatible with Global antialiasing enable key

Certified Lead Developer

Context using XML data with html tags and XSLT:

Facing below error, however if i using generated html code from below xml and xslt into pdf from html ..its working

XML:

concat(
"<details>",
"<title>",
"PDF FROM HTML TRANSFPRMATION","</title>",
"<remarks>",
"<![CDATA[",
local!data.remarks,
"]]>",
"</remarks>",
"</details>")

XSLT file:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl="">www.w3.org/.../Transform" version="1.0">
<xsl:output method="html" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<html>
<head>
<title>
<xsl:value-of select="details/title"/>
</title>
<style>
body { font-family: Arial, sans-serif; margin: 20px; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid black; padding: 8px; text-align: left; }
@page {
margin: 20mm;
@bottom-center {
content: "Page " counter(page) " of " counter(pages);
}
}
</style>
</head>
<body>
<h1>
<xsl:value-of select="details/title"/>
</h1>
<xsl:value-of select="details/remarks" disable-output-escaping="yes"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

  Discussion posts and replies are publicly visible