1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | PDFMerge.Neevia NVmerge = new PDFMerge.Neevia(); int retVal; NVmerge.PDFEncrypt = true; NVmerge.PDFEncryptionType = "rc4"; NVmerge.PDFOwnerPassword = "owner"; // p - document printing is denied // e - disable extraction of text and graphics NVmerge.PDFPermissions = "pe"; retVal = NVmerge.MergePDF(@"c:\1.pdf+c:\2.pdf",@"c:\merged.pdf"); if (retVal != 0) { MessageBox.Show("Error code = " + retVal.ToString()); } else { MessageBox.Show("Done"); } |