stephanrauh / ngx-extended-pdf-viewer

A full-blown PDF viewer for Angular 16, 17, and beyond
https://pdfviewer.net
Apache License 2.0
449 stars 167 forks source link

add annotation from json #2367

Open alexucgit opened 2 weeks ago

alexucgit commented 2 weeks ago

I've this json

[
    {
      "file_name": "sssssssss",
      "reference": "Art.19 D.M. \n6/08/2010",
      "sub_reference": "19",
      "rectangle": [
        473.3800048828125,
        292.99005126953125,
        486.5459899902344,
        308.7850646972656
      ],
      "page": 7,
      "link": "None"
    },
    {
      "file_name": "xxxxxxxxxxxx",
      "reference": "DPR 30.5.2002 n.115",
      "rectangle": [
        233.3727264404297,
        127.60011291503906,
        352.4564514160156,
        143.39511108398438
      ],
      "page": 8,
      "link": "https://www.normattiva.it/uri-res/N2Ls?urn:nir:presidente.repubblica:decreto:2002-05-30!vig="
    }
  ]

Is it possible to add annotation boxes from this json to a pdf?

stephanrauh commented 2 weeks ago

I'm afraid I don't understand your question. What is an annotation box?