I have borrowed the code from the D7 version of this module, and ported it to work with the Custom Formatters module:

http://drupal.org/project/custom_formatters

The code to accomplish this can be found here:

http://drupal.org/node/1513956

The only problem I have run into, is with displaying the rendered files when they are saved in the "private" directory, and the site is set to "Private Downloads".

Comments

juanjo_vlc’s picture

Please, take a look at 7.x-2.0 release, it uses image styles.

wOOge’s picture

Version: 7.x-1.x-dev » 7.x-2.0

Thanks for updating it! — I tried it out — seems to be an issue with the rendered image not showing (I'm using private file system):

The previews are save in:

/sites/default/files/private/pdfpreview/[rendered_jpeg].jpg

But when you view the node, the image being called up is:

/system/files/styles/asset_preview/private/pdfpreview/[rendered_jpeg].jpg

Looks like the /styles/asset_preview part of the path is coming from the image style setting, but this is not where PDFPreview is actually saving it.

juanjo_vlc’s picture

Hi wOOge,
I've no experience with private filesystems, I will prepare a test server and take a look.

I suposse other images are working fine with the same image style.
Original style work fine?

wOOge’s picture

Yup — images handled by the image module, and core image styles are showing no problem with private file system on.

mstrelan’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)
Related issues: +#2553845: Preview image should use same file system as that of its parent PDF

The first part of this is fixed in 7.x-2.x and beyond. The second part is a duplicate of #2553845: Preview image should use same file system as that of its parent PDF.