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

TOPIC:

get pdf page with highlight 9 years 3 months ago #8221

  • t.revor
  • t.revor's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 19
  • Thank you received: 0
i am trying to get a page that has a highlight, but it is returning nil,


struct PDFV_POS pos;
PDFVPage *vpage = [mview vGetPage : pos.pageno];
PDFPage * page = [vpage GetPage];
if( page )
{
PDFAnnot * annot = [page annotAtPoint:pos.x :pos.y];
[annot type];
[annot removeFromPage];
annot = nil;
}

when i put a break point it shows that page = nil,

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

get pdf page with highlight 9 years 3 months ago #8229

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

also PDFV_POS needs some values.
something like:

struct PDFV_POS pos;
pos.x = 0;
pos.y = 0;
pos.pageno = 5;

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

  • Page:
  • 1
Powered by Kunena Forum