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

TOPIC:

Highlight not adding 10 years 8 months ago #6804

  • turbomerl
  • turbomerl's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 10 years 8 months ago #6806

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
[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 10 years 8 months ago #6809

  • turbomerl
  • turbomerl's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 10 years 8 months ago #6816

  • turbomerl
  • turbomerl's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 10 years 8 months ago #6834

  • turbomerl
  • turbomerl's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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