PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Can't set page insets using JSP markup
   PostPosted: 16 Nov 2010, 19:42 
I am trying to set the page insets on my page using the pageInsets attribute within the 'transform' tag.

When I set the page insets using the java API call everything works fine:
pd4ml.setPageInsetsMM(new java.awt.Insets(topInset, leftInset, bottomInset, rightInset));

However when I comment out the java code and try to use the attribute in the JSP, it is ignored.

Here's a sample of my code for the JSP markup:

<pd4ml:transform pageInsets="35,25,35,25,mm">

<html>
<META http-equiv="Content-Type" content="text/html; charset=ISO8859_1">
<head>
<style type="text/css">
body {
color: black;
font-family: 'Times New Roman', Times, serif;
font-size: 12pt;
}
</style>

</head>

<body>
<!--- rest of body-->

</body>

</html>
</pd4ml:transform>

thanks for any help
Michael



[Reply]     [ 1 post ] 

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share