Tag: 2d cgcolorspace

pdf图像颜色空间麻烦ios

编辑我一直在使用的PDF文件显然是在“indesign”格式(不pipe这意味着什么),因此没有颜色configuration文件,有谁知道我怎么可以添加configuration文件,如果有可能呢? 编辑结束 提前感谢任何人都可以借此解决这个问题。 首先让我告诉你,我是一种新的开发IOS,我想在Xcode上使用石英的pdf阅读器,一切工作正常,除了图像的渲染,由于某种原因,颜色空间是完全的弄乱。 请看看这个例子。 这是我在我的IOS设备上得到的图像: 这是它看起来如此: 作为参考,绘制PDF页面的代码部分如下: – (void)drawLayer:(CATiledLayer *)layer inContext:(CGContextRef)context { ReaderContentPage *readerContentPage = self; // Retain self CGContextSetRGBFillColor(context, 1.0f, 1.0f, 1.0f, 1.0f); // White CGContextFillRect(context, CGContextGetClipBoundingBox(context)); // Fill CGContextTranslateCTM(context, 0.0f, self.bounds.size.height); CGContextScaleCTM(context, 1.0f, -1.0f); CGContextConcatCTM(context, CGPDFPageGetDrawingTransform(_PDFPageRef, kCGPDFCropBox, self.bounds, 0, true)); //CGContextSetRenderingIntent(context, kCGRenderingIntentDefault); CGContextSetInterpolationQuality(context, kCGInterpolationDefault); CGContextDrawPDFPage(context, _PDFPageRef); // Render the PDF page into […]