Skip to Content
avatar image
Former Member

Font formatting for Flat file generated in PI

Hi,

We have a File receiver scenario in PI wherein we are generating a Flat file. While creating the file, the font needs to be of specific font type and size

eg:

Pyramid u2013 Lucida Console (Size 10)

Aspheria u2013 I5_10N (Size 10)

Is there any way this can be configured or implemented in PI?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Oct 12, 2009 at 09:14 AM

    there is no standard option.

    but what you can do is create a simple module. use the font api in java and set the font for your content.

    I guess that should work.

    some sample code - http://www.java2s.com/Code/Java/2D-Graphics-GUI/Changefont.htm

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 12, 2009 at 10:06 AM

    Hi Harleen,

    I doubt this can be done.

    When you create a flat file, you will be opening it in notepad right? and teh content take the settings which I have done in my notepad . So it will be depending on the system configuration of the end user.

    Regards

    Suraj

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 12, 2009 at 11:27 AM

    Hi ,

    This requirement we can achieve using XSLT Mapping,we can define the font size in mapping program it self,select output method in xslt program as TEXT,no need of any file content conversion in Receiver Communication channel.

    refer this link how to uses the methods for font sizes.

    http://www.xml.com/pub/a/2001/01/24/xsl-fo/

    Regards,

    Raj

    Add comment
    10|10000 characters needed characters exceeded