Application Development and Automation 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: 
Read only

Preview PDF document in application server without downloading to PC

Pavithra_madhu
Participant
0 Kudos
1,326

Hi all,

I uploaded PDF document to application server using ARCHIVFILE_CLIENT_TO_SERVER function. Now I want to view saved PDF document when a button click on dialog program screen. How to load saved PDF to PDF preview without downloading in to PC ?

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Kudos
728

You may upload the PDF file from the frontend into an internal table, and display it via the HTML Viewer control (CL_GUI_HTML_VIEWER) and passing the MIME type application/pdf. See the demo program RSDEMO_HTML_VIEWER to display an image, and the function module SCWB_NOTE_DISPLAY_PDF for displaying a PDF more specifically.