Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.


If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping


Answers may be delayed for posts that do not include sufficient information.

PDFs Uploading as Binary/Not Displaying

edited September 10 in Troubleshooting

Hello. I'm currently running version 1.7.8 and am having issues with PDF files. They are being uploaded as binary files, not viewable in the viewer, and thumbnails are not being generated. I've verified the paths and versions of the necessary plugins (ghostscript, PDFMiner, PDFtoText) and all seem to be operating fine as per the configuration page (below). When I hit "download" on the summary pages in both Providence and Pawtucket they download as PDF files and display correctly using Acrobat in in the browser. However, I am not able to preview them in C/A and there are no thumbnails. We have TIFF support as a majority of our files are TIFFs. I've also tried playing with "dont_use_imagemagick_to_identify_pdfs" etc to fix the issue to no avail. I've tried searching the forum but have yet to find a solution that works. Any help is appreciated.

I've attached images showing the config page, what files look like when uploaded, and how they display in the viewer.

Thank you for your help.



Comments

  • edited September 12

    I've gotten to the point where the system will now recognize (most) PDFs. However, it will spit out an error (below) and fail to generate thumbnails, they are broken links. I'm not sure what this could be. Ghostscript is the latest version and the path is correct (even though this does not point to GS I know it's responsible for thumbnails). Any help would be appreciated.

    Error:
    Warning: filesize(): stat failed for /var/www/html/media/collectiveaccess/images/1/48241_ca_object_representations_media_122_iconlarge.jpg in /var/www/html/app/lib/Plugins/Media/PDFWand.php on line 698

    Warning: md5_file(/var/www/html/media/collectiveaccess/images/1/48241_ca_object_representations_media_122_iconlarge.jpg): failed to open stream: No such file or directory in /var/www/html/app/lib/BaseModel.php on line 4690

    Warning: filesize(): stat failed for /var/www/html/media/collectiveaccess/images/1/16869_ca_object_representations_media_122_tiny.jpg in /var/www/html/app/lib/Plugins/Media/PDFWand.php on line 698

    Warning: md5_file(/var/www/html/media/collectiveaccess/images/1/16869_ca_object_representations_media_122_tiny.jpg): failed to open stream: No such file or directory in /var/www/html/app/lib/BaseModel.php on line 4690

    Warning: filesize(): stat failed for /var/www/html/media/collectiveaccess/images/1/86350_ca_object_representations_media_122_thumbnail.jpg in /var/www/html/app/lib/Plugins/Media/PDFWand.php on line 698

    Warning: md5_file(/var/www/html/media/collectiveaccess/images/1/86350_ca_object_representations_media_122_thumbnail.jpg): failed to open stream: No such file or directory in /var/www/html/app/lib/BaseModel.php on line 4690

    Warning: filesize(): stat failed for /var/www/html/media/collectiveaccess/images/1/63474_ca_object_representations_media_122_widethumbnail.jpg in /var/www/html/app/lib/Plugins/Media/PDFWand.php on line 698

    Warning: md5_file(/var/www/html/media/collectiveaccess/images/1/63474_ca_object_representations_media_122_widethumbnail.jpg): failed to open stream: No such file or directory in /var/www/html/app/lib/BaseModel.php on line 4690

    Warning: filesize(): stat failed for /var/www/html/media/collectiveaccess/images/1/95933_ca_object_representations_media_122_preview.jpg in /var/www/html/app/lib/Plugins/Media/PDFWand.php on line 698

    Warning: md5_file(/var/www/html/media/collectiveaccess/images/1/95933_ca_object_representations_media_122_preview.jpg): failed to open stream: No such file or directory in /var/www/html/app/lib/BaseModel.php on line 4690

    Warning: filesize(): stat failed for /var/www/html/media/collectiveaccess/images/1/42712_ca_object_representations_media_122_preview170.jpg in /var/www/html/app/lib/Plugins/Media/PDFWand.php on line 698

    Warning: md5_file(/var/www/html/media/collectiveaccess/images/1/42712_ca_object_representations_media_122_preview170.jpg): failed to open stream: No such file or directory in /var/www/html/app/lib/BaseModel.php on line 4690

    Warning: filesize(): stat failed for /var/www/html/media/collectiveaccess/images/1/13875_ca_object_representations_media_122_widepreview.jpg in /var/www/html/app/lib/Plugins/Media/PDFWand.php on line 698

    Warning: md5_file(/var/www/html/media/collectiveaccess/images/1/13875_ca_object_representations_media_122_widepreview.jpg): failed to open stream: No such file or directory in /var/www/html/app/lib/BaseModel.php on line 4690

    Warning: filesize(): stat failed for /var/www/html/media/collectiveaccess/images/1/57646_ca_object_representations_media_122_small.jpg in /var/www/html/app/lib/Plugins/Media/PDFWand.php on line 698

    Warning: md5_file(/var/www/html/media/collectiveaccess/images/1/57646_ca_object_representations_media_122_small.jpg): failed to open stream: No such file or directory in /var/www/html/app/lib/BaseModel.php on line 4690

    Warning: filesize(): stat failed for /var/www/html/media/collectiveaccess/images/1/13440_ca_object_representations_media_122_medium.jpg in /var/www/html/app/lib/Plugins/Media/PDFWand.php on line 698

    Warning: md5_file(/var/www/html/media/collectiveaccess/images/1/13440_ca_object_representations_media_122_medium.jpg): failed to open stream: No such file or directory in /var/www/html/app/lib/BaseModel.php on line 4690

    Warning: filesize(): stat failed for /var/www/html/media/collectiveaccess/images/1/64369_ca_object_representations_media_122_mediumlarge.jpg in /var/www/html/app/lib/Plugins/Media/PDFWand.php on line 698

    Warning: md5_file(/var/www/html/media/collectiveaccess/images/1/64369_ca_object_representations_media_122_mediumlarge.jpg): failed to open stream: No such file or directory in /var/www/html/app/lib/BaseModel.php on line 4690

    Warning: filesize(): stat failed for /var/www/html/media/collectiveaccess/images/1/1066_ca_object_representations_media_122_large.jpg in /var/www/html/app/lib/Plugins/Media/PDFWand.php on line 698

    Warning: md5_file(/var/www/html/media/collectiveaccess/images/1/1066_ca_object_representations_media_122_large.jpg): failed to open stream: No such file or directory in /var/www/html/app/lib/BaseModel.php on line 4690

    Warning: filesize(): stat failed for /var/www/html/media/collectiveaccess/images/1/46150_ca_object_representations_media_122_page.jpg in /var/www/html/app/lib/Plugins/Media/PDFWand.php on line 698

    Warning: md5_file(/var/www/html/media/collectiveaccess/images/1/46150_ca_object_representations_media_122_page.jpg): failed to open stream: No such file or directory in /var/www/html/app/lib/BaseModel.php on line 4690

  • Still no luck with this. Hate to be a bother and bump this, but any ideas would be appreciated!

  • Are you on Windows? There's a thing I've found that has to be done with the registry for Ghostscript to work. I've also found that CA (at least on my installation) still doesn't like a good number of pdfs. I find converting to pdf/a and then uploading works.

  • sarahs: I am also running on a windows platform and I am interested in what you had to do in the registry to get Ghostscript to work. Can you please elaborate on that?

  • edited October 10

    We are running on Windows. I did get my installation to recognize PDFs and they display fine in the viewers; now the images from Ghostscript are just broken and display the errors from my post above.
    Error:
    Warning: filesize(): stat failed for /var/www/html/media/collectiveaccess/images/1/48241_ca_object_representations_media_122_iconlarge.jpg in /var/www/html/app/lib/Plugins/Media/PDFWand.php on line 698

    Warning: md5_file(/var/www/html/media/collectiveaccess/images/1/48241_ca_object_representations_media_122_iconlarge.jpg): failed to open stream: No such file or directory in /var/www/html/app/lib/BaseModel.php on line 4690

  • This is what worked for me. I have thumbnails being produced and the full-text indexed. There is a bug where the viewers don't work with pdfs in windows, but this is fixed in 1.7.9.

    “Ghostscript sets the 32-bit registry entries on a 64-bit machine. Windows 64 automatically redirects to a node called HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node. Export the 32-bit Ghostscript registry entries:
    • [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\GPL Ghostscript]
    • [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\GPL Ghostscript\8.70]
    • "GS_DLL"="C:\Program Files\gs\gs8.70\bin\gsdll32.dll"
    • "GS_LIB"="C:\Program Files\gs\gs8.70\lib;C:\Program Files\gs\fonts"

    and reimport them (just double click on the exported registry file). "

  • I misspoke -- we're *not running on Windows, we're running on Linux -- but hopefully this can help @murchmurch

  • Thank you for the info @sarahs

Sign In or Register to comment.