-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Contents of annotations not (completely) visible #10677
Comments
An ideal bug report contains three things: what you were doing, what you were expecting, and what happened instead. What were you expecting? |
Please don't open multiple duplicate issues, but update the original one with all the necessary information instead and then that may be re-opened when enough information has been provided. |
I agree with the comments above: what are you expecting? From the screenshots I really can't tell what the problem is. Is there text in the annotations that should not be there? Should there be more/less annotations? What is the rendering defect you're reporting? |
There are two issues:
I have attached the PDF that I'm using to test for your reference. |
Hi, there is missing implementation of some annotation features like InReplyTo (your 2. issue) and groups (your 1. issue). This requires quite a lot of coding on both worker part and display part of pdfjs. I tried to implement the worker part, so I can provide that as merge request (https://github.com/vlastimilmaca/pdf.js/tree/annotations-enhanced-parsing), but there's gonna be some extensive coding work on display part too. I think, there will have to be some kind of side-bar (like bookmarks, attachments etc) for displaying markup annotations as discussion threads. In page area, on mouseover, there should be displayed first comment + info about how many replies and states it has (which will probably need some localized text ... not easy ...). On click, it should open discussion sidebar and focus to correct annotation thread. But that is how I see it and it will be quite a lot of work to get it done right. But worker part is probably first step ... It should not break display part, so display part work can start later. To reply to your issues:
|
Do you need any more clarifications from my side. |
That should do the implementation of worker part I guess … Edit: So I looked into this again and it is little different then what I thought (sorry for that, it's been more than 2 months since I worked on this). Worker thread will correctly fill child annotations, but child annotations should probably use master annotation's popup, so there will be need to make changes in viewer part or make some more changes in worker part. More in pull request. |
For caret, use the /Rectangle entry. For strikeout, use the /QuadPoints entry. See also the PDF specification. |
The functionality is now in the API, so since the other points here are fixed I'm closing this with #10982 as a follow-up. |
I have not used any external library, i have used acrobat reader to annotate, insert and delete. I had taken the screenshot form your demo link only. Here by i will attach my pdf file as well as screenshot of demo link which you have given in the GitHub.
Passasjeren_strukturert (4) 11.pdf
Originally posted by @rakeshkasinathan in #10672 (comment)
The text was updated successfully, but these errors were encountered: