xpdfSpliceOpenOutput

Open an output PDF file.
XpdfSpliceOutputHandle xpdfSpliceOpenOutput(const char *pdfFileName, double pdfVersion)
This function opens an output PDF file, pdfFileName, from disk, and constructs a handle.

The xpdfSpliceOpenOutput function returns an XpdfSpliceOutputHandle if successful, and otherwise returns NULL.

The PDF version in the output file will be set to pdfVersion. XpdfSplice does not check that the content conforms to the specified version. Typically, it should be set to the highest version used in any of your input files.

C:
XpdfSpliceOutputHandle out; out = xpdfSpliceOpenOutput("c:/test/newfile.pdf", 1.6); if (!out) { /* handle the error */ }
xpdfSpliceOpenOutputW
xpdfSpliceCloseOutput