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

TOPIC:

Ink annotations and thumbnail view, 7 years 2 months ago #11788

  • Rajat Singla
  • Rajat Singla's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
Hii Radaee support.

I have been integrating the RadaeePDF in my project and i have some queries about ink annotations and thumbnail view.

1. How to clear the ink annotation from current page ?
2. How to clear annotations from entire PDF ?
3. Can we zoom in and out while using Pen ?
4. How to change the color of current page in thumbnailView?

Thanks

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

Ink annotations and thumbnail view, 7 years 2 months ago #11835

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

you can delete annotations using [PDFAnnot removeFromPage] method, and iterate on the whole pdf with something like:
for (int i = 0; i < [m_doc pageCount]; i++) {
        PDFPage *page = [m_doc page:i];
        
        int count = [page annotCount];
        if (count > 0) {
            for (int c = (count - 1); c >= 0; c--) {
                PDFAnnot *annot = [page annotAtIndex:c];
                [annot removeFromPage];
            }
        }
    }
To change the thumbnail background color you have to set the backgroundColor of PDFThumbView in vOpen method.

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

Ink annotations and thumbnail view, 7 years 2 months ago #11838

  • Rajat Singla
  • Rajat Singla's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
Hii, thanks for the reply.

i applied your solution but it changed the background color of the thumbnail views.
I need to change the overlay color of the current thumbnail.

Please look at the attachment below.

Thanks.
Attachments:

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

Ink annotations and thumbnail view, 7 years 2 months ago #11839

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Sorry, my fault. To change the selected thumb color you have to set the g_sel_color parameter in APP_Init method of PDFVGlobal.

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

Ink annotations and thumbnail view, 7 years 2 months ago #11841

  • Rajat Singla
  • Rajat Singla's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
Thank you. It worked.

Can u please confirm if we can pinch and zoom while using ink annotataions.
And if we can then how?

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

Ink annotations and thumbnail view, 7 years 2 months ago #11843

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
If you enable ink mode, you cannot zoom or move because the scroll is blocked to allow the ink drawing.
The following user(s) said Thank You: Rajat Singla

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum