cancel
Showing results for 
Search instead for 
Did you mean: 

Stamping PDF files in the ECL Viewer

Former Member
0 Kudos

Dear All, I have a problem that i can't write a stamp text on the PDF files in ECL Viewer, it works with all original types like dwg,dxf,jpg,gif,bmp,... except pdf.

I am using the method SHOW_DOC_META_DATA in the badi defination DOCUMENT_ECL01.

Here is my code, Please Advise.

Thanks

METHOD if_ex_document_ecl01~show_doc_meta_data.

DATA: BEGIN OF line,

a(20) TYPE c,

v(50) TYPE c,

END OF line.

  • Adjusting Viewer Settings

y_position = 35.

x_position = 25.

font = 'Arial'.

size = 1.

color = 255.

transparent = 'X'.

  • Printing Line#1

line-a = 'Document#'.

line-v = 'Test'.

INSERT line INTO meta_data INDEX 1."Here is the problem

ENDMETHOD.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try to call set_print_watermark method with the foolowing parameters:

CALL METHOD viewer->set_print_watermark

EXPORTING

watermark_text = 'Document#

watermark_size = size

watermark_font = font

watermark_transparent = 1

watermark_color = 1

watermark_x_position = 1 "10

watermark_y_position = 1."10.

Hope this helps.

Regards,

Vanda

Answers (2)

Answers (2)

christoph_hopf
Advisor
Advisor
0 Kudos

Hi,

I'm sorry that the suggested note didn't solve your problem. Unfortunatly I don't know any other note, because all similar problems where solved by this note before.

So I would recommend you to contact SAP Remote Consulting Service under component XX-RC-.. They will try to provide you a solution for the required functionality.

Best regards,

Christoph

christoph_hopf
Advisor
Advisor
0 Kudos

Hi,

maybe SAP note 690497 could help you.

It's an enhancement of BADI DOCUMENT_EC01 to control the behavior of the EAI-viewer. You can use it, for example, to:

o Activate functions like saving or opening in the

viewer or

o Dectivate functions like saving or opening in the

viewer

o Implement customized authorization checks for

Redlininng Layer

Best regards,

Christoph

Former Member
0 Kudos

Thank you Christoph, but i tried to apply this note and the problem still there.

Do you have any other ideas