Pdf rendering in quartz

Swiftlikeninja's picture

I have noticed that the image patch has the ability to explode all images contained within a pdf. This is great and I just now realized this (I feel slow). this is perfect for multi page pdfs. Any one know any way to get this ability on dynamic sources? With the image patch you have to import a image via the settings tab. I would love to use pdfs in a compiled app with something akin to the image importer patch.

Any direction is greatly appreciated.

S-Ninja

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

jean_pierre's picture
Re: Pdf rendering in quartz

if i understand correctly, you'd like to create an image importer specifically for PDF files which had a page number input port and an image output port? if so, it would be pretty easy to create a custom plug-in that accomplished this through PDFKit.

usefuldesign.au's picture
Re: Pdf rendering in quartz

There's the Kineme PDF patch. I had a an issue with an weird bug that effected all Viewer windows in QC Editor (on Leopard) but nobody has confirmed the bug.

The output is superior in quality to Image Downloader patch. Multipage PDF is a good way to bring your artwork's layers into QC.

Also look at Kineme's Directory (Blocking) scanner patch for finding files using URIs/filepaths to directories.

Swiftlikeninja's picture
Re: Pdf rendering in quartz

yea, Mattgolsen had some quirky issues with the kineme pdf patch which caused me to want to steer clear of it, but i will be checking it out in the near future. Ill also investigate the pdfkit mentioned by jean pierre but unfortunately I don't have a lick of experience in xcode or custom patch development.

mattgolsen's picture
Re: Pdf rendering in quartz

Yeah I noticed that the Kineme PDF Renderer doesn't like to load anything from a URL, any ideas?

jean_pierre's picture
Re: Pdf rendering in quartz

actually Quartz/CoreGraphics has a much friendlier API for PDF page drawing without the strange background/shadow page chrome that PDFKit provides.

attached below is a simple plugin that takes a file URL to a PDF document, a page number and destination dimensions and kicks out an image, give it a spin to see if it helps.

PreviewAttachmentSize
PeteyPablo-0.1.0.zip25.19 KB