Skip to Content
0
Former Member
Jul 20, 2016 at 02:08 PM

Generate PDF in background from OTF without ADS server

1425 Views

Hello,

I have a smartform that I am generating thanks to a program.

My program needs to be launched in background and after in the generated spool I should find a PDF containing my smartform.

I succeeded to display the smartform in PDF format thanks to 2 function modules 'HR_IT_DISPLAY_WITH_PDF' and 'SSFCOMP_PDF_PREVIEW' but these two functions don't seem to work in background mode...

Then, I tried to convert my OTF into a PDF table thanks to the fucntion module 'CONVERT_OTF_2_PDF' but how can I then generate the PDF file?

I thought about saving the PDF file on the server then display it but then I face another issue. After using OPEN DATASET. myFile FOR OUTPUT IN BINARY MODE ..... CLOSE DATASET to save my file on server I get a corrupted file...

Does anyone have an idea to solve this problem?

Thanks in advance for your help.

Best regards,