On Jun 19, 2008, at 4:35 PM, Torsten Curdt wrote:
I would like to convert a PDF of any size so it fits to A4/Letter. I would also like to reduce it to gray scale. This all without displaying anything.
PDFKit gives you -[PDFPage setBounds:forBox] which would easily give you A4/Letter size if that is what you specified. However, no scaling is done. A PDFPage subclass could be fairly easily written that would do the scaling though....
Look at QuartzFilters (in Quartz.framework) — this is where you can create a filter for converting to greyscale. PDFDocument allows you to pass in a QuartzFilter in the save methods (in the options dictionary) if you want to apply this Quartz Filter on saving.
So, PDF Kit can I think do what you want. John Calhoun—_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]