내 PDF 리더는이 PDF 리더, 얇은 흰색 선
같은 얇은 흰색 선을 표시하지만이 파일은 여기, Acrobat Reader가없고 흰색 라인에 잘 작동 난 내 pdf 파일을 처리하는 방법입니다
CGRect contentRect = CGRectMake(0, 0, width, height);
CGContextRef context = CGBitmapContextCreate(NULL,
width,
height,
8, /* bits per component*/
width * 4, /* bytes per row */
colorSpace,
kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big);
CGColorSpaceRelease(colorSpace);
CGContextSaveGState(context);
CGContextClipToRect(context, CGRectMake(0, 0, width, height));
// First fill the background with white.
CGContextSetRGBFillColor(context, 1.0,1.0,1.0,1.0);
CGContextFillRect(context,contentRect);
CGContextSetInterpolationQuality(context, kCGInterpolationHigh);
CGContextSetRenderingIntent(context, kCGRenderingIntentDefault);
CGContextDrawPDFPage(context,page);
CGImageRef image = CGBitmapContextCreateImage(context);
CGContextRestoreGState(context);
CGContextRelease(context);
이 문제를 해결하려면 내 코드를 업데이트하거나 PDF 파일에 어떤 작업을 수행해야합니까?