He saw the a look at BCS_EXAMPLE_8 If you select the other options to convert the spool, it will return in importing the file in binary, so it is only convert to Solix with pdf_content command = cl_document_bcs => xstring_to_solix (pdf_xstring) .and send by email.
call function 'CONVERT_OTFSPOOLJOB_2_PDF'
exporting
src_spoolid = rqident
no_dialog = 'X'
pdf_destination = 'X'
no_background = 'X'
importing
pdf_bytecount = bin_size
bin_file = pdf_xstring
exceptions
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
others = 12.
if sy-SUBRC <> 0.
message E712 (po) with SY-SUBRC 'CONVERT_OTFSPOOLJOB_2_PDF'.
endif.
pdf_content = cl_document_bcs=>xstring_to_solix( pdf_xstring ).