Skip to content

PdfJS inconsistencies in sentence highlight when page rotated #155

Description

@minump

Check the issue with incosistent labels and highlights when previewing in web page. This happens for landscape pages within a pdf - when pdf page is rotated.
Test with the input pdf and consort statement

  1. Why there is no highlights in page 18 of the original pdf when showing in web browser - we expect to see label 26 there.
  2. Why these is no vertical highlights in page 20 of the original pdf when previewing in web browser - we expect to see label 13 there.
  3. Why there is a mismatch in position of highlighted sentence in page 20 of the original pdf when previewing in web browser -
    a. Sentences "The effect sizes and the corresponding confidence intervals were first computed in each of the 50 imputed data sets before they were averaged to a single value." and "Further objectives and secondary clinical outcomes not reported in this table can be seen in the Supplementary Appendix" are to be highlighted. But the highlights seem to be misaligned.

2024.01.09.24300978v3.full_highlighted.pdf

2024.01.09.24300978v3.full.pdf

2024.01.09.24300978v3.full_highlights.json

2024.01.09.24300978v3.full_statement_labels.csv

This issue might be related to the separate height and width issue for each page. #137

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions