Menu

insert formated text in a PDF

2007-02-08
2013-05-01
  • Nobody/Anonymous

    Hi, i'am french user, using iText.NET

    How can I insert, in a PDF document, a formated text (colors, font, size, bold, italic, ...) ? this text can be in a RTF or an XML format like that :

    <span style="color:Red; background-color:Yellow; border-color:Red; font-weight:bold;">Test</span><br/>
    <span style="font-style:italic; font-weight:bold; text-decoration:underline;">Test</span><br/>
    <span style="font-size:17pt;">Test</span><br/>
    <span style="color:White; background-color:Navy; border-color:White; font-family:Arial Black; font-size:18pt;">Test</span><br/>

    This text is in a variable of my program, and I would like to put it on my PDF document with the same format.

    PS : I don't want to generate a PDF from an HTML file, a just wan't to put a formated text in the PDF.

     
    • Kazuya Ujihara

      Kazuya Ujihara - 2007-02-09

      iText may not support it.

       
    • David Thielen

      David Thielen - 2007-02-09

      Please take a look at http://www.windwardreports.com - it can do this.

      thanks - dave

       
    • Nobody/Anonymous

      I use iTexte but I don't find the way to do this dynamicly. I try with different iText object Paragraph, Phrase or Chunk, but unsuccessfull.

      Thanks David for the link, I'll tell my boss to have a look. but I think we'are looking for free component.

       
      • David Thielen

        David Thielen - 2007-02-12

        Ok - good luck. You might remind your boss that the money he/she spends on your time looking for a "free" component can cost more than buying a component. We have a lot of customers that switch from Jasper to Windward because they spend so much time designing reports in Jasper, it's more than buying Windward.

        thanks - dave

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.