Skip to content

Commit

Permalink
updated the bleeding edge branch to pdf.js 4.7.76
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed Oct 6, 2024
1 parent 5445bcf commit 4f24c92
Show file tree
Hide file tree
Showing 69 changed files with 688 additions and 321 deletions.
4 changes: 4 additions & 0 deletions projects/ngx-extended-pdf-viewer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ This library provides an embeddable PDF viewer component. It's different from ot

Version 20.0.2 is a security fix. It solves CVE-2024-4367. I strongly recommend updating to the latest version of ngx-extended-pdf-viewer as soon as possible, or to version 20.0.2 as a minimum. Older versions contain a bug allowing malicious PDF files to run arbitrary code. Kudos go to GitHub users ScratchPDX and Deepak Shakya to tell me about it, so I could provide a hotfix during my vacations.

## Version 22.0: update to pdf.js 4.7

Version 22.0 updates to pdf.js 4.7. It offers the same functionality as version 21.4, but it's a breaking change because `NgxExtendedPdfViewerService.addEditorAnnotation` is now asynchronous

## Version 21.4: improved search UI and update to pdf.js 4.6

Version 21.4 updates to pdf.js 4.6. It also improved the search functionality: the find button is hidden if there's no text layer in the PDF document (or at least in the first 20 pages of the PDF document - this seems to be a decent compromise between accuracy and performance). If there's no find button or no text layer, CTRL+F doesn't open the find bar.
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-extended-pdf-viewer/assets/viewer-4.6.688.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21884,7 +21884,7 @@ const {
} = globalThis.pdfjsLib;

