[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

[sqr-users] PDF E-mailed from PSUNX is corrupted



I'm using call system to e-mail an SQR generated PDF file from
PeopleSoft.  We're using PeopleTools 8.46.06 and the Acrobat Reader is
version 5.1.  When I receive the file as an attachment and click to
open, I get the message,
 
"Acrobat could not open '
_opt_psft_..._log_output_SQR_FAHRR009_51174_fahrr009_51174.PDF ' because
it is either not a supported file type or because the file has been
corrupted (for example, it was sent as an email attachment and wasn't
correctly decoded).".
 
This is what I have coded to avoid known issues with e-mailing PDF
files.

     ! This command closes the output file so the SQR can manipulate it.
     NEW-REPORT $dummy
  
     ! These commands use sqrp to explicitly convert the output file to
a pdf file.
     Let $cmd = '/opt/.../SYB/bin/sqrp ' || $report || ' -PRINTER:PD'
     call SYSTEM using $cmd #status NOWAIT
 
     ! Send file as an attachment.
     Let $cmd = 'uuencode ' || $sqr-report || ' | ' || 'mail ' ||
$EMAILID
     call SYSTEM using $cmd #status

In addition, I appended -nolis on the process definition parameters so
the output file would create as an interim spf that I can convert to
PDF. This is a sample of the parameter list:
 
pssqr -CT SYBASE -CS PSxxx -CD DEV -CA * -CAP * -RP FAHRR009 -I 51174 -R
PS_ONDMEM_REPORT -CO xxx -OT 6 
-OP /opt/.../log_output/SQR_FAHRR009_51174 -OF 2 -LG ENG -AP " -nolis "
 
Does anyone have an idea why the "corrupted" message persists?
 
Thanks, Don


Confidentiality Notice:
This message, and any attachments, may contain information that is 
confidential, privileged, and/or protected from disclosure under state and 
federal laws that deal with the privacy and security of medical information. If 
you received this message in error or through inappropriate means, please reply 
to this message to notify the Sender that the message was received by you in 
error, and then permanently delete this message from all storage media, without 
forwarding or retaining a copy.

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users