I've recently been creating indexed PDF files with a Fujitsu ScanSnap iX1500 document scanner.
When I upload these PDFs to my Alfresco (Alfresco Community Build 201612, Alfresco Platform 5.2.d, Alfresco Share 5.2.c) and then want to view them, they are not displayed properly in the viewer. I only see a blank sheet. Shades from scanning (in shades of gray) can also sometimes be seen. However, if I use the magnifying glass to search in the preview, the search terms are found and on the sheet that is only displayed in white, the place where the word normally appears is marked in blue.
I can also mark the entire area on the sheet with the mouse and then transfer it to an editor via copy and paste. Then you have the text in the editor. The text is therefore present in the preview but is not displayed, only the background of the PDF document. What can be the reason?
The very small thumbnails in the file overview in a folder are OK.
regards
Daniel
Alfresco is using PDF.js for that (https://mozilla.github.io/pdf.js/).
Try those files on a recent Alfresco version to check if that ifxes the issue.
Thank you for the quick feedback. Yes, it works in a current environment (at my work). But at home I wanted to stay on the older version if possible, because it is so compact and not all components (web server, database,...) individually are installed. At that time I had chosen this all in one installation version (on Debian Linux). This is very beneficial for backup and recovery. It would be nice if I knew how to fix the error in the old version 5. Possibly only one binary needs to be exchanged.
You may try upgrading the PDFjs version in Alfresco 5, but not sure if that is doable.
Hello,
I've the exact same problem in my Alfresco 5.2 instance.
Can you please give us some guidelines to update the pdf.js lib in this Alfresco instance?
I've already tried to update the share.war without success.
Thank you in advance!
Yes, I would also be interested in a procedure for updating pdf.js in ALfresco 5.2. I had started installing an up-to-date Alfresco using Docker. But putting the whole thing behind an Apache reverse proxy for SSL is impossibly complicated.
I would therefore like to stay with my 5.2 version, since I already have SSL access via proxy in operation.
Can anyone help with pdf.js update?
Thank you and best regards...
The following topic helped me a lot to fix this issue:
I've updated the pdfjs lib in Alfresco share.war to the latest version and applied the diff changes shown in the topic to PdfJs.js file.
I hope this can help you too.
Best Regards
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.