Glyph & Cog, LLC
search:  
 
     


Home
Products
       - XpdfInfo
       - XpdfText
       - XpdfViewer OCX
       - XpdfViewer
       - XpdfWidget/Qt
       - XpdfPrint
       - XpdfRasterizer
       - XpdfAnalyze
       - XpdfPS
       - XpdfSplice
       - Source license

Services
Tips & Misc
Buy
Customers
Tech Support
Company
Contact
 
XpdfSpliceTM Library

The XpdfSplice library/component allows you to split and/or combine PDF files.

XpdfSplice extracts pages from input PDF documents and combines them together into output PDF documents. This process can involve any number of input files and any number of output files - for example, you can:

  • split an input PDF file into one output PDF file for each page
  • combine several input PDF files into a single large PDF file
  • combine just the first page from each PDF file into a single PDF file
  • etc.

The core functionality is based on a single function: take a specified page from an input PDF file and append it to a new, output PDF file. With that single function, any combination of splitting, merging, etc. is possible.

XpdfSplice is easy to use:

XpdfSpliceInputHandle in1, in2;
XpdfSpliceOutputHandle out1, out2;

// open the input files
in1 = xpdfSpliceOpenInput("input1.pdf");
in2 = xpdfSpliceOpenInput("input2.pdf");

// open the output files
out1 = xpdfSpliceOpenOutput("output1.pdf", 1.6);
out2 = xpdfSpliceOpenOutput("output2.pdf", 1.6);

// copy page 1 from both input files to the first output file
xpdfSpliceAddPage(in1, 1, out1);
xpdfSpliceAddPage(in2, 1, out1);

// copy page 2 from both input files to the second output file
xpdfSpliceAddPage(in1, 2, out2);
xpdfSpliceAddPage(in2, 2, out2);

xpdfSpliceCloseInput(in1);
xpdfSpliceCloseInput(in2);
xpdfSpliceCloseOutput(out1);
xpdfSpliceCloseOutput(out2);

Supported platforms:

  • Windows: DLL
  • Windows: COM component - usable from Visual Basic, Delphi, etc.
  • Linux: shared library
  • Mac: shared library
  • other platforms: portable C++ source code for the library is available

For further information, including redistribution (OEM) licensing, contact Glyph & Cog.

 
   
    Copyright 2008 Glyph & Cog, LLC