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

TOPIC:

Show and hide Dotted border around annotation 9 years 11 months ago #6066

  • Navdeep_rs
  • Navdeep_rs's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
  • Thank you received: 0
How to show and hide a dotted border around selected annotation like ink, rectangle and oval?
I want to remove annotation from pdf, but to do that I firstly want to show dotted border around selected annotation, to differentiate between selected annotation from non selected ones.

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

Last edit: by mehmetalishaqiri.

Show and hide Dotted border around annotation 9 years 11 months ago #6121

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • Thank you received: 2
PDFPage
-(PDFAnnot *)annotAtIndex:(int)index;
this method return a PDFAnnot object.

And in PDFAnnot object ,there have
/**
* @brief get annotation's box rectangle.
* this method valid in professional or premium version
* @param rect fill 4 elements: left, top, right, bottom in PDF coordinate system
*/
-(void)getRect:(PDF_RECT *)rect;


then use cocoa method to draw
// CGContextStrokeRect(context, rect1);
// CGContextAddEllipseInRect(context, rect1);

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

  • Page:
  • 1
Powered by Kunena Forum