Text color not set using Page_setAnnotEditTextColo - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF

TOPIC: Text color not set using Page_setAnnotEditTextColo

Text color not set using Page_setAnnotEditTextColo 3 years 7 months ago #8874

  • bhagyashree
  • bhagyashree's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
Text color not set using Page_setAnnotEditTextColor
Also setStrokeWidth not working

Please Log in or Create an account to join the conversation.

Last edit: by bhagyashree.

Text color not set using Page_setAnnotEditTextColo 3 years 7 months ago #8890

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 525
  • Karma: 20
  • Thank you received: 60
Hi,

we are checking the issue, we'll fix it as soon as possible

Please Log in or Create an account to join the conversation.

Text color not set using Page_setAnnotEditTextColo 3 years 7 months ago #8908

  • bhagyashree
  • bhagyashree's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
We are having urgent delivery so Can you please look into this issue on high priority?

Please Log in or Create an account to join the conversation.

Text color not set using Page_setAnnotEditTextColo 3 years 7 months ago #8919

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 525
  • Karma: 20
  • Thank you received: 60
Hi,

we checked that setStrokeWidth and Page_setAnnotEditTextColor methods works correctly, can you explain what are your targets?
Can you share a pdf file with the expected results? Also the code that are you using could help to understand the issue.

Please Log in or Create an account to join the conversation.

Text color not set using Page_setAnnotEditTextColo 3 years 6 months ago #8931

  • bhagyashree
  • bhagyashree's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
-(void)vFillTextBoxAnnotAtIndex:(int)index onPage:(int)pageno WithText:(NSString *)text textColor:(uint)textColor
{
cuepdf_PDFVPage *vpage = [m_view vGetPage:pageno];
if( !vpage ) return;
PDFPage *page = [vpage GetPage];
if( page )
{
[page objsStart];
PDFAnnot *txtFieldAnnot = [page annotAtIndex:index];

[txtFieldAnnot setEditText:text];

[txtFieldAnnot setStrokeColor:textColor];
[txtFieldAnnot setEditTextColor:textColor];
[txtFieldAnnot setStrokeWidth:g_Ink_Width];

[m_view vRenderSync:pageno];

[self setNeedsDisplay];
}
]

In above customized function we are calling pdf library function setEditTextColor to set color

Please Log in or Create an account to join the conversation.

Text color not set using Page_setAnnotEditTextColo 3 years 6 months ago #8932

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 525
  • Karma: 20
  • Thank you received: 60
Hi,

unfortunately these methods work only with free text annotations.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum