× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




We have been converting our reports to PDF on the AS/400 and
placing them either in the IFS or onto a NT file server
using CPYTOSTMF.

I'm surprised to hear that you're using CPYTOSTMF. Are the original PDF documents in physical files? If not, what type of object are they stored in?

I would've assumed that they were originally in the IFS (in which case, using CPYTOSTMF would make no sense)


When we open these files (on the Linux box) using Windows
explorer they open fine.

Windows explorer can't read PDFs. Do you mean that you're using Windows explorer to open Acrobat Reader?

When we try to open these files (on the Linux box) from a
web browser we get an adobe error "File damaged cannot be
opened.."

What happens if you try opening them directly with Acrobat Reader (or are you using xPDF? or GhostView? or...?)

If we create the files in the IFS and copy them to the Linux
box they open fine from the Web Browser.

Have you looked to see what's different when they're created in the IFS and then copied instead of (whatever the alternative is?)

In other words, have you looked at the contents of the files to see what's being changed?

I'm very suspcious of CPYTOSTMF, since that program is really designed for copying text. PDF files are not purely text, they contain binary data. You should therefore not ever do character translations, unless there's something weird about the way you're creating them that accounts for why you'd have to translate them.

But then, PDF documents are stream files, so I don't see how they could be stored in a PF in the first place, so I'm a little lost.



Someone else says it could be an authority issue when a file
is placed on the Linux there are more authorities then on
the iSeries

No, it's the other way around, the iSeries has more authorities. I don't see how this could be an authority issue. If it were, the problem wouldn't be that the document is corrupt, the problem would be that you can't write the document or that you can't read it.

How are you mounting the Linux drive?  via NFS?  SMB?  some other way?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.