Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PDF Embed API. ReadOnly annotations

Community Beginner ,
Aug 16, 2021 Aug 16, 2021

Margarita5DDD_0-1629130563293.png

what does "unsupported" annotations mean? how to add them? I just need to highlight some text in pdf, can I do it somehow? how? 

TOPICS
PDF Embed API
1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 16, 2021 Aug 16, 2021

"Unsupported Annotations" are the annotation types that are available in Adobe Acrobat as well as other PDF editors that have the annotation feature but are not supported for editing in Embed API. These include but are not limited to rectangles, ovals, arrows, and lines.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 16, 2021 Aug 16, 2021

How i can add this type of annotations to my pdf? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 17, 2021 Aug 17, 2021

Do you want to add new ones or just see the ones that are already there as read-only?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 18, 2021 Aug 18, 2021

I want to highlight something for users, and then they will be able to read it only and nothing else. So I have pdf and coordinates, I just want to highlight text to show it for users. and I can do it, but they still can change my highlights


so Q: what can i do to prevent their changes? I want to show this highlights in readOnly mode

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 18, 2021 Aug 18, 2021

Will you always be highlighting the same thing or will what you highlight depend on the user or some other variable?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 18, 2021 Aug 18, 2021

I will always highlight the same thing for each user

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 18, 2021 Aug 18, 2021

In that case, I'd recommend you "flatten" the PDF to burn the annotation down onto the page content so that it is no longer interactive at all.

Do you have Adobe Acrobat? If so, I can give yo instructions on how to do that.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 18, 2021 Aug 18, 2021

the problem is that I get pdf and coordinates from different places (backend) and immediately after that I have to show annotations in pdf to user. I do not have time to go to an acrobat and I cannot prepare pdf in advance (because there are so many pdfs here)

now I add annotations using "addAnnotationsInPDF", all I want is to have some type of annotation (instead of "type: 'Annotation'") so that the user cannot poke on this annotation

what do you think? is there a way to do it? or maybe I don't know something about how acrobat works and I can do this thing simultaneously?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 18, 2021 Aug 18, 2021

Using just Embed API, the best you can do is immediately desclect a selected annotation so that it can't be interacted with. I'll whip up a CodePen example for you. Gimme a day or two.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 18, 2021 Aug 18, 2021

i already tried it and ... it doesn't look "perfect", it blinks....

so I understood you, I just thought, suddenly I missed something in the documentation (caught on "unsupported annotations")

Thanks anyway! I'm looking forward to updates to this great tool!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 18, 2021 Aug 18, 2021

but yes, if you can do something for me, i mean even example in codePen, please do it 🙂 maybe I really skipped something

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 18, 2021 Aug 18, 2021

Yeah - it blinks. I've requested a "locked" property for annotations. I'm not sure if or when that would be coming though.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 18, 2021 Aug 18, 2021

Thank you!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 22, 2022 Dec 22, 2022
LATEST

Hi - Has anyone found a better solution for creating read-only annotations, or is this still the best way of doing it?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources