Skip to Content
avatar image
Former Member

Change font in Adobe Form in the interface

Hi all,

I have one issue changing the font in adobe forms.

In the interface I have as import one string. With this string I have to generate the PDF and I need to change the font.

Here is an example:

Import string: "this is an [[FONT=CURIEL]]example of [[N]] adobe [[SIZE=15]] forms"

the characters [[ ]] indicate an scape sequence.

[[FONT=CURIEL]] means that all the following text should be in curiel font.

[[N]] means new line

[[SIZE=15]] menas that all the following text should be in size 15.

All this text I has to be added to a string variable and paste in the PDF.

I know that I can add a new line with "cl_abap_char_utilities=>newline"

I know that with Javascrit I can change the font and the size, but for that I have to change all the text.

Is there any way to change some text inside the variable and not all of it?

Thanks!

Regards,

Andres

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Feb 21, 2010 at 01:10 PM

    Hi,

    Use the floating Field.

    it may be suitable for your Case.

    Thanks.

    UmaS.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi UmaS,

      Thanks for your answer.

      I can't use floating text because I don't know how many different fonts I will have and I can't create floating text dynamically.

      Any other idea?

      Thanks,

      Regards,

      Andres.