;// CONCATENATED MODULE: ./web/ngx-extended-pdf-viewer-version.js
const ngxExtendedPdfViewerVersion = '21.4.4';
const ngxExtendedPdfViewerVersion = '21.4.5';
;// CONCATENATED MODULE: ./web/event_utils.js
const WaitOnType = {
EVENT: "event",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ pdfjs-additional-layers = Additional Layers
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-entire-word-checkbox-label = Whole Words
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ pdfjs-additional-layers = Additional Layers
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-entire-word-checkbox-label = Whole Words
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,12 @@ pdfjs-current-outline-item-button =
pdfjs-current-outline-item-button-label = Current Outline Item
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ pdfjs-find-highlight-checkbox = Highlight All
pdfjs-find-match-case-checkbox-label = Match Case
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,12 @@ pdfjs-current-outline-item-button =
pdfjs-current-outline-item-button-label = Current Outline Item
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ pdfjs-current-outline-item-button-label = Current Outline Item
pdfjs-additional-layers = Additional Layers
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ pdfjs-current-outline-item-button-label = Current Outline Item
pdfjs-additional-layers = Additional Layers
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,12 @@ pdfjs-current-outline-item-button =
.title = Find Current Outline Item
pdfjs-current-outline-item-button-label = Current Outline Item
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ pdfjs-additional-layers = Additional Layers
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-entire-word-checkbox-label = Whole Words
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ pdfjs-additional-layers = Additional Layers
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-entire-word-checkbox-label = Whole Words
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@ pdfjs-document-properties-size-kb = { NUMBER($kb, maximumSignificantDigits: 3) }
pdfjs-document-properties-size-mb = { NUMBER($mb, maximumSignificantDigits: 3) } MB ({ $b } bytes)
pdfjs-document-properties-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,12 @@ pdfjs-document-properties-size-kb = { NUMBER($kb, maximumSignificantDigits: 3) }
pdfjs-document-properties-size-mb = { NUMBER($mb, maximumSignificantDigits: 3) } MB ({ $b } bytes)
pdfjs-document-properties-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ pdfjs-current-outline-item-button =
pdfjs-current-outline-item-button-label = Current Outline Item
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,15 @@ pdfjs-find-reached-bottom = Reached end of document, continued from top
# $current (Number) - the index of the currently active find result
# $total (Number) - the total number of matches in the document
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
# Variables:
# $limit (Number) - the maximum number of matches
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,21 @@ pdfjs-editor-highlight-show-all-button =

## Image alt-text settings

pdfjs-editor-alt-text-settings-dialog-label = Ajustes del texto alternativo de la imagen
pdfjs-editor-alt-text-settings-automatic-title = Texto alternativo automático
pdfjs-editor-alt-text-settings-create-model-button-label = Crear texto alternativo automáticamente
pdfjs-editor-alt-text-settings-create-model-description = Sugiere descripciones para ayudar a las personas que no pueden ver la imagen o cuando la imagen no se carga.
# Variables:
# $totalSize (Number) - the total size (in MB) of the AI model.
pdfjs-editor-alt-text-settings-download-model-label = Modelo de IA de texto alternativo ({ $totalSize } MB)
pdfjs-editor-alt-text-settings-ai-model-description = Se ejecuta localmente en el dispositivo para que los datos se mantengan privados. Requerido para texto alternativo automático.
pdfjs-editor-alt-text-settings-delete-model-button = Eliminar
pdfjs-editor-alt-text-settings-download-model-button = Descargar
pdfjs-editor-alt-text-settings-downloading-model-button = Descargando…
pdfjs-editor-alt-text-settings-editor-title = Editor de texto alternativo
pdfjs-editor-alt-text-settings-show-dialog-button-label = Mostrar el editor de texto alternativo inmediatamente al añadir una imagen
pdfjs-editor-alt-text-settings-show-dialog-description = Le ayuda a asegurarse de que todas sus imágenes tengan texto alternativo.
pdfjs-editor-alt-text-settings-close-button = Cerrar
pdfjs-document-properties-size-kb = { NUMBER($kb, maximumSignificantDigits: 3) } KB ({ $b } bytes)
pdfjs-document-properties-size-mb = { NUMBER($mb, maximumSignificantDigits: 3) } MB ({ $b } bytes)
Expand All @@ -441,19 +456,6 @@ pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer = Created automatic
pdfjs-image-alt-text-settings-button =
.title = Image alt text settings
pdfjs-image-alt-text-settings-button-label = Image alt text settings
pdfjs-editor-alt-text-settings-dialog-label = Image alt text settings
pdfjs-editor-alt-text-settings-automatic-title = Automatic alt text
pdfjs-editor-alt-text-settings-create-model-button-label = Create alt text automatically
pdfjs-editor-alt-text-settings-create-model-description = Suggests descriptions to help people who can’t see the image or when the image doesn’t load.
pdfjs-editor-alt-text-settings-download-model-label = Alt text AI model ({ $totalSize } MB)
pdfjs-editor-alt-text-settings-ai-model-description = Runs locally on your device so your data stays private. Required for automatic alt text.
pdfjs-editor-alt-text-settings-delete-model-button = Delete
pdfjs-editor-alt-text-settings-download-model-button = Download
pdfjs-editor-alt-text-settings-downloading-model-button = Downloading…
pdfjs-editor-alt-text-settings-editor-title = Alt text editor
pdfjs-editor-alt-text-settings-show-dialog-button-label = Show alt text editor right away when adding an image
pdfjs-editor-alt-text-settings-show-dialog-description = Helps you make sure all your images have alt text.
pdfjs-editor-alt-text-settings-close-button = Close
unverified-signature-warning = This PDF file contains a digital signature. The PDF viewer can't verify if the signature is valid. Please download the file and open it in Acrobat Reader to verify the signature is valid.
pdfjs-infinite-scroll-button-label = Infinite scroll
pdfjs-find-multiple-checkbox-label = match each word
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,12 @@ pdfjs-document-properties-size-kb = { NUMBER($kb, maximumSignificantDigits: 3) }
pdfjs-document-properties-size-mb = { NUMBER($mb, maximumSignificantDigits: 3) } MB ({ $b } bytes)
pdfjs-document-properties-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,12 @@ pdfjs-document-properties-size-kb = { NUMBER($kb, maximumSignificantDigits: 3) }
pdfjs-document-properties-size-mb = { NUMBER($mb, maximumSignificantDigits: 3) } MB ({ $b } bytes)
pdfjs-document-properties-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,12 @@ pdfjs-current-outline-item-button-label = Current Outline Item
pdfjs-additional-layers = Additional Layers
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ pdfjs-current-outline-item-button-label = Current Outline Item
pdfjs-additional-layers = Additional Layers
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ pdfjs-current-outline-item-button-label = Current Outline Item
pdfjs-additional-layers = Additional Layers
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@ pdfjs-document-properties-size-kb = { NUMBER($kb, maximumSignificantDigits: 3) }
pdfjs-document-properties-size-mb = { NUMBER($mb, maximumSignificantDigits: 3) } MB ({ $b } bytes)
pdfjs-document-properties-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ pdfjs-current-outline-item-button-label = Current Outline Item
pdfjs-additional-layers = Additional Layers
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,12 @@ pdfjs-current-outline-item-button-label = Current Outline Item
pdfjs-additional-layers = Additional Layers
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-match-count =
{ NUMBER($total) ->
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ NUMBER($limit) ->
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
Expand Down
Loading

0 comments on commit 4f24c92

Please sign in to comment.