PDF Comment Support

John Gifford's Avatar

John Gifford

17 Aug, 2012 05:17 AM

We are trying to support comments within PDF's. Basically we would like to display the note icon on the PDF and when the user taps on the icon, the details of the note are displayed. Is this currently supported within FPK without custom programming? If not, can you provide some direction on how we would build this? Thanks!

  1. Support Staff 1 Posted by Matteo on 17 Aug, 2012 09:19 AM

    Matteo's Avatar

    Hello John,
    currently FastPdfKit doesn't support standard pdf notes on the pdf itself.

    However we are working on that.

    Do you need to display preexisting pdf notes or use custom ones?

    Best regards,
    Matteo

  2. 2 Posted by John Gifford on 17 Aug, 2012 02:12 PM

    John Gifford's Avatar

    We need to be able to display notes are were created in preview or acrobat and already exist in the doc.

  3. 3 Posted by John Gifford on 17 Aug, 2012 03:42 PM

    John Gifford's Avatar

    Can you give us a timeline of when this might be supported. We have purchased FPK for multiple clients and this is a huge request.

  4. Support Staff 4 Posted by Matteo on 17 Aug, 2012 03:45 PM

    Matteo's Avatar

    Hello John,
    we need few days to give you an answer.

    Best regards,
    Matteo

  5. 5 Posted by John Gifford on 21 Aug, 2012 04:40 PM

    John Gifford's Avatar

    Hello Matteo,

    Any updates on this? Also, I am wondering if this may be something we could develop ourselves given some direction from you?

    Thank you,

    John

  6. 6 Posted by Nicolò on 22 Aug, 2012 12:57 PM

    Nicolò's Avatar

    Hello

    Would be fine for you to get a dictionary with all the info required to display the annotation (for example as an overlay view)? Basically, this will expand on the -annotationsForPage: method by returning more information in the case the annotation is of type Text.

  7. 7 Posted by John Gifford on 22 Aug, 2012 01:02 PM

    John Gifford's Avatar

    Yes, that would work. Is this dictionary available today or would you push an update soon to support this?

  8. 8 Posted by Nicolò on 22 Aug, 2012 01:17 PM

    Nicolò's Avatar

    The latter, on the devel branch of the repo. It will likely be an FPKTextAnnotation object rather than a dictionary.

  9. 9 Posted by John Gifford on 22 Aug, 2012 01:21 PM

    John Gifford's Avatar

    That's great! When can we expect this to be part of a stable build?

  10. 10 Posted by Nicolò on 22 Aug, 2012 01:23 PM

    Nicolò's Avatar

    If not problem arise, sure.

  11. 11 Posted by John Gifford on 22 Aug, 2012 02:45 PM

    John Gifford's Avatar

    So do you have an ETA (Date) on when this would be in a stable build?

  12. 12 Posted by John Gifford on 22 Aug, 2012 09:42 PM

    John Gifford's Avatar

    We have purchased this toolkit for a client project and they want to push a build live next week. This feature is a deal breaker for the client. Is there a way you can give us an estimate on when this might be supported? If not we may be forced to use another toolkit for this project.

    Thanks for your help!

  13. 13 Posted by Nicolò on 23 Aug, 2012 02:19 PM

    Nicolò's Avatar

    Hello John

    We are prepping the above mentioned solution. Due to the structure of the pdf document, it require a bit of work to be done. I'm confident I should be able to provide to you a testable solution within 24-48 hours. I'll keep you up to date.

  14. 14 Posted by John Gifford on 23 Aug, 2012 05:22 PM

    John Gifford's Avatar

    That's great news. We really have a big push on this with our client on a very high profile project. Please let me know if this timeline changes. Also let me know when this is ready in GitHub. Thanks again!

  15. 15 Posted by Nicolò on 30 Aug, 2012 02:00 PM

    Nicolò's Avatar

    Hello

    We have added a function to get the entire annotation structure as a Cocoa-friendly object, -cocoaAnnotationsForPage:. The details are in the MFDOcumentManager's header.
    We are also writing an implementation as Widget (FPKExtension) if you are interested in playing with them, that will give some sort of text annotation support out of the box.
    I tried to make public the stream renderer for the annotation appearance stream(s), but it has too many private dependencies still. It's likely you have write your own if you are willing to use the embedded appearance in the pdf annotation rather than 'force' the look of the annotation at application level.

  16. Support Staff 16 Posted by Matteo on 30 Aug, 2012 02:39 PM

    Matteo's Avatar

    Just one more note regarding the appearance: most pdf readers just does not consider the appearance stream and override with their own graphic: that is the way Apple's preview works.

    If you accept a suggestion: just use your own picture.

  17. 17 Posted by Matthias Kutsch... on 03 May, 2013 02:43 PM

    Matthias Kutscheid's Avatar

    Hi,

    I just found this thread and anted to ask whether there is a possibility to store the annotations yet. Reading them is nice, but I would require writing the, also.

  18. Support Staff 18 Posted by Matteo on 07 May, 2013 09:51 AM

    Matteo's Avatar

    Hello Matthias,
    we are going to release a development version as soon as possibile with annotation editing support. Stay in touch.

    Matteo

  19. 19 Posted by bishop on 19 Jun, 2013 03:42 AM

    bishop's Avatar

    Any update on a version for adding annotations?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac