Skip to Content
author's profile photo Former Member
Former Member

Stamping PDF files in the ECL Viewer

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 24, 2006 at 03:44 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 05, 2006 at 08:27 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 09, 2006 at 10:42 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.