RadaeePDF.com :: Topic: Add text with Italic and underline (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Add text with Italic and underline

Add text with Italic and underline 2 years 9 months ago #7467

  • moontech
  • moontech's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 80
  • Karma: 0
Hello,
I want to add text annotation with bold,italic and underline.
How i can add text like this.
The topic has been locked.

Add text with Italic and underline 2 years 9 months ago #7478

  • moontech
  • moontech's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 80
  • Karma: 0
can we have reply here.
The topic has been locked.

Add text with Italic and underline 2 years 9 months ago #7490

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 663
  • Thank you received: 43
  • Karma: 12
Hi,
if you want to add an annot with Italic and underline, the library doesn't support that.
If you want to first add the text to the pdf (using the premium license features) you can use NewFontCID(java.lang.String font_name, int style) that creates a font object, used to write texts.
Then add the annotation to that text.

http://www.androidpdf.mobi/documentation/javadocs/com/radaee/pdf/Document.html#NewFontCID(java.lang.String, int)
The topic has been locked.

Add text with Italic and underline 2 years 8 months ago #7556

  • moontech
  • moontech's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 80
  • Karma: 0
Ok,
Can we have any sample regarding to "NewFontCID(java.lang.String, int)" ?

How to use ?
public Document.DocFont NewFontCID(java.lang.String font_name,int style)
The topic has been locked.

Add text with Italic and underline 2 years 8 months ago #7558

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
PDFTestAct shall has a little sample to add content to a page.
The topic has been locked.
Powered by Kunena Forum