get pdf page with highlight - 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: get pdf page with highlight

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

  • t.revor
  • t.revor's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Karma: 2
  • 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 3 years 10 months ago #8229

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 516
  • Karma: 15
  • Thank you received: 56
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