Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PDF and Annotations

1,091 views
Skip to first unread message

Sudheer Ch

unread,
Dec 12, 2012, 8:09:42 PM12/12/12
to dev-p...@lists.mozilla.org
Hi Team,

I am using your pdf.js for rendering pdf documents and it is working great.
However, when I edit the document and add annotation image to document it
does not show up in the viewer it is excluding the annoation from the
viewer. Do you guys have any workarounds or any solutions on this issue?

Thanks,
Sudheer

Brendan Dahl

unread,
Dec 12, 2012, 8:19:45 PM12/12/12
to Sudheer Ch, dev-p...@lists.mozilla.org
Are you using the viewer from https://github.com/mozilla/pdf.js/tree/master/web or are you writing your own? I ask because annotations aren't part of the regular rendering code, so if you are writing your own viewer you'll have to add support for them yourself like our viewer does.

See:
https://github.com/mozilla/pdf.js/blob/master/web/viewer.js#L1905

Brendan
> _______________________________________________
> dev-pdf-js mailing list
> dev-p...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-pdf-js

Sudheer Ch

unread,
Dec 12, 2012, 8:21:08 PM12/12/12
to Brendan Dahl, dev-p...@lists.mozilla.org
I am using the viewer from master/web. I don't have any written by myself
but reuse what is provided by you guys.

Sudheer Ch

unread,
Dec 12, 2012, 8:24:55 PM12/12/12
to Brendan Dahl, dev-p...@lists.mozilla.org
Brendan,

Thanks for speedy response. Ahh..I see thats why it is not triggering
annotations functions. Can you guide me on how to add the support for them,
can I use the viewer code that you mentioned in the below link?
0 new messages