cancel
Showing results for 
Search instead for 
Did you mean: 

This document cannot be previewed.

ALfreSara
Confirmed Champ
Confirmed Champ

Hello The preview of a document from the word or TXT type document repository does not appear on the browser.

version alfresco:5.0.4

04040022 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 04040020 Unsupported transformation: text/plain to application/pdf

Thanks for your help

1 ACCEPTED ANSWER

EddieMay
World-Class Innovator
World-Class Innovator

Hi @ALfreSara,

Take look at this thread also - perhaps modify settings in alfresco-global.properties & restart tomcat.

HTH,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

View answer in original post

5 REPLIES 5

EddieMay
World-Class Innovator
World-Class Innovator

Hi @ALfreSara,

Take a look at this thread - there's a wealth of info there that might help.

Cheers,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

How to ensure that the transformation is supported?
know that the error on my screen is that the preview could not be retrieved from the server.
Lists all transformer properties that are set:

# LOG and DEBUG history sizes
# JodConverter.2Pdf
# -----------------
# content.transformer.JodConverter.2Pdf.available=false
# content.transformer.JodConverter.2Pdf.failover=JodConverter|JodConverter.Html2Pdf
# content.transformer.JodConverter.2Pdf.priority=150
# content.transformer.JodConverter.2Pdf.extensions.*.pdf.supported=true

# JodConverter.Html2Pdf
# ---------------------
# content.transformer.JodConverter.Html2Pdf.pipeline=JodConverter|odt|JodConverter
# content.transformer.JodConverter.Html2Pdf.extensions.html.pdf.priority=50
# content.transformer.JodConverter.Html2Pdf.extensions.html.pdf.supported=true

# JodConverter
# ------------
# Transformations supported by OpenOffice/LibreOffice
# content.transformer.JodConverter.priority=110
# content.transformer.JodConverter.extensions.*.docm.supported=false
# content.transformer.JodConverter.extensions.*.docx.supported=false
# content.transformer.JodConverter.extensions.*.dotm.supported=false
# content.transformer.JodConverter.extensions.*.dotx.supported=false
# content.transformer.JodConverter.extensions.*.potm.supported=false
# content.transformer.JodConverter.extensions.*.potx.supported=false
# content.transformer.JodConverter.extensions.*.ppam.supported=false
# content.transformer.JodConverter.extensions.*.ppsm.supported=false
# content.transformer.JodConverter.extensions.*.ppsx.supported=false
# content.transformer.JodConverter.extensions.*.pptm.supported=false
# content.transformer.JodConverter.extensions.*.pptx.supported=false
# content.transformer.JodConverter.extensions.*.sldm.supported=false
# content.transformer.JodConverter.extensions.*.sldx.supported=false
# content.transformer.JodConverter.extensions.*.txt.supported=false
# content.transformer.JodConverter.extensions.*.xlam.supported=false
# content.transformer.JodConverter.extensions.*.xlsb.supported=false
# content.transformer.JodConverter.extensions.*.xlsm.supported=false
# content.transformer.JodConverter.extensions.*.xlsx.supported=false
# content.transformer.JodConverter.extensions.*.xltm.supported=false
# content.transformer.JodConverter.extensions.*.xltx.supported=false
# content.transformer.JodConverter.extensions.doc.pdf.maxSourceSizeKBytes=10240
# content.transformer.JodConverter.extensions.docm.pdf.maxSourceSizeKBytes=768
content.transformer.JodConverter.extensions.docx.pdf.maxSourceSizeKBytes=10204  # default=768
# content.transformer.JodConverter.extensions.dotm.pdf.maxSourceSizeKBytes=768
# content.transformer.JodConverter.extensions.dotx.pdf.maxSourceSizeKBytes=768
# content.transformer.JodConverter.extensions.html.pdf.supported=false
# content.transformer.JodConverter.extensions.potm.pdf.maxSourceSizeKBytes=4096
# content.transformer.JodConverter.extensions.potx.pdf.maxSourceSizeKBytes=4096
# content.transformer.JodConverter.extensions.ppam.pdf.maxSourceSizeKBytes=4096
# content.transformer.JodConverter.extensions.ppsm.pdf.maxSourceSizeKBytes=4096
# content.transformer.JodConverter.extensions.ppsx.pdf.maxSourceSizeKBytes=4096
# content.transformer.JodConverter.extensions.ppt.pdf.maxSourceSizeKBytes=6144
# content.transformer.JodConverter.extensions.pptm.pdf.maxSourceSizeKBytes=4096
# content.transformer.JodConverter.extensions.pptx.pdf.maxSourceSizeKBytes=4096
# content.transformer.JodConverter.extensions.sldm.pdf.maxSourceSizeKBytes=4096
# content.transformer.JodConverter.extensions.sldx.pdf.maxSourceSizeKBytes=4096
# content.transformer.JodConverter.extensions.txt.pdf.maxSourceSizeKBytes=5120
# content.transformer.JodConverter.extensions.vsd.pdf.maxSourceSizeKBytes=4096
# content.transformer.JodConverter.extensions.vsdx.pdf.maxSourceSizeKBytes=4096
# content.transformer.JodConverter.extensions.xlam.pdf.maxSourceSizeKBytes=1536
# content.transformer.JodConverter.extensions.xls.pdf.maxSourceSizeKBytes=10240
# content.transformer.JodConverter.extensions.xlsb.pdf.maxSourceSizeKBytes=1536
# content.transformer.JodConverter.extensions.xlsm.pdf.maxSourceSizeKBytes=1536
# content.transformer.JodConverter.extensions.xlsx.pdf.maxSourceSizeKBytes=1536
# content.transformer.JodConverter.extensions.xltm.pdf.maxSourceSizeKBytes=1536
# content.transformer.JodConverter.extensions.xltx.pdf.maxSourceSizeKBytes=1536

