Beta
Nuxeo Answers
ask a question

Hello

it seems that when I upload a pdf to the DAM, it does not generate any thumbnails? Is this correct. I would like to be able to generate jpg thumbnails in the same way as pictures do. Is this possible?

Zahir

asked May 25 '12 at 15:55 systemz 1456 systemz's gravatar image

Yes, this is correct, no JPG preview is created for an uploaded PDF. If you click on the PDF icon in the preview pane, you will see a preview version in the annotation window. This would be a nice enhancement.

link
answered May 25 '12 at 16:35 bruce 1.5k203349 bruce's gravatar image
edited May 25 '12 at 16:36

Thanks - do you know if its possible to use the Extension Point system to modify this behaviour? I am not asking how, just whether its possible?

(May 25 '12 at 17:40) systemz

It is possible to change how PDF files are handled using a contribution <extension target="org.nuxeo.ecm.platform.filemanager.service.FileManagerService" point="plugins">. PDFs could be set to be handled by the Imageplugin by removing the PDF filter from the OfficeFileImporter and adding to the ImagePlugin definition.

However, having not tried this, I don't know the side-effects or whether a JPG image would be properly rendered from a PDF file.

A better approach would be to extend the OfficeFileImporter to generate JPG preview files if the file type is PDF. This is more complex but would allow PDFs to still be treated/classifed as Office Documents.

(May 25 '12 at 18:48) bruce
Your answer
toggle preview

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×51

Asked: May 25 '12 at 15:55

Seen: 559 times

Last updated: May 25 '12 at 18:48