Skip to content

[Bug]: /Subj not shown in text annotation (only /T) #20987

Description

@ousia

Attach (recommended) or Link to PDF file

annotation-colors.pdf

Web browser and its version

Firefox 149.0

Operating system and its version

Fedora 43

PDF.js version

From the browser

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. Open annotation-colors.pdf.
  2. Double click or hover any annotation.

What is the expected behavior?

/Subj (Just a comment in this case) should be displayed, besides /T(such as /Subj/T).

Annotation code reads:

2 0 obj
<<
  /Type /Annot
  /C [ 1 0 0 ]
  /CA 1
  /Contents <FEFF006F00700065006E00730073006C00200072006500710020002D00780035003000390020002D006E00650077006B0065007900200072007300610020002D006B00650079006F007500740020006B00650079002E00700065006D0020002D006F0075007400200063006500720074002E00700065006D0020002D006E006F0065006E00630020002D0064006100790073002000310035003000300020002D007300750062006A00200022002F0043004E003D0046006F0072002000740065007300740069006E006700200070007500720070006F0073006500730020006F006E006C0079002000280052005300410020003200300034003800290022>
  /NM (comment:1)
  /Subj (Just a comment)
  /Subtype /Text
  /T (A. U. Thor)
  /Rect [ 51.935918 243.49448 58.913537 250.47209 ]
>>
endobj

What went wrong?

Only with https://mozilla.github.io/pdf.js/web/viewer.html (PDF.js shipped with Firefox 149.0 doesn’t even display /T):

Image

Link to a viewer

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    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