I am having a problem creating pdf using the pd4ml tool. It works great for all pages except the first page.
I used the following lines of code.
Page2 and Page3 are working fine without any problems. But the first page does not accept htmlwidth = "1335" (rather, it accepts a value of 640, which is the default value).
Note. This works great with pd4ml.jar in windows. The problem occurs when pdf is created using a Linux server.
Any help would be greatly appreciated.
<!DOCTYPE html> <html> <head> <title>TITLE</title> <style type="text/css" media="all"> * {margin: 0;padding: 0;} body{margin:0;padding:0;font-family:Arial,Helvetica,sans-serif;color:#333;width: 1335px;} table{border:0; border-spacing:0;width: 100%;} table td{vertical-align: top;-webkit-text-size-adjust: none;} img{border: 0;page-break-inside: avoid;} </style> </head> <body> <pd4ml:page.footer> footer text goes here </pd4ml:page.footer> <pd4ml:page.header> header text goes here </pd4ml:page.header> <div class="container" style="margin: 0;"> <pd4ml:page.break htmlwidth="1335"/> Page 1 content </pd4ml:page.break> </div> <div class="container" style="margin: 0;"> <pd4ml:page.break htmlwidth="1335"/> page 2 content </pd4ml:page.break> </div> <div class="container" style="margin: 0;"> <pd4ml:page.break htmlwidth="1335"/> page 3 content </pd4ml:page.break> </div> </body> </html> </pd4ml:transform>
source share