I'm trying to add a timestamp to the header of my PDF, but I'm getting errors that say
Here are the steps I took:
1. I added this script in one of my html pages:
2. I added this to my CSS:
Is there anything else I should do? `
error: TypeError: null value is not an object
Here are the steps I took:
1. I added this script in one of my html pages:
<script>
Prince.addScriptFunc("datestamp", function() {
return (new Date()).toString();
});
</script>
2. I added this to my CSS:
@page {
@top {
content: prince-script(datestamp)
}
}
Is there anything else I should do? `