Lines 354-362
Link Here
|
354 |
} |
354 |
} |
355 |
transferDict(page.getCOSDictionary(), pageStream, page2form, true); |
355 |
transferDict(page.getCOSDictionary(), pageStream, page2form, true); |
356 |
AffineTransform at = form.getMatrix(); |
356 |
AffineTransform at = form.getMatrix(); |
357 |
PDRectangle mediaBox = page.findMediaBox(); |
357 |
PDRectangle viewBox = PDFUtil.getViewBox(page); |
358 |
PDRectangle cropBox = page.findCropBox(); |
|
|
359 |
PDRectangle viewBox = (cropBox != null ? cropBox : mediaBox); |
360 |
|
358 |
|
361 |
//Handle the /Rotation entry on the page dict |
359 |
//Handle the /Rotation entry on the page dict |
362 |
int rotation = PDFUtil.getNormalizedRotation(page); |
360 |
int rotation = PDFUtil.getNormalizedRotation(page); |