Article ID: 125703, created on Jun 2, 2015, last review on Jun 2, 2015

  • Applies to:
  • Odin Business Automation Standard 4.5

Symptoms

PDF file generated by OBAS are corrupted.

When an invoice generated under Top > Billing Director > Receivable > Documents > Any invoice > Download PDF is opened, the following error is shown:

Adobe Reader could not open 'name_file.pdf' because it is either not a supported file type or because the files has been damaged.

At the same time, in `/var/log/hspcd/error_log there is an error like

/usr/bin/htmldoc: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
rm: cannot remove `/tmp/name_file.pdf': No such file or directory

Cause

The libpng package is missing on the node as it can be verified with the rpm command:

[root@pbas ~]# rpm -qa | grep libpng
[root@pbas ~]#

Resolution

Install the libpng package with yum:

# yum install libpng

Search Words

PDF

Adobe Reader could not open 'name_file.pdf' because it is either not a supported file type or because the files has been damaged

error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

yum

libpng

624ca542e40215e6f1d39170d8e7ec75 caea8340e2d186a540518d08602aa065 400e18f6ede9f8be5575a475d2d6b0a6 70a5401e8b9354cd1d64d0346f2c4a3e

Email subscription for changes to this article
Save as PDF