I have converted a smartform to PDF using "CONVERT_OTFSPOOLJOB_2_PDF" and wanted to email the PDF. After I converted my smartform to PDF using the above FM, I am trying to email the PDF output by using "SO_NEW_DOCUMENT_ATT_SEND_API1". It is sending the email with attached PDF. But, when I open the PDF it is only displayed half and it is giving an error message "A number is out of range". Has anyone got this error message before. I have searched on SDN but wasn't able to find any solution for this problem. Please help me in resolving this issue. I would greatly appreciate your help.