July 16, 2024 Product Updates


Added: New redesigned Document Viewer with new modern UI and new features.
    We now based our Document Viewer on the best PDF viewer "pdfjs".

    pdfjs is a great open-source project which is frequently updated and 
    new features are being added to, however looks-wise it's ugly, or 
    maybe let's say it looks outdated. How about getting the latest 
    PDF features and fixes from pdfjs but having a slick look on the presentation side?

    Our pdf viewer is unobtrusive, we don't directly change code of pdfjs, 
    we just include pdfjs in an iframe and at runtime override HTML, JS and CSS
    to offer  a slick modern look and better ui structure and usability and new features. 
    This way we can always update pdfjs to the latest version easily and
    get all bug fixes and improvements.

    Other pdf viewers based on pdfjs usually don't update the default look, 
    and the ones that does usually miss functionality due to separating 
    into components but partially implementing them or offer a bad/partial API.


Added: Document Viewer now supports 3 built-in themes: "slate", "classic-light", "classic-dark".
    When two values separated by comma is set, the second value will be the dark theme.
    Dark theme is used when a user indicates their preference through an operating system setting (e.g. light or dark mode) or a user agent setting.
    When single value is provided, dark theme is disabled, i.e. the only provided theme will be used always even when user prefers dark mode.
    Note that you can emulate prefers-color-scheme via browser's F12 dev tools to test dark mode which is normally activated according to user's OS preferences.




Improved: Mobile viewer is removed, instead same viewer will use large UI sizing for mobile devices.
    DocumentViewer.MobileMode property now specifies on which mobile device type to use large UI sizing.
    Note that device features are not detected, instead browser's viewport size is used to decide the UI sizing.
    So if you manually resize the browser window (or emulate a device via browser's F12 dev tools), 
    phone or tablet size can be triggered.



Added: DocumentViewer.DisplayMode now supports Window, Panel and Viewport values.



Added: Document Viewer now supports 111 language files. UI supports right-to-left languages.