0
我正在研究电子书阅读器应用程序......我可以像iBooks应用程序那样工作。 我用:电子书阅读器应用程序的问题
CFURLRef pdfURL = CFBundleCopyResourceURL(CFBundleGetMainBundle(), CFSTR("paper.pdf"), NULL, NULL);
pdf = CGPDFDocumentCreateWithURL((CFURLRef)pdfURL);
CFRelease(pdfURL);
- (void) renderPageAtIndexNSUInteger)index inContextCGContextRef)ctx
{
CGPDFPageRef page = CGPDFDocumentGetPage(pdf, index + 1);
CGAffineTransform transform = aspectFit(CGPDFPageGetBoxRect(page, kCGPDFMediaBox), CGContextGetClipBoundingBox(ctx));
CGContextConcatCTM(ctx, transform);
CGContextDrawPDFPage(ctx, page);
}
但问题如何调整字体或文本颜色?我无法找到任何可以更改属性的方法或委托。
请教。