Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF

TOPIC:

Text color not set using Page_setAnnotEditTextColo 8 years 11 months ago #8874

  • bhagyashree
  • bhagyashree's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • 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 8 years 11 months ago #8890

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
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 8 years 11 months ago #8908

  • bhagyashree
  • bhagyashree's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • 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 8 years 11 months ago #8919

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
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 8 years 11 months ago #8931

  • bhagyashree
  • bhagyashree's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • 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 8 years 11 months ago #8932

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
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