t.transformer.OOXML.priority=130

# OOXMLThumbnail
# --------------
# Only supports extraction of embedded jpegs from OOXML formats
# content.transformer.OOXMLThumbnail.extensions.dotx.jpg.priority=50
# content.transformer.OOXMLThumbnail.extensions.potx.jpg.priority=50

# Office
# ------
# Only supports doc, vsd, mpp, ppt or msg to txt, html, xhtml or xml
# content.transformer.Office.priority=130

# OpenOffice.2Pdf
# ---------------
# content.transformer.OpenOffice.2Pdf.available=false
# content.transformer.OpenOffice.2Pdf.failover=OpenOffice|OpenOffice.Html2Pdf
# content.transformer.OpenOffice.2Pdf.priority=150
# content.transformer.OpenOffice.2Pdf.extensions.*.pdf.supported=true

# OpenOffice
# ----------
# Transformations supported by OpenOffice/LibreOffice
# content.transformer.OpenOffice.priority=110
# content.transformer.OpenOffice.extensions.*.docm.supported=false
content.transformer.OpenOffice.extensions.*.docx.supported=true  # default=false
# content.transformer.OpenOffice.extensions.*.dotm.supported=false
# content.transformer.OpenOffice.extensions.*.dotx.supported=false
# content.transformer.OpenOffice.extensions.*.potm.supported=false
# content.transformer.OpenOffice.extensions.*.potx.supported=false
# content.transformer.OpenOffice.extensions.*.ppam.supported=false
# content.transformer.OpenOffice.extensions.*.ppsm.supported=false
# content.transformer.OpenOffice.extensions.*.ppsx.supported=false
# content.transformer.OpenOffice.extensions.*.pptm.supported=false
# content.transformer.OpenOffice.extensions.*.pptx.supported=false
# content.transformer.OpenOffice.extensions.*.sldm.supported=false
# content.transformer.OpenOffice.extensions.*.sldx.supported=false
# content.transformer.OpenOffice.extensions.*.txt.supported=false
# content.transformer.OpenOffice.extensions.*.xlam.supported=false
# content.transformer.OpenOffice.extensions.*.xlsb.supported=false
# content.transformer.OpenOffice.extensions.*.xlsm.supported=false
# content.transformer.OpenOffice.extensions.*.xlsx.supported=false
# content.transformer.OpenOffice.extensions.*.xltm.supported=false
# content.transformer.OpenOffice.extensions.*.xltx.supported=false
# content.transformer.OpenOffice.extensions.doc.pdf.maxSourceSizeKBytes=10240
# content.transformer.OpenOffice.extensions.docm.pdf.maxSourceSizeKBytes=768
content.transformer.OpenOffice.extensions.docx.pdf.maxSourceSizeKBytes=10240  # default=768
# content.transformer.OpenOffice.extensions.dotm.pdf.maxSourceSizeKBytes=768
# content.transformer.OpenOffice.extensions.dotx.pdf.maxSourceSizeKBytes=768
# content.transformer.OpenOffice.extensions.html.pdf.supported=false
# content.transformer.OpenOffice.extensions.potm.pdf.maxSourceSizeKBytes=4096
# content.transformer.OpenOffice.extensions.potx.pdf.maxSourceSizeKBytes=4096
# content.transformer.OpenOffice.extensions.ppam.pdf.maxSourceSizeKBytes=4096
# content.transformer.OpenOffice.extensions.ppsm.pdf.maxSourceSizeKBytes=4096
# content.transformer.OpenOffice.extensions.ppsx.pdf.maxSourceSizeKBytes=4096
# content.transformer.OpenOffice.extensions.ppt.pdf.maxSourceSizeKBytes=6144
# content.transformer.OpenOffice.extensions.pptm.pdf.maxSourceSizeKBytes=4096
# content.transformer.OpenOffice.extensions.pptx.pdf.maxSourceSizeKBytes=4096
# content.transformer.OpenOffice.extensions.sldm.pdf.maxSourceSizeKBytes=4096
# content.transformer.OpenOffice.extensions.sldx.pdf.maxSourceSizeKBytes=4096
# content.transformer.OpenOffice.extensions.txt.pdf.maxSourceSizeKBytes=5120
# content.transformer.OpenOffice.extensions.vsd.pdf.maxSourceSizeKBytes=4096
# content.transformer.OpenOffice.extensions.vsdx.pdf.maxSourceSizeKBytes=4096
# content.transformer.OpenOffice.extensions.xlam.pdf.maxSourceSizeKBytes=1536
# content.transformer.OpenOffice.extensions.xls.pdf.maxSourceSizeKBytes=10240
# content.transformer.OpenOffice.extensions.xlsb.pdf.maxSourceSizeKBytes=1536
# content.transformer.OpenOffice.extensions.xlsm.pdf.maxSourceSizeKBytes=1536
# content.transformer.OpenOffice.extensions.xlsx.pdf.maxSourceSizeKBytes=1536
# content.transformer.OpenOffice.extensions.xltm.pdf.maxSourceSizeKBytes=1536
# content.transformer.OpenOffice.extensions.xltx.pdf.maxSourceSizeKBytes=1536


