PRODUCTS   DOWNLOAD PURCHASE SUPPORT BLOG  COMPANY  
 
Key Features
DOCX to PDF
RTF to PDF
HTML to PDF
Text to PDF
>>Split and merge PDF
Download trial
Purchase
Online-demo
Documentation
What's New

"How to split and merge PDF in C# and VB.Net?"

How to split and merge PDF in C# and VB.Net?

Introduction

     Now let's get to know another benefit of the library. PDF Metamorphosis .Net offers great abilities to split and merge PDF documents. To show how PDF Metamorphosis .Net really lessens the burden of coding, assume that you want to merge 3 (three) PDF files into the one in C#:
            SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis();
         
            string[] pdfFiles = {@"c:\1.pdf", @"c:\2.pdf", @"c:\3.pdf"};
            p.MergePDFFileArrayToPDFFile(pdfFiles, @"c:\Single.pdf");            

          
Let's see another C# example how split PDF file by pages:
            SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis();

            string pdfBook = @"d:\Moscow to the End of the Line.pdf";
            string pagesFolder = @"d:\My Book pages\";
                        
            p.SplitPDFFileToPDFFolder(pdfBook, pagesFolder);    
          

Download PDF Metamorphosis .Net Online Demo


Have a Question?

You have a question, need a support or a code example: ask our support team at support@sautinsoft.com. We will help you quickly and with pleasure.

PDF documents

PDF Metamorphosis .Net processes PDF documents using own PDF class. If you are looking for .Net class (C#) to convert PDF to other formats, see our PDF Focus .Net.


What PDF Metamorphosis .Net can give me:

  1. Save a time and cost of developing of my application. You will need to only add the reference to "PdfMetamorphosis.dll" and write 3-4 C# lines to get ability create PDF from HTML, RTF, Text or PDF from DOCX.

  2. The one product provides me by set of API to convert from Text, RTF, HTML to PDF at once, split and merge PDF documents.

  3. Because of this is absolutely standalone PDF library, I don't need to worry about the availability of Adobe Acrobat, MS Word, OpenOffice or other software on the my client's computers.

  4. My software will have the one of the fastest API to convert into PDF documents and therefore my clients will not have any delays during creating PDF documents.

  5. I don't need to worry about accuracy of source HTML and RTF documents. PDF Metamorphosis .Net can "eat" any types, versions and produce for me a valid PDF document.

  6. The one time price. I pay a one time and can use «PDF Metamorphosis .Net» for a whole life without any additional fees. My license will never expires.

  7. As bonus, I get unlimited technical support during a whole life for free and independently of the date of my purchasing.

Some examples to merge PDF documents in C# and VB.Net

1. Merge PDF documents in memory using C#:

            SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis();

            string fodlerWithPdfs = @"d:\My PDFs\";
            string singlePdf = @"d:\Single.pdf";

            string[] pdfFiles = Directory.GetFiles(fodlerWithPdfs, "*.pdf");

            // ArrayList with PDF documents, each element represents the byte array.
            ArrayList pdfDataList = new ArrayList();

            foreach (string pdfFile in pdfFiles)
            {
                pdfDataList.Add(File.ReadAllBytes(pdfFile));
            }            
                        
            byte [] singlePdfBytes = p.MergePDFStreamArrayToPDFStream(pdfDataList);

            if (singlePdfBytes != null)
                File.WriteAllBytes(singlePdf, singlePdfBytes);
      
2. Merge PDF documents in VB.Net:
        Dim p As New SautinSoft.PdfMetamorphosis()

        Dim pdfBook As String = "d:\The Winter Queen.pdf"
        Dim pagesFolder As String = "d:\My Book pages\"

        p.SplitPDFFileToPDFFolder(pdfBook, pagesFolder)
      
If anyone needs a code sample in C#, VB.Net, ASP.Net etc "How to split and merge PDF", email us at support@sautinsoft.com or ask at Online Chat (right-bottom corner of this page). We'll help you certainly!


Requrements and Technical Information

     Requires only .Net 2.0 or above. Our product is compatible with all .Net languages and supports all Operating Systems where .Net Framework can be used. Note that PDF Metamorphosis .Net is entirely written in managed C#, which makes it absolutely standalone and an independent library.



Reasonable prices

     The library offers developers high quality conversion at reasonably prices. The main point of interest is that PDF Metamorphosis .Net is less expensive than all of its more or less popular counterparts. For example, a single license cost $339 with no additional fees or royalties!


Download

To see this functionality firsthand, download the freshest «PDF Metamorphosis .Net» with code examples, 34.6 Mb.

 
 
Products Downloads Support Company
Buy now
Follow us on Google Plus SautinSoft on Facebook SautinSoft on Twitter SautinSoft on Youtube Our Blog
Copyright © 2002 - 2017 SautinSoft (started from sautin.com). All rights reserved.