HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › Troubleshooting › pd4ml in a .jspx file used with success – up to a point …. › Re: Re: pd4ml in a .jspx file used with success – up to a point ….
I have the latest version of pd4ml 3.8.0
Here’s the code (just change enable to “true” and it produces a .pdf, but with enable=”false” I get the exception):
<root xmlns:pd4ml="http://pd4ml.com/tlds/pd4ml/2.6"<br />
xmlns:jsp="http://java.sun.com/JSP/Page"<br />
xmlns:c="http://java.sun.com/jsp/jstl/core"><pd4ml:transform enable="false"<br />
pageFormat="A4"<br />
pageOrientation="Portrait"<br />
screenWidth="610"<br />
pageInsets="10,50,20,50,points"<br />
enableTableBreaks="true"<br />
inline="false"<br />
fileName="hello.pdf"<br />
debug="true"><pd4ml:usettf from="java:fonts" serif="Times New Roman" sansserif="Arial" monospace="Courier New"/><pd4ml:permissions password="empty" rights="2068" strongEncryption="false"/><html xmlns:html="http://www.w3.org/1999/xhtml"<br />
xmlns:tiles="http://tiles.apache.org/tags-tiles"<br />
xmlns:form="http://www.springframework.org/tags/form"<br />
xmlns:spring="http://www.springframework.org/tags"<br />
xmlns:roo="urn:jsptagdir:/WEB-INF/tags"<br />
xmlns:security="http://www.springframework.org/security/tags" version="2.0"><br />
<jsp:output doctype-root-element="HTML" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"<br />
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml-strict.dtd"/><br />
<jsp:directive.page contentType="text/html;charset=UTF-8" /><br />
<jsp:directive.page pageEncoding="UTF-8" /><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><br />
<meta http-equiv="X-UA-Compatible" content="IE=8" /><br />
<link rel="stylesheet" href="/contabilita/css/int/general.css" type="text/css"/><br />
<link rel="stylesheet" href="/contabilita/css/int/header.css" type="text/css"/><br />
<script type="text/javascript" src="/javascript/mootools141.js"><!-- required by FF and opera --></script><br />
<title>A title</title><br />
</head><br />
<br />
<body><br />
<div id="wrapperVit"><br />
<tiles:insertAttribute name="header" ignore="true" /><br />
<div id="main" style="padding-top: 10px;"><br />
<tiles:insertAttribute name="body"/><br />
</div><br />
</div><br />
</body><br />
<br />
<br />
</html><br />
<br />
<br />
</pd4ml:transform><br />
<br />
</root>