pdfrx_web
    Preparing search index...

    Function useDocumentGeneration

    • A counter that increments on every document change — including the automatic reopen the viewer performs after registering missing-font fallbacks.

      Use it as an effect dependency or a cache key when something has to be rebuilt per document. Comparing viewer.document identity is not enough on its own, because the reopen produces a genuinely different document that shows the same file.

      Returns number

      The current document generation state and actions.