Commit Graph

6 Commits (7c17f4d1108c4ef15e174f8ab15a978a88518094)

Author SHA1 Message Date
Charlie d53ac94bfc
Enhance/pdf improvements (#6475)
Full-text search, highlights and assets alias support 
It also exposes a plugin API for highlight context menu   
    ```ts
    /**
       * Current it's only available for pdf viewer
       * @param label - displayed name of command
       * @param action - callback for the clickable item
       * @param opts - clearSelection: clear highlight selection when callback invoked
       */
      registerHighlightContextMenuItem: (
        label: string,
        action: SimpleCommandCallback,
        opts?: {
          clearSelection: boolean
        }
      ) => unknown
    ```
2022-10-09 20:44:18 +08:00
Wojciech Nawrocki 2390846531
feat(pdf): fix formatting of copied text (#4564)
* chore(pdf): update pdfjs to 2.13.216

Also reapplied pdf_viewer fix from d3b4773.

* fix(pdf): formatting of copied text

* chore(pdf): update viewer CSS to 2.13.216

* chore(pdf): remove deprecated option

* chore(pdf): update pdfjs to 2.14.305

* doc(pdf): document some functions

* fix(pdf): highlight positioning
2022-07-12 18:30:50 +08:00
charlie d3b477309f fix(pdf): goto highlight not work sometimes 2021-10-10 00:17:23 +08:00
charlie df81cf39b9 fix(pdf): sometimes goto destination not working 2021-08-12 11:26:04 +08:00
charlie b7b0822152 chore(pdf): add offline resources 2021-08-06 16:37:52 +08:00
charlie 82330fb3f4 improve(pdf): add basic files 2021-07-14 21:54:30 +08:00