cancel
Showing results for 
Search instead for 
Did you mean: 

Saving a PDF in WD

Former Member
0 Kudos

Hello,

users shall have the possibility to make comments in a pdf which is displayed in a WD application.

But when the user save the pdf it will be saved as a copy local on client site.

Is there a possibility that the original pdf can be changed?

Otherwise the user have to upload the file again.

With this coding we display the pdf, that's work fine:

cl_wd_runtime_services=>attach_file_to_response(

            i_filename      = lv_filename

            i_content       = lv_xstring

            i_mime_type     = 'PDF'

            i_in_new_window = abap_false

            i_inplace       = abap_false ).

          

Or is there another way to do this except attach_file_to_response?

I tried also the UI-element InteractiveForm which use also a xstring for pdf data.

But the behavior is the same.

Thanks for all answers

Susanne

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The only way of not having to upload the locally changed PDF again is to use SAP Interactive Forms by Adobe in an online scenario. Notice however that there is a semantic difference. With SAP Interactive Forms by Adobe you are changing the data in the PDF, not the PDF itself. However, since the PDF gets generated on the fly (for downloading) the difference is not apparent to the end user.

Former Member
0 Kudos

Thanks for answering. But SAP Interactive Forms are not useful for our task.

Meanwhile I know that's possible when using special extensions but this costs money which we won't pay. So we use the upload and download way now.

Regards

Susanne

Answers (0)