Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error opening PDF attachment (via email)

Former Member
0 Kudos

Hello,

I've problems to send a PDF file with the function:

'SO_DOCUMENT_SEND_API1'

At first a small overview of my process:

- 'SCMS_DOC_READ' -> to read the file from the archive

- 'SCMS_BINARY_TO_FTEXT' -> to convert from bin. to pdf

- 'SO_DOCUMENT_SEND_API1' -> to send the email

My pdf result:

% P D F - 1 . 4 % â ã Ï Ó 1 0 o b j < < / T y p e

Project scope:

%PDF-1.4%âãÏÓ1 0 obj<</Type

As a result, by opening the PDF file an error occured.

-

-


Further information:

objpack-transf_bin = 'X'.

call function 'SO_DOCUMENT_SEND_API1'

exporting

document_data = doc_data

put_in_outbox = ''

commit_work = 'X'

tables

packing_list = objpack

object_header = objhead

contents_bin = data <- PDF content

contents_txt = objtxt

receivers = reclist

exceptions

2 REPLIES 2

former_member181995
Active Contributor
0 Kudos

most possible reason has been discussed in:

0 Kudos

the other threads aren't about the problem to have extra blanks between

the pdf characters