# Pdf2swf
# -------
# content.transformer.Pdf2swf.maxSourceSizeKBytes=5120
# content.transformer.Pdf2swf.extensions.ai.swf.supported=true
# content.transformer.Pdf2swf.extensions.pdf.swf.supported=true

# TikaAuto
# --------
# Only supports vsd, dotx, ppsm, pptm, key, ots, xls, docm, pdf, mpp, rss, cdf, html, pptx, ott, hdf, xml, numbers, xhtml, jar, xlsm, java, dotm, sxw, ppam, xltx, ppt, potx, xlsx, odm, xlam, docx, oth, doc, rtf, odt, odp, odc, ogx, gzip, ods, txt, odi, pages, cpio, otp, ppsx or xltm to txt, html, xhtml or xml
# content.transformer.TikaAuto.priority=120
# content.transformer.TikaAuto.extensions.bin.txt.supported=false

# complex.Any.Image
# -----------------
# content.transformer.complex.Any.Image.pipeline=*|jpg|ImageMagick
# content.transformer.complex.Any.Image.priority=400

# complex.JodConverter.Image
# --------------------------
# content.transformer.complex.JodConverter.Image.pipeline=JodConverter.2Pdf|pdf|complex.PDF.Image
# content.transformer.complex.JodConverter.Image.priority=250

# complex.JodConverter.Pdf2swf
# ----------------------------
# content.transformer.complex.JodConverter.Pdf2swf.pipeline=JodConverter.2Pdf|pdf|Pdf2swf
# content.transformer.complex.JodConverter.Pdf2swf.priority=150
# content.transformer.complex.JodConverter.Pdf2swf.extensions.doc.swf.maxSourceSizeKBytes=1536
# content.transformer.complex.JodConverter.Pdf2swf.extensions.docm.swf.maxSourceSizeKBytes=256
# content.transformer.complex.JodConverter.Pdf2swf.extensions.docx.swf.maxSourceSizeKBytes=256
# content.transformer.complex.JodConverter.Pdf2swf.extensions.dotm.swf.maxSourceSizeKBytes=256
# content.transformer.complex.JodConverter.Pdf2swf.extensions.dotx.swf.maxSourceSizeKBytes=256
# content.transformer.complex.JodConverter.Pdf2swf.extensions.potm.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.JodConverter.Pdf2swf.extensions.potx.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.JodConverter.Pdf2swf.extensions.ppam.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.JodConverter.Pdf2swf.extensions.ppsm.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.JodConverter.Pdf2swf.extensions.ppsx.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.JodConverter.Pdf2swf.extensions.ppt.swf.maxSourceSizeKBytes=6144
# content.transformer.complex.JodConverter.Pdf2swf.extensions.pptm.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.JodConverter.Pdf2swf.extensions.pptx.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.JodConverter.Pdf2swf.extensions.sldm.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.JodConverter.Pdf2swf.extensions.sldx.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.JodConverter.Pdf2swf.extensions.txt.swf.maxSourceSizeKBytes=5120
# content.transformer.complex.JodConverter.Pdf2swf.extensions.vsd.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.JodConverter.Pdf2swf.extensions.vsdx.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.JodConverter.Pdf2swf.extensions.xlam.swf.maxSourceSizeKBytes=1024
# content.transformer.complex.JodConverter.Pdf2swf.extensions.xls.swf.maxSourceSizeKBytes=1024
# content.transformer.complex.JodConverter.Pdf2swf.extensions.xlsb.swf.maxSourceSizeKBytes=1024
# content.transformer.complex.JodConverter.Pdf2swf.extensions.xlsm.swf.maxSourceSizeKBytes=1024
# content.transformer.complex.JodConverter.Pdf2swf.extensions.xlsx.swf.maxSourceSizeKBytes=1024
# content.transformer.complex.JodConverter.Pdf2swf.extensions.xltm.swf.maxSourceSizeKBytes=1024
# content.transformer.complex.JodConverter.Pdf2swf.extensions.xltx.swf.maxSourceSizeKBytes=1024

