Highlighted text is becoming black when highlightcolor set to white. - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: Highlighted text is becoming black when highlightcolor set to white.

Highlighted text is becoming black when highlightcolor set to white. 2 months 4 weeks ago #14380

  • apdeveloper
  • apdeveloper's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 50
  • Thank you received: 0
I have set highlight color as white color below is the code in swift. But the hightlight text becomes black color text when highlighted rest other annotation underline and strikeout those colour are white and working properly.
let white:UInt32 = 0x22222222
//Highlight color setting
plugin.setColor(Int32(bitPattern:white), forFeature: 4)
//Underline color setting
plugin.setColor(Int32(bitPattern:white), forFeature: 2)

Underline is properly working while hightlight color is not working i have attached the document as well

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

Last edit: by apdeveloper.

Highlighted text is becoming black when highlightcolor set to white. 2 months 3 weeks ago #14382

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 883
  • Karma: 43
  • Thank you received: 15
0x22222222 is dark gray.
color blending of highlight, is not normal blending, it always make color darker.

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

Highlighted text is becoming black when highlightcolor set to white. 2 months 3 weeks ago #14384

  • apdeveloper
  • apdeveloper's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 50
  • Thank you received: 0
Dear Team,
Thank you for you reply.
Can you please share me white color code for hightlighting the text.

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

Highlighted text is becoming black when highlightcolor set to white. 2 months 3 weeks ago #14387

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 566
  • Karma: 21
  • Thank you received: 65
Hi,

white color is 0xFFFFFFFF, it is ARGB format.

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

Highlighted text is becoming black when highlightcolor set to white. 2 months 2 weeks ago #14401

  • apdeveloper
  • apdeveloper's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 50
  • Thank you received: 0
Dear Team,
Thank you your reply problem was resolved.

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

  • Page:
  • 1
Powered by Kunena Forum