Skip to content

Printing on OpenAction is not fully supported #11442

Closed

Description

@usukololgubu

Attachments:

Action.pdf
OpenAction.pdf

Configuration:

  • Firefox 71.0 (64-bit)
  • Windows 10 1903 (64-bit, build 18362.476)
  • PDF.js 2.4.43 (built-in Firefox)

Steps to reproduce the problem:

  1. Open Action.pdf
    Observed: print dialog is shown when opening PDF
  2. Open OpenAction.pdf in FireFox
    Observed: print dialog is not shown
    Expected: print dialog should be shown when opening PDF

What is the expected behavior?

The print dialog should appear when you open any of the attachment files in FF in the same way as in other viewers (Acrobat, Chrome, IE/Edge).

What went wrong?

It seems that Pdf.js does not recognize OpenAction if it contains the /Print statement directly:

/OpenAction <<
/S /Named
/N /Print
>>

and works well if OpenAction contains a reference to the named action with the /Print statement:

22 0 obj
<<
/Type /Action
/S /Named
/N /Print
>>
endobj

 ... 

2 0 obj
<<
/Type /Catalog
/Pages 1 0 R
/OpenAction 22 0 R
>>
endobj
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

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions