Skip to main content
Skip table of contents

The currentpdfcontext operator

This page applies to Harlequin v13.1r0 and later; and to Harlequin Core but not Harlequin MultiRIP.

currentpdfcontext dict

Returns a dictionary describing the current context. The current context can only mean the top of the context list, which means the context most recently opened (either by pdfopen or pdfexec).

Returns an undefined error if there is no context. The keys have these meanings:


The context identifier.


The page index, as defined in [PDF1.3]. Following pdfopen it is possible to see a page index of 0, implying the first page, even if there are no pages.


The PageRange supplied to pdfexec or pdfopen for the current document. Or, if a PageRange was not supplied, the PageRange in currentpdfparams.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.