by Support » Mon May 07, 2012 1:37 pm
Hello, All methods from NovaPdfOptions interface raise exceptions when they cannot do the task successfully. It would be helpful to catch the exception and see the error number (there is a list of all possible errors in the Globals.cs file).
For the CopyProfile and DeleteProfile I suspect the problem is that the profile cannot be copied / deleted because of the private/public flags. If you pass “1” for the public profile flag in CopyProfile, it will look for a public profile with the specified name, and if that active profile is private, it will not find it and raise an exception. You may also check if the current active profile is a public one before copying it, or you can always create a new profile.
novaPDF does not merge two existing PDF files, it cannot only append the PDF file that it generates to an existing one. What it does is open the existing document and append to it the new pages. So the existing PDF file is modified, you cannot configure to put the result in a different folder. To accomplish the task, you should copy first the existing document to the folder where you wish to have the merged one, than configure novaPDF to save and append the PDF there.
Thank you.