|
Scott, Thanks for your reply, we my replies below > 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? [Reply>] Yes they are in PDF Files, that is why we use CPYTOSTMF 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? [Reply>] You are correct we are using Adobe Reader from Windows Explorer > 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...?) [Reply>] We are using Adobe Reader > 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? [Reply>] This is what I am doing next, I have visually glanced through the documents to make sure the characters [ and ] were OK (Depending on the code pages I have seen these not translate) but they were OK. I will have to compare the files byte by byte next but this can be time consuming 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. [Reply>] The process is the program that creates the PDF is creating them in a physical file then CPYTOSTMF is used to place them in the IFS or QNTC etc. I know the program could be changed to write directly to the stream file, but it is already done and I did not want to re-write that process > > 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. [Reply>] I thought the same How are you mounting the Linux drive? via NFS? SMB? some other way? [Reply>] AS400 is exporting a directory via NFS and is being mounted on the Linux machine
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.