Q: how can I create a deep copy of the a page within a PDF? I
basically want to write text to different locations on multiple
instances of the same page and push each one of those pages back to
Everything I've tried so far doesn't seem to "copy" the page. I
always end up updating my copy of the original page but somehow the
original stream gets updated as well.
A: There may be a more elegant approach, but the first thing that I
can think of is to copy the page to a temporary document, then import
it back to the original document. This way you will get a 'deep copy'
of the page, so changes to one page will not affect the other.