Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/06/2011, 04:13
tesitina
 
Fecha de Ingreso: diciembre-2007
Ubicación: España
Mensajes: 51
Antigüedad: 16 años, 4 meses
Puntos: 1
Respuesta: Combinar PDF con Adobe Acrobat 8

Hola de nuevo,

aquí esta el código que si funciona:

Código:
string sDoc1 = "C:\\Pruebas PDF\\PDF1.pdf";
            string sDoc2 = "C:\\Pruebas PDF\\PDF2.pdf";

            CAcroApp myApp = new AcroAppClass();

            //Open PDF document from file
            AcroAVDoc AVDoc1 = new AcroAVDocClass();
            AVDoc1.Open(sDoc1, "");
            AcroPDDoc PDDoc1 = (AcroPDDoc)AVDoc1.GetPDDoc();
            int nPagesDoc1 = PDDoc1.GetNumPages();

            //Open PDF document from file
            AcroAVDoc AVDoc2 = new AcroAVDocClass();
            AVDoc2.Open(sDoc2, "");
            AcroPDDoc PDDoc2 = (AcroPDDoc)AVDoc2.GetPDDoc();
            int nPagesDoc2 = PDDoc2.GetNumPages();

            PDDoc1.InsertPages(2, PDDoc2, 0, 1, 0);
            PDDoc1.Save(1, "C:\\Pruebas PDF\\Prueba test.pdf");

            myApp.CloseAllDocs();
            myApp.Exit();
El problema que tengo ahora, es que necesito bajarle la calidad al nuevo pdf que he creado, pero no se como.

Gracias