Highlight not adding - 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: Highlight not adding

Highlight not adding 4 years 3 months ago #6804

  • turbomerl
  • turbomerl's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hi

I accidentally posted this in the roadmap forum.

I am trying to add a highlight, but it isn't working.

Highlight adding worked fine from the demo project, but I always get false from Page_addAnnotMarkup2 in PDFObjc from within my project - have added my license info - I have the professional license.

Please could you advise me how to fix this

Thanks

Isambard

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

Highlight not adding 4 years 3 months ago #6806

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
[PDFPage objsStart] is needed to be invoked, before addAnnotMarkup2.
comments for addAnnotMarkup2 in PDFObjc.h shall say what needed.

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

Highlight not adding 4 years 3 months ago #6809

  • turbomerl
  • turbomerl's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hi

thanks for the response.

That gets called when I drag to create the selection, which works fine. Should that also get called before turning the selection to a highlight (annotation)?

Currently, I simply call -(BOOL)vSelMarkup:(int)color :(int)type within PDFView and the selection does not get turned into a highlight (annotation).

Thanks

Isambard

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

Highlight not adding 4 years 3 months ago #6816

  • turbomerl
  • turbomerl's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hi

A response to this would be very much appreciated. I still cannot get this to work and it was the primary reason for purchasing this library. I have imported the code from the demo project as per the instructions, but I cannot create the yellow highlights

Many thanks

Isambard.

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

Highlight not adding 4 years 3 months ago #6834

  • turbomerl
  • turbomerl's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
One other thing:

I am opening the pdf using [pdfDocument openMem: bytes : length : ];

I need this because the pdfs that I download are fully encrypted and I wrote a decryption class to decrypt them. I notice that the PDFStream protocol has a writeable property and I wondered if such a thing needs to be implemented for opening the pdf from memory.

Many thanks

Isambard

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

  • Page:
  • 1
Powered by Kunena Forum