xpdfSpliceAddPageRotatedCropped

Add a page from an input PDF file to an output PDF file, with a rotation and a CropBox.
int xpdfSpliceAddPageRotatedCropped(XpdfSpliceInputHandle in, int pageNum, int rotation, double cropLLX, double cropLLY, double cropURX, double cropURY, XpdfSpliceOutputHandle out)
This function copies one page, given by pageNum, from an input PDF file, in, and appends it to an output PDF file, out.

The new page will be rotated by rotation degrees clockwise (relative to its appearance in the input PDF file). Rotations of 0, 90, 180, and 270 degrees are allowed.

The CropBox for the new page will be set to (cropLLX, cropLLY, cropURX, cropURY). "LL" refers to the lower-left corner of the page; "UR" refers to the upper-right corner. The coordinates are in the PDF coordinate space.

The xpdfSpliceAddPageRotatedCropped 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 page 3 of input.pdf to output.pdf, with no rotation, and with a new CropBox */ xpdfSpliceAddPageRotatedCropped(in, 3, 0, 72, 72, 612, 792, out);
xpdfSpliceAddPage
xpdfSpliceAddPageRotated
xpdfSpliceAddPages