New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support annotations without appearance streams #6810

Open
timvandermeij opened this Issue Dec 27, 2015 · 7 comments

Comments

Projects
None yet
5 participants
@timvandermeij
Contributor

timvandermeij commented Dec 27, 2015

Most annotations, even unsupported ones, render just fine in PDF.js because of their appearance stream. However, there exist PDF files with annotations that do not have an appearance stream (even though this is a deprecated practice). In the latter case, PDF.js displays nothing. We need to have a fallback to a default appearance stream in that case, or create an appearance stream ourselves using the data present for the annotation (such as quad points and color). Below is a list of known PDF files that contain annotations without appearance streams, for which the types are listed.

@THausherr

This comment has been minimized.

@fancycarp

This comment has been minimized.

fancycarp commented Jul 11, 2016

Waiting for this feature..^^

@THausherr

This comment has been minimized.

Contributor

THausherr commented Jan 15, 2018

This one has diagonal annotations. A strategy that assumes them to be horizontal will result in weird effects (try showing the file in chrome in the built-in viewer or on an Android phone with the google viewer)
https://bugs.ghostscript.com/show_bug.cgi?id=693664

@burtonator

This comment has been minimized.

burtonator commented May 27, 2018

This is still a pretty serious issue. Apparently poppler, one of the main PDF libraries used by Okular, etc, creates annotations without appearance streams.

When loading them into PDF.js its impossible to see the annotations.

@THausherr

This comment has been minimized.

Contributor

THausherr commented May 29, 2018

Somebody should also create an issue in poppler. The /AP is required in PDF 2.0 except for Popup, Projection or Link.

@edsontrick

This comment has been minimized.

edsontrick commented Aug 13, 2018

I need to add image with drag n drop. Possible solutions?

@timvandermeij

This comment has been minimized.

Contributor

timvandermeij commented Aug 13, 2018

@edsontrick The question is not related to this particular issue. Please post it on IRC instead of on an unrelated issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment