CGContext pdf page aspect fit

前端 未结 5 628
星月不相逢
星月不相逢 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:02

    The CGPDFPageGetDrawingTransform just will not return scale-up transformation if the PDF page rectangle is smaller than the rect parameter.

提交回复
热议问题