On Feb 3, 2010, at 16:30, Adam R. Maxwell wrote: > > On Feb 3, 2010, at 6:29 AM, Duke Normandin wrote: > >> I assume you are implying that Apple's pdfKit is open-source? Then would >> not appKit be hackable then? Or is the API the only thing available to >> the developer? > > PDF Kit is not open source, and there is no API in PDF Kit for setting a > page's background color; you'd have to use a subclass of PDFPage and handle > all of the drawing. For the page itself, this would be easy using > CoreGraphics to draw the -pageRef, but I'm not sure about the annotations. > Also, this would not work for all PDF files, since some already have a page > background.
Actually, the background is not drawn by PDFPage, it's drawn by a private view class in PDFKit. So this would be far from easy, it would mean rewriting PDFKit from scratch (well, starting from CoreGraphics that is). Christiaan ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Skim-app-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/skim-app-users
