修改代码如下:
先定义全局变量:
CGFloat m_pdfScale;
m_pdfScale = 1.0f;
//放大回调函数
- (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(float)scale
{
          ...
          m_pdfScale *=scale;
         再 刷新pdf当前页面;
          ...
}

pageView.m文件中(pdf创建页面中)
//绘制页面函数
- (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx
{
       原码:      
             CGContextRestoreGState(ctx);
    CGPDFPageRef page = CGPDFDocumentGetPage(pdfReader.pdfDocumentRef, pageNum);
    CGContextSetRGBFillColor(ctx,
                             [PDFMessageCenter shareInstance].redPage,
                             [PDFMessageCenter shareInstance].greePage,
                             [PDFMessageCenter shareInstance].bluePage,
                             1.0);
    CGContextFillRect(ctx, CGContextGetClipBoundingBox(ctx));
    CGContextTranslateCTM(ctx, 0.0, layer.bounds.size.height);
    CGContextScaleCTM(ctx, m_pdfScale , -m_pdfScale );
    CGContextConcatCTM(ctx, CGPDFPageGetDrawingTransform(page, kCGPDFCropBox, layer.bounds, 0, true));
    CGContextDrawPDFPage(ctx, page);

    修改:

           CGPDFPageRef page = CGPDFDocumentGetPage(pdfReader.pdfDocumentRef, pageNum);
    CGContextSetRGBFillColor(ctx,
                             [PDFMessageCenter shareInstance].redPage,
                             [PDFMessageCenter shareInstance].greePage,
                             [PDFMessageCenter shareInstance].bluePage,
                             1.0);
                     CGContextFillRect(ctx, self.bounds);
                     CGContextTranslateCTM(ctx, 0.0, layer.bounds.size.height);
                     CGContextScaleCTM(ctx, m_scale, -m_scale);
    CGContextSaveGState(ctx);
                     CGContextDrawPDFPage(ctx, page);
    CGContextRestoreGState(ctx);
}
我现在的网络环境上传不了附件。
pdf页面放大后还是有一点失真,但已经不再影响浏览了。CGRectIntegral(CGPDFPageGetBoxRect(pageRef, kCGPDFCropBox))//CGPDFPageRef pageRef  这个函数可以获得pdf页面的尺寸。
若是图片放大后一定会等比例失真的。