From 282ce1bcba1d05fc06231475244f98d8e907953c Mon Sep 17 00:00:00 2001 From: Wonday Date: Thu, 26 Oct 2017 22:48:09 +0800 Subject: [PATCH] fix pdf was clipped problem #69 --- ios/RCTPdf/WPdfView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);