# complex.JodConverter.PdfBox
# ---------------------------
# content.transformer.complex.JodConverter.PdfBox.pipeline=JodConverter.2Pdf|pdf|PdfBox
# content.transformer.complex.JodConverter.PdfBox.priority=150
# content.transformer.complex.JodConverter.PdfBox.extensions.doc.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.docm.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.docx.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.dotm.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.dotx.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.potm.txt.maxSourceSizeKBytes=1024
# content.transformer.complex.JodConverter.PdfBox.extensions.potx.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.ppam.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.ppsm.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.ppsx.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.ppt.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.pptm.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.pptx.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.sldm.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.sldx.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.txt.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.xlam.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.xls.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.xlsb.txt.maxSourceSizeKBytes=1024
# content.transformer.complex.JodConverter.PdfBox.extensions.xlsm.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.xlsx.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.xltm.txt.supported=false
# content.transformer.complex.JodConverter.PdfBox.extensions.xltx.txt.supported=false

# complex.Msg2swf
# ---------------
# content.transformer.complex.Msg2swf.pipeline=OutlookMsg|txt|*|pdf|Pdf2swf

# complex.OpenOffice.Image
# ------------------------
# content.transformer.complex.OpenOffice.Image.pipeline=OpenOffice.2Pdf|pdf|complex.PDF.Image
# content.transformer.complex.OpenOffice.Image.priority=250

# complex.OpenOffice.Pdf2swf
# --------------------------
# content.transformer.complex.OpenOffice.Pdf2swf.pipeline=OpenOffice.2Pdf|pdf|Pdf2swf
# content.transformer.complex.OpenOffice.Pdf2swf.priority=150
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.doc.swf.maxSourceSizeKBytes=1536
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.docm.swf.maxSourceSizeKBytes=256
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.docx.swf.maxSourceSizeKBytes=256
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.dotm.swf.maxSourceSizeKBytes=256
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.dotx.swf.maxSourceSizeKBytes=256
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.potm.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.potx.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.ppam.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.ppsm.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.ppsx.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.ppt.swf.maxSourceSizeKBytes=6144
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.pptm.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.pptx.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.sldm.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.sldx.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.txt.swf.maxSourceSizeKBytes=5120
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.vsd.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.vsdx.swf.maxSourceSizeKBytes=4096
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.xlam.swf.maxSourceSizeKBytes=1024
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.xls.swf.maxSourceSizeKBytes=1024
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.xlsb.swf.maxSourceSizeKBytes=1024
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.xlsm.swf.maxSourceSizeKBytes=1024
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.xlsx.swf.maxSourceSizeKBytes=1024
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.xltm.swf.maxSourceSizeKBytes=1024
# content.transformer.complex.OpenOffice.Pdf2swf.extensions.xltx.swf.maxSourceSizeKBytes=1024

    

EddieMay
World-Class Innovator
World-Class Innovator

Hi @ALfreSara,

Were you able to confirm the following:

  • openoffice/libreoffice installed + running,
  • transformation is not disabled,
  • source size limits are set according to your requirements?
Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

I want to mention that I am a beginner in alfresco:

this is what i'm going to check:
- for libreoffice I installed the latest version 6.4.3 and I launched soffice.exe.
- for transformation: here is what I did:
in the link http: // localhost: 8080 / alfresco / s / enterprise / admin / admin-testtransform
In Transformations By Transformer I chose jodConverter.
this is what shows me

image

- for the size I put simple test with file of 4 bytes.

please tell me how to check and resolve my problem.

EddieMay
World-Class Innovator
World-Class Innovator

Hi @ALfreSara,

Take look at this thread also - perhaps modify settings in alfresco-global.properties & restart tomcat.

HTH,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!