CGContext pdf page aspect fit

前端 未结 5 631
星月不相逢
星月不相逢 2020-12-28 10:07

I am displaying a pdf page on the CGContext using the code

- (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)context
{
    CGContextSetRGBFillColor(         


        
5条回答
  •  既然无缘
    2020-12-28 11:01

    Cursory reading of your code suggests the use of kCGPDFBleedBox should be replaced by another setting, perhaps kCGPDFMediaBox. See here for more information.

提交回复
热议问题