Page 1 of 1

Re: GenericError result when attempting to SwapPages()

Posted: Fri Nov 19, 2021 5:30 pm
by Fabio
Hello Fletch,

I just tested the method and everything went fine.
I used the code snippet in our documentation here: https://www.gdpicture.com/guides/gdpict ... Pages.html

If you got an issue with the code snippet, could you try to install the new version of GdPicture and test it again, please?

With best,
Fabio

Re: GenericError result when attempting to SwapPages()

Posted: Wed Nov 24, 2021 4:22 pm
by Fabio
Hello,

I'm not sure to understand, are we talking about the GdPicturePDF or GdViewer class here?
The best practice is to load your file within a GdPicturePDF object and use it for the SwapPages method or PDF manipulations.
Once the swap has been done, you can use the DisplayFromFile method with the GdViewer object to display the modified document.

With best,
fabio