My question is: should I explicitly set the value of the CropBox before I retrieve it with the PXCp_PageGetBox method for the first time? If I've loaded a pdf document with the viewer and retrieve its CropBox with the JS via getPageBox() - it functions. If I've set the value with the PXCp_PageSetBox method one time, it is no problem to retrieve it any time later. But if I use PXCp_PageGetBox for the first time it returns the value -2112936170 ("Required property is not set.")
Code: Select all
PXC_RectF rect;
var retVal = PdfXchangePro.PXCp_PageGetBox(pdfHandle, 0, PXC_PageBox.PB_CropBox, out rect);