Skip to content

Some annotations draw on the side of the text when the PDF page is rotated 90° #653

@tyruke

Description

@tyruke

On PDFs where every page has a 90 degree rotation in the file (MediaBox is landscape), when I use the underline tool and select text, the line shows up on the side of the text, vertical red bars along the left, instead of under the words. The text itself displays and reads normally on screen.

I tested this even on the main demo viewer on the EmbedPDF website, and it happens there too. It happens with underline, strikeout, and squiggly line.

How To Reproduce:

  1. Open a PDF where pages have Rotation 90 and a landscape MediaBox.
  2. Use the underline, squiggly line, or strikeout tool.
  3. Drag to select a line of text that reads left-to-right on screen.
  4. The annotations appears beside the text, not under it.

I think there might be a lot of pdfs like this where they have a landscape MediaBox, then rotated 90 degrees. I think it might be due to how some print to pdf drivers work, but I'm not sure. I just know that I have a lot of pdf files that are setup like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions