Skip to main content
This topic is closed to new replies. Start a new post to keep the conversation going.

8 replies

Ralph_Brock
Participant
Jul 3, 2018 3:11 PM UTC

You should use zetpdf.com. By using it you can merge and optimize your PDF more easily.

Translate
Sep 8, 2016 7:01 PM UTC

trying below code which compiles but never save pdf to output folder

//Append Document

private AcroPDDoc OpenFileForCopy(string file, AcroPDDoc outputDocument)

{

    if (isFirstFile)

    {

        outputDocument = new AcroPDDoc();

        outputDocument.Open(file);

    }

    else {

        AcroPDDoc doc2 = new AcroPDDoc();

        doc2.Open(file);

        outputDocument.InsertPages(outputDocument.GetNumPages(), doc2, 0, doc2.GetNumPages(), PDDocFlags.PDDocIsOptimized.GetHashCode());

    }

    return outputDocument;


}

//Save Doucment

private string[] SavePDF(AcroPDDoc outputDocument, string path, string source)


{
    string[] result = new string[2];

    string newPath = path + "_" + "Merged";

  

    Directory.CreateDirectory(newPath);

    newPath += "\\Stmt" + source +  ".pdf";

    outputDocument.Save(Convert.ToInt16(PDSaveFlags.PDSaveFull)

        , newPath);

    isFirstFile = true;

 


    fileCount = 0;

   return result;

}

Translate
Bernd Alheit
Community Expert
Community Expert
Sep 8, 2016 5:48 PM UTC
Sep 8, 2016 5:58 PM UTC

Thanks for you time, I already looked in to it, not within our budget

Translate
Legend
Sep 8, 2016 7:08 PM UTC

It may be your only Adobe option if you want to run on a server. Do you? Acrobat cannot be used on a server or background or automatic process.

Translate