Hello,
I am trying to set different Font styles in my annotation, but underline and strikethrough doesn't seem to work.
var annot = this.addAnnot({
page: 0,
type: "FreeText",
rect: [5, 10, 100, 100],
width: 0,
fillColor: color.transparent
});
var spans = new Array();
spans[0] = new Object();
spans[0].text = "Attention";
spans[0].textColor = color.blue;
spans[0].textSize = 18;
spans[0].underline = true;
spans[0].strikethrough = true;
annot.richContents = spans;
underline or/and strikethrough font style with js
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 103
- Joined: Mon Mar 18, 2013 4:26 pm
-
- Site Admin
- Posts: 2445
- Joined: Thu Jun 30, 2005 4:11 pm
Re: underline or/and strikethrough font style with js
Hi, TatianaS.
You are right, there is an issue with the span::underline and span::strikethrough properties. We will fix it in the next build..
Best
Regards.
You are right, there is an issue with the span::underline and span::strikethrough properties. We will fix it in the next build..
Best
Regards.
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 103
- Joined: Mon Mar 18, 2013 4:26 pm
Re: underline or/and strikethrough font style with js
Hello, could I have approximate release date
-
- Site Admin
- Posts: 7361
- Joined: Wed Mar 25, 2009 10:37 pm
Re: underline or/and strikethrough font style with js
Hi TatianaS,
the best we can say right now is there should be something by the end of the month.
hth
the best we can say right now is there should be something by the end of the month.
hth
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
-
- User
- Posts: 103
- Joined: Mon Mar 18, 2013 4:26 pm
-
- Site Admin
- Posts: 6815
- Joined: Mon Oct 15, 2012 9:21 pm
Re: underline or/and strikethrough font style with js

If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com