• Creates a set of helper functions for interacting with a PDFViewer instance.

    Parameters

    Returns TypeHighlighter

    An object containing various helper functions for the PDFViewer.

    The returned object includes functions for:

    • Converting between viewport and scaled coordinates.
    • Taking screenshots of specific areas on a page.
    • Scrolling a specific page into view.
    • Converting mouse coordinates to PDF point coordinates.
    • Getting the viewport of a specific page.
    • Scaling coordinates to viewport dimensions.

    Each function is designed to work seamlessly with the provided PDFViewer instance, facilitating complex interactions and manipulations of PDF documents within a React application.