Skip to content

Commit

Permalink
fix pdf was clipped problem #69
Browse files Browse the repository at this point in the history
  • Loading branch information
Wonday committed Oct 26, 2017
1 parent d1f4a05 commit 282ce1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RCTPdf/WPdfView.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 282ce1b

Please sign in to comment.