12-09-2016 07:46 AM
Hi,
I installed Alfresco on windows with the installer and disabled libreoffice. I tried to install it later as described in the documentation here Installing LibreOffice | Alfresco Documentation and there are some problems.
I can see the preview of txt files just fine but when i try to see the preview of docx files a windows pops up that says "unable to open the PDF document" (or something along those lines).
What i don't understand is why it works for txt files but not for docx files.
12-12-2016 07:58 AM
If you are running Alfresco on Windows then there is a path length limit that may prevent previews from being generated. This is a known issue.
12-12-2016 12:53 AM
Unfortunately it is difficult to help from this information. Have you tried running conversions on the affected documents from the command line yourself? Depending on the way you have installed LibreOffice there may be some components missing, e.g. a customer of mine once installed it from the repository specific to his Linux distribution and simply forgot to install one of the dozen software packages that compose LibreOffice.
If you are using Alfresco Enterprise Edition you can install the Alfresco Support Tools addon to test transformations via the admin console. If you run Alfresco Community Edition you can build and install the Community Support Tools addon for the same feature.
12-12-2016 05:15 AM
I hve an even stranger problem now, friday on my test machine (with libreoffice installed with the alfresco installer) i could see docx previews correctly while today i can only see the first page of the pdf and no lateral scroll bar or page selector on top is shown
EDIT:
restarting the tomcat server fixed this last problem, strange (it was running for less than an hour)
12-12-2016 05:17 AM
This is just the fallback to a different kind of preview when the PDF preview is not available. The docx file contains a thumbnail of the first page and this is displayed as a static preview in this case.
12-12-2016 05:22 AM
Oh ok, i wasn't aware of that functionality, as of today on the machine that i tried installing libreoffice on later i can see only some of the previews for the same MIME type (can see preview of document x.docx but not y.docx), also on my test machine i have a button "Edit in Microsoft Office" in the preview page while on the other i don't have it even when the preview is shown. Any idea what might cause this? Later today i'll try to install libreoffice again checking all the dependencies necessary and if i'm missing any
12-12-2016 05:29 AM
"Edit in Microsoft Office" is unrelated to the preview and dependant on the mimetype, location (within a site), browser and presence of an addon module in Alfresco. If e.g. the mimetype is not correctly associated with a document the action may not be shown, and an incorrect mimetype may also result in a preview not to be shown. The name of the file is only an indicator of the mimetype, used by Alfresco to gues the mimetype during upload but it can be overriden by a careless user.
12-12-2016 06:05 AM
So, let me understand this. To get the MIME type Alfresco takes the extension after the last "."? I'm not really sure i understood the ocation bit, if it's in a site or in the repository might not make the edit button show?
12-12-2016 06:25 AM
I believe my response explained how the "Edit in Microsoft Office" action is dependant on the location. This statement did and does not apply to the preview.
12-12-2016 07:14 AM
sorry it was a typo on my end.
Is it possible that the preview will not show if the MIME type is not recognized/wrong? Since i can't see the edit in office button that might be the root of the problem
12-12-2016 07:17 AM
I believe I also mentioned that in my response. Previews are always using the mimetype to determine how they can be generated and if they are supported at all, so an incorrectly determined mimetype may result in a failure to show a preview.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.