Resize Annotation bitmap - 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
  • Page:
  • 1

TOPIC: Resize Annotation bitmap

Resize Annotation bitmap 1 year 10 months ago #11765

  • rpc_1910
  • rpc_1910's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hello
Is it possible to resize a bitmap annotation?
What functions should I use to do this?
Thanks

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

Last edit: by rpc_1910.

Resize Annotation bitmap 1 year 10 months ago #11778

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

you can use setRect method of PDFAnnot class.
e.g.
//get annotation instance at point
    m_annot = [page annotAtPoint:m_annot_pos.x: m_annot_pos.y];
    
    //create new rect
    PDF_RECT rect;
    rect.left = 100;
    rect.right = 300;
    rect.top = 100;
    rect.bottom = 300;
    
    //set rect of the annotation
    [m_annot setRect:&rect];
    
    // Re-render the current page
    [m_view vRenderSync:m_cur_page];
    [self refresh];
    
    // Save the PDF file
    [m_doc save];
The following user(s) said Thank You: rpc_1910

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

  • Page:
  • 1
Powered by Kunena Forum