JPDF2HTML5 Support

Allowing you to Display Documents on mobile, tablet and desktop

Download Trial Request a quote

This topic contains 1 reply, has 2 voices, and was last updated by  Leon Atherton 2 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3713

    Mads Møller

    It is highly important to be able to get the parsed annotations out of the PDF to build custom annotations, like rich media. Im proposing to make a JSON output like the search.json,

    The below is an example output of how the annotations.json could look like:

    
    [
      {
        "id": "3R",
        "page": 2,
        "subtype": "Link",
        "annotationFlags": 0,
        "rect": [
          32.5,
          529.5,
          735.5,
          832.5
        ],
        "color": {
          "0": 0,
          "1": 0,
          "2": 0
        },
        "borderStyle": {
          "width": 0,
          "style": 1,
          "dashArray": [
            3
          ],
          "horizontalCornerRadius": 0,
          "verticalCornerRadius": 0
        },
        "hasAppearance": false,
        "annotationType": 2,
        "unsafeUrl": "custom://%5Bautostart:true%5Dmovies.apple.com/media/us/ios/2013/610b67-cd9a-e384-10j58600a9/tour/feature/ios7-feature-us-20130610_848x480.mp4"
      },
      {
        "id": "4R",
        "page": 3,
        "subtype": "Link",
        "annotationFlags": 0,
        "rect": [
          32.5,
          165,
          735.5,
          468
        ],
        "color": {
          "0": 0,
          "1": 0,
          "2": 0
        },
        "borderStyle": {
          "width": 0,
          "style": 1,
          "dashArray": [
            3
          ],
          "horizontalCornerRadius": 0,
          "verticalCornerRadius": 0
        },
        "hasAppearance": false,
        "annotationType": 2,
        "unsafeUrl": "napp://youtube.com/watch%3Fv%3Dshirth1OjRE"
      }
    ]
    
    #3720

    Leon Atherton
    Keymaster

    We are currently working on improving annotations support and do plan to generate output similar to this.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.