diff --git a/ios/RCTPdf/WPdfView.m b/ios/RCTPdf/WPdfView.m index 1188510d..491af1ca 100644 --- a/ios/RCTPdf/WPdfView.m +++ b/ios/RCTPdf/WPdfView.m @@ -283,7 +283,7 @@ - (void)drawPage:(int) pageOffset CGContextSetRGBFillColor(context, 1.0,1.0,1.0,1.0); CGContextFillRect(context, pageBounds); - CGAffineTransform pageTransform = CGPDFPageGetDrawingTransform(pdfPage, kCGPDFTrimBox, pageBounds, 0, true); + CGAffineTransform pageTransform = CGPDFPageGetDrawingTransform(pdfPage, kCGPDFCropBox, pageBounds, 0, true); CGContextConcatCTM(context, pageTransform); CGContextDrawPDFPage(context, pdfPage);