Skip to main content
anandp70751952
Participant
January 1, 2018
Question

I am trying to Merge using c# this is not working :( , Its urgent Pls reply

  • January 1, 2018
  • 1 reply
  • 455 views

          string sourceDoc = @"D:\XXXXX.pdf"; 

            AcroPDDoc objPDDoc = new AcroPDDoc();         

            objPDDoc.Open(sourceDoc);

            int numberpgaes = objPDDoc.GetNumPages(); //Getting Number here

            AcroPDDoc objPDDocNew = new AcroPDDoc();

          

            if (objPDDocNew.Create())

            {

                MessageBox.Show("New File Created");

            }

            if (objPDDocNew.InsertPages(-1, objPDDoc,0, numberpgaes, 1))

            {

                MessageBox.Show("File Inserted");

            }

            objPDDocNew.OpenAVDoc("Template");

This topic has been closed for replies.

1 reply

Legend
January 1, 2018

Explain “not working” in detail please. We won’t run your code.