Page 1 of 1

Replace PDF Page Generic Error

Posted: Wed Sep 23, 2020 4:16 pm
by wedmondson
I am trying to replace a page in a pdf by
  • Deleting the page from the destination pdf
  • Cloning the page from the source pdf
  • Moving the cloned page in the destination to the correct location
In my test case both the source and destination pdfs are a single page.

However when I run the clone command I get a status of "GenericError". The Delete command runs fine if it is run independently. If I remove the delete command the clone and move commands work fine. It seems I cannot modify the pdf after deleting a page. Is there a way to get more detail on the error? How do I do this replace operation?

Re: Replace PDF Page Generic Error

Posted: Thu Sep 24, 2020 1:09 pm
by wedmondson
Answering my own question:

It looks like cloning to what is, in essence, a 0 page document (had 1 page but then deleted it). If attempt the above steps with a larger, multi-page document I do not get the generic error.