AnsweredAssumed Answered

PDF/DOC Thumbnails

Question asked by jimmykirk on May 7, 2010
Latest reply on May 11, 2010 by jimmykirk
I understand that the conversion for documents is as follows:

Upload Word Doc >> Transform to PDF >> Transform to PNG thumbnail.

Upload PDF >> Transform to PNG thumbnail

I can preview my documents (XLS, DOC, PDF) and search the contents of them. However, thumbnails are not working for PDF, DOC, XLS. Thumbnails work for JPG/GIF/PNG/ETC.

I have installed SWFTOOLS 0.9.x and ImageMagick 6.6.1-5.x86_64 from source. I have also installed XPDF separately.

Here is my catalina.out when I upload a PDF…

10:51:14,510 User:jimmy DEBUG [content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: application/pdf
   target mimetype: text/plain
   transformers: [PdfBoxContentTransformer[ average=71ms]]
10:51:14,890 User:jimmy DEBUG [repo.thumbnail.ThumbnailServiceImpl] Creating thumbnail (node=workspace://SpacesStore/c017ef94-8556-4ba1-8ff7-d0d007880d33; contentProperty={http://www.alfresco.org/model/content/1.0}content; mimetype=image/png
10:51:14,890 User:jimmy DEBUG [repo.thumbnail.ThumbnailServiceImpl] Getting thumbnail by name (nodeRef=workspace://SpacesStore/c017ef94-8556-4ba1-8ff7-d0d007880d33; contentProperty={http://www.alfresco.org/model/content/1.0}content; thumbnailName=doclib)
10:51:14,918 User:System DEBUG [content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: application/pdf
   target mimetype: image/png
   transformers: [ComplexContentTransformer[ average=60000ms]]
10:51:14,919 User:System DEBUG [content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: application/pdf
   target mimetype: image/png
   transformers: [ComplexContentTransformer[ average=60000ms]]
10:51:14,919 User:System DEBUG [content.transform.FailoverContentTransformer] Transformation attempt 1 of 2: PdfToImageContentTransformer[ average=217ms]
10:51:14,925 User:System INFO  [content.transform.PdfToImageContentTransformer] File being transformed is of pdf version 1.5
10:51:15,082 User:System DEBUG [content.transform.AbstractContentTransformer2] Completed transformation:
   reader: ContentAccessor[ contentUrl=store://2010/5/7/10/51/4b6f2e45-3448-4f8c-aa82-61ff3c43c740.bin, mimetype=application/pdf, size=819264, encoding=UTF-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store:///opt/Alfresco/tomcat/temp/Alfresco/FailoverTransformer_intermediate_PdfToImageContentTransformer_3678353014536893493.png, mimetype=image/png, size=16058, encoding=UTF-8, locale=en_US]
   options: ImageTransformationOptions[ commandOptions=, resizeOptions=org.alfresco.repo.content.transform.magick.ImageResizeOptions@491b5f38]
   transformer: PdfToImageContentTransformer[ average=216ms]
10:51:15,083 User:System INFO  [content.transform.FailoverContentTransformer] Transformation was successful
10:51:15,083 User:System DEBUG [content.transform.AbstractContentTransformer2] Completed transformation:
   reader: ContentAccessor[ contentUrl=store://2010/5/7/10/51/4b6f2e45-3448-4f8c-aa82-61ff3c43c740.bin, mimetype=application/pdf, size=819264, encoding=UTF-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store:///opt/Alfresco/tomcat/temp/Alfresco/ComplextTransformer_intermediate_pdf_2242331492855775429.png, mimetype=image/png, size=16058, encoding=UTF-8, locale=en_US]
   options: ImageTransformationOptions[ commandOptions=, resizeOptions=org.alfresco.repo.content.transform.magick.ImageResizeOptions@491b5f38]
   transformer: FailoverContentTransformer[ average=218ms]
10:51:19,196 User:jimmy DEBUG [repo.thumbnail.ThumbnailServiceImpl] Getting thumbnail by name (nodeRef=workspace://SpacesStore/602b8c92-a205-40fd-9d9d-dd6c44f1c4ef; contentProperty={http://www.alfresco.org/model/content/1.0}content; thumbnailName=doclib)
10:51:19,205 User:jimmy DEBUG [repo.thumbnail.ThumbnailServiceImpl] Getting thumbnail by name (nodeRef=workspace://SpacesStore/c017ef94-8556-4ba1-8ff7-d0d007880d33; contentProperty={http://www.alfresco.org/model/content/1.0}content; thumbnailName=doclib)
10:51:19,230 User:jimmy DEBUG [repo.thumbnail.ThumbnailServiceImpl] Creating thumbnail (node=workspace://SpacesStore/c017ef94-8556-4ba1-8ff7-d0d007880d33; contentProperty={http://www.alfresco.org/model/content/1.0}content; mimetype=image/png
10:51:19,230 User:jimmy DEBUG [repo.thumbnail.ThumbnailServiceImpl] Getting thumbnail by name (nodeRef=workspace://SpacesStore/c017ef94-8556-4ba1-8ff7-d0d007880d33; contentProperty={http://www.alfresco.org/model/content/1.0}content; thumbnailName=doclib)
10:51:19,245 User:System DEBUG [content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: application/pdf
   target mimetype: image/png
   transformers: [ComplexContentTransformer[ average=60000ms]]
10:51:19,246 User:System DEBUG [content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: application/pdf
   target mimetype: image/png
   transformers: [ComplexContentTransformer[ average=60000ms]]
10:51:19,246 User:System DEBUG [content.transform.FailoverContentTransformer] Transformation attempt 1 of 2: PdfToImageContentTransformer[ average=216ms]
10:51:19,251 User:System INFO  [content.transform.PdfToImageContentTransformer] File being transformed is of pdf version 1.5
10:51:19,309 User:jimmy DEBUG [repo.thumbnail.ThumbnailServiceImpl] Getting thumbnail by name (nodeRef=workspace://SpacesStore/c017ef94-8556-4ba1-8ff7-d0d007880d33; contentProperty={http://www.alfresco.org/model/content/1.0}content; thumbnailName=doclib)
10:51:19,377 User:System DEBUG [content.transform.AbstractContentTransformer2] Completed transformation:
   reader: ContentAccessor[ contentUrl=store://2010/5/7/10/51/4b6f2e45-3448-4f8c-aa82-61ff3c43c740.bin, mimetype=application/pdf, size=819264, encoding=UTF-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store:///opt/Alfresco/tomcat/temp/Alfresco/FailoverTransformer_intermediate_PdfToImageContentTransformer_6647306408145766733.png, mimetype=image/png, size=16058, encoding=UTF-8, locale=en_US]
   options: ImageTransformationOptions[ commandOptions=, resizeOptions=org.alfresco.repo.content.transform.magick.ImageResizeOptions@73ffed21]
   transformer: PdfToImageContentTransformer[ average=215ms]
10:51:19,378 User:System INFO  [content.transform.FailoverContentTransformer] Transformation was successful
10:51:19,378 User:System DEBUG [content.transform.AbstractContentTransformer2] Completed transformation:
   reader: ContentAccessor[ contentUrl=store://2010/5/7/10/51/4b6f2e45-3448-4f8c-aa82-61ff3c43c740.bin, mimetype=application/pdf, size=819264, encoding=UTF-8, locale=en_US]
   writer: ContentAccessor[ contentUrl=store:///opt/Alfresco/tomcat/temp/Alfresco/ComplextTransformer_intermediate_pdf_8888903913316955015.png, mimetype=image/png, size=16058, encoding=UTF-8, locale=en_US]
   options: ImageTransformationOptions[ commandOptions=, resizeOptions=org.alfresco.repo.content.transform.magick.ImageResizeOptions@73ffed21]
   transformer: FailoverContentTransformer[ average=217ms]
10:51:22,342  INFO  [post.lookup.PostLookup] Update: 1 activity posts

Any ideas?

Outcomes