1. Ganaesu S
  2. PowerBuilder
  3. Friday, 4 October 2024 15:20 PM UTC

Hello experts

PB2022 R3 Build 3356

SMTP - I have a PB code replicating the Outlook email in a Response window which uses SMTP to send emails with PDF attachment. 

Emails are getting delivered without any issues when the attached PDF is generated via PB code (DW to PDF). 

Issue is when a PDF is brought down/Saved from OnBase. Email is getting delivered and shows the attached PDF, but the PDF is not opening as expected. Looking at the file explorer, PDF file size is 24kb, but the file in the email is 743 bytes.

Any ideas/solutions?

Thanks

David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Friday, 4 October 2024 15:35 PM UTC
  2. PowerBuilder
  3. # 1

Hi

The only thing I can think of is that the PDFs have not got the font embedded, they then may not render correctly depending upon the client.

Apart from that, as you say PDFs produced from PB are ok, I can only assume the issue is with the software producing the PDF files.

Sorry I cannot be of more help.

Regards

David

Comment
  1. Ganaesu S
  2. Friday, 4 October 2024 16:04 PM UTC
lds_report.SaveAs(ls_pdf_file_path, PDF!, False)
  1. Helpful
  1. David Peace (Powersoft)
  2. Friday, 4 October 2024 16:06 PM UTC
So it would appear that the issue is somewhere in the saving/reading from OnBase. a PDF created by SafeasPDF in a DW is correct, but when written to OnBase and Re-red it is corrupted.



How are you saving/reading from OnBase?
  1. Helpful
  1. Ganaesu S
  2. Friday, 4 October 2024 16:31 PM UTC
we user FileOpen

Saved PDF from OnBase opens fine from file explorer...
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.