Hi all,
I’m experiencing 2 challenges converting a web page to a PDF using the createPDF Plugin. (The PDF is fine except for these two issues)
1) I’m using highlight_string to display recipes in my CMSB Cookbook with the following code:
<?php
$recipe = wordwrap($record['recipe'],140) ;
$recipe = highlight_string($recipe) ;
?>
When both the wordwrap and the highlight_string lines are included in the code, none of the links in the converted PDF work.
When I remove either the wordwrap or highlight_string lines from the code, the links in the converted PDF are live again.
____________________________________________
2) I’m using javascript to change the background color of the page to white before converting it to a PDF. But the background color of the PDF reverts to the original color (#9FF)
<script type="text/javascript">
function changeBGC(color){
document.body.style.backgroundColor = color;
}
</script>
</head>
<body style="background-color:#9FF">
And in the body to change the color:
<input type = "button" value = "Change Background Color to White" onclick = changeBGC("white")>
Any ideas?
Thanks,
Jerry Kornbluth
The first CMS Builder reference book is now available on-line!
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php