- Posts: 5
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about iOS development and PDF
Highlight not adding
IP: 192.168.0.71
11 years 8 months ago #6804
by turbomerl
Highlight not adding was created by turbomerl
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
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
IP: 192.168.0.71
11 years 8 months ago #6806
by radaee
Replied by radaee on topic Highlight not adding
[PDFPage objsStart] is needed to be invoked, before addAnnotMarkup2.
comments for addAnnotMarkup2 in PDFObjc.h shall say what needed.
comments for addAnnotMarkup2 in PDFObjc.h shall say what needed.
IP: 192.168.0.71
11 years 8 months ago #6809
by turbomerl
Replied by turbomerl on topic Highlight not adding
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
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
IP: 192.168.0.71
11 years 8 months ago #6816
by turbomerl
Replied by turbomerl on topic Highlight not adding
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.
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.
IP: 192.168.0.71
11 years 8 months ago #6834
by turbomerl
Replied by turbomerl on topic Highlight not adding
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
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
Time to create page: 0.402 seconds