Hi Matt,
I'm trying to apply your code to my project (with a problem about page breaks) and I have a problem with one of the sentences:
oDocument.appendChild(oSamplePage.cloneNode(false));
I obtain this message:
'null' is null or is not an object
I've tried everything I can but nothing changes.
Do you know what isn't ok?
Thanks.
PS: Sorry ...