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

TOPIC:

Resize Annotation bitmap 7 years 2 months ago #11765

  • rpc_1910
  • rpc_1910's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 7 years 2 months ago #11778

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