[VeryPDF Release Notes] Split and Merge PDF files from C# source code

Hi,

I'm looking for a "merging PDF tool" with an API to be called from a Web Service (C# .net).

I download your trial "PDF Split-Merge SDK" but inside I didn't see any C# example.
Where can I download an example in C#?

For example, inside the VB.net project there are an instruction:

"PDF_SetCode("XXXXXXXXXXXXXXXXXXXX")"

The program don't run because the "code" is not correct.
Do you have any "code" that I can use to try your SDK version?

Thank you.
Customer
-------------------------------------
We have released a new version of PDF Split-Merge SDK today, please download new version from following URL,

https://www.verypdf.com/pdfpg/pdfsplitmergesdk.zip

this new version of PDF Split-Merge SDK does contain a C# example, after you download and unzip it to a folder, you can test the C# example easily.

In the trial version, you can use "XXXXXXXXXXXXXXXXX" license key to evaluate it.

VeryPDF

private void PDFSplitMergeSDK_Test_Click(object sender, EventArgs e)

{

    string appPath = Path.GetDirectoryName(Application.ExecutablePath);

    System.Type VeryPDFSplitMergeCOMType = System.Type.GetTypeFromProgID
         (
"VeryPDFSplitMergeCOM.com");

    VeryPDFSplitMergeCOM.com VeryPDFSplitMergeCOM = (VeryPDFSplitMergeCOM.com)
         System.
Activator.CreateInstance(VeryPDFSplitMergeCOMType);

 

    VeryPDFSplitMergeCOM.com_PDF_SetCode("XXXXXXXXXXXXXXXXXXXXXXXXXXX");

 

    string szPDFFile = appPath + "\\_out1.pdf";

    System.IO.File.Copy(appPath + "\\testcmd.pdf", szPDFFile, true);

 

    int nRet = 0;

    nRet = VeryPDFSplitMergeCOM.com_VeryAppendPDF(szPDFFile, appPath + "\\testcmd.pdf");

    nRet = VeryPDFSplitMergeCOM.com_VeryAppendPDF(szPDFFile, appPath + "\\testcmd.pdf");

    nRet = VeryPDFSplitMergeCOM.com_VeryAppendPDF(szPDFFile, appPath + "\\testcmd.pdf");

    nRet = VeryPDFSplitMergeCOM.com_VeryAppendPDF(szPDFFile, appPath + "\\testcmd.pdf");

    int nPageCount = VeryPDFSplitMergeCOM.com_VeryGetPDFFilePageCount(szPDFFile);

    MessageBox.Show(szPDFFile + " is contain " + nPageCount.ToString() + " pages.");

}

 

private void PDFSplitMergeSDK_Test2_Click(object sender, EventArgs e)

{

    string appPath = Path.GetDirectoryName(Application.ExecutablePath);

    System.Type VeryPDFSplitMergeCOMType = System.Type.GetTypeFromProgID
         (
"VeryPDFSplitMergeCOM.com");

    VeryPDFSplitMergeCOM.com VeryPDFSplitMergeCOM = (VeryPDFSplitMergeCOM.com)
         System.
Activator.CreateInstance(VeryPDFSplitMergeCOMType);

 

    VeryPDFSplitMergeCOM.com_PDF_SetCode("XXXXXXXXXXXXXXXXXXXXXXXXXXX");

 

    string szPDFFile = appPath + "\\testcmd.pdf";

    VeryPDFSplitMergeCOM.com_VerySplitMergePDFEx(szPDFFile,
        
"2-5", appPath + "\\_page2-5.pdf");

    int nPageCount = VeryPDFSplitMergeCOM.com_VeryGetPDFFilePageCount(
         appPath +
"\\_page2-5.pdf");

    MessageBox.Show(appPath + "\\_page2-5.pdf" + " is contain "
         + nPageCount.ToString()+
" pages.");

}

 

VN:F [1.9.20_1166]
Rating: 8.0/10 (2 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
[VeryPDF Release Notes] Split and Merge PDF files from C# source code, 8.0 out of 10 based on 2 ratings

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!