-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Text widget annotations are not rendering properly #10333
Comments
Looks like a duplicate of #9993; you'll need to include the |
Yes, that should be the problem. Closing as answered. |
Yes, pdf_viewer.css is not loading. I have sorted that but after that all the annotations are rendering in the first page. and they are slightly above position they are supposed to be any insights on this. Source: https://github.com/dhanu-mamidi/pdfjs-forms/blob/master/src/app/app.component.ts |
It looks you have some margin or padding applied to the page or the annotation layer then since this doesn't happen in the default viewer/example. |
@timvandermeij thanks, that position is because of the margin. But even second-page annotations are rendered in the first page itself? |
Hi, Can you give me more info on why annotation factory is not considering the padding and margins give for the parent div. It get the same transform origin co-ordinates with or without padding to the parent div. Any solution for this Thanks in advance |
I don't know, but you can check |
Hi tim, I think instead of this We need to have Thanks |
That could be the case. You can check if it fixes your issue and if so, feel free to create a pull request for us to review. |
But before considering doing that[1], please ensure that the changes don't break anything by actually testing them locally first; refer to https://github.com/mozilla/pdf.js/wiki/Contributing#4-run-lint-and-testing [1] There was another recent issue, see #10348, where there was a suggestion of using |
Hey , Can you please tell more on this |
Hi, Thanks.. |
I think there is already a pull request for this, #10368, which I think does exactly what you want. |
Hi tim, this is exactly what I am thinking of. But I think pdfpageviee.setpage will change the viewport to the default offset 0. So I think we need to the clone again to change the scale and rotation Thanks |
Hi , Thanks. |
I don't know why that is happening. Check if it also happens with the unchanged AcroForm example that you mentioned. If not, there is an issue with your customized code. |
Yes Tim, it's happening with the default code too. |
Running Most likely testing wasn't done using only the [1] The instructions at https://github.com/mozilla/pdf.js/tree/master/examples/acroforms might need to be updated, since they mention |
Hi,
Hi, The original AcroForms code is not customized, except its been implemented in Angular by changing referenced file paths. Thanks |
Not sure what went wrong in implementing the acroforms in angular by using the example acroforms.js
Configuration:
Using the latest version of Chrome on windows 10.
Steps to reproduce the problem:
https://github.com/dhanu-mamidi/pdfjs-forms/blob/master/src/app/app.component.ts
npm install and start would result in the same issue with the above source.
What is the expected behavior? (add screenshot)
What went wrong? (add screenshot)
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
The text was updated successfully, but these errors were encountered: