xpdfSpliceAddPages
Add multiple pages from an input PDF file to an output PDF file.
int xpdfSpliceAddPages(XpdfSpliceInputHandle in, int firstPage, int lastPage,
XpdfSpliceOutputHandle out)
This function copies pages
firstPage
through
lastPage
from an input PDF file, in
, and
appends it to an output PDF file, out
.
The xpdfSpliceAddPages
function returns non-zero if
successful, or zero on error.
C:
XpdfSpliceInputHandle in;
XpdfSpliceOutputHandle out;
in = xpdfSpliceOpenInput("c:/test/input.pdf");
out = xpdfSpliceOpenOutput("c:/test/output.pdf");
/* append pages 3-7 of input.pdf to output.pdf */
xpdfSpliceAddPages(in, 3, 7, out);