Jayson Harshbarger

Results 156 comments of Jayson Harshbarger

@stephanrauh Good news ... I managed to get the dev server in `stephanrauh/pdf.js` working. I DO NOT see the issue in `stephanrauh/pdf.js` itself on the bleeding edge branch!

Ok... so when the PDF is being rendered fiters are created in the SVG namespace. Filters are referenced by ids like `filter:url(#blurred)`. The presence of a `` messes with these...

Pretty sure the culprit is somewhere around here: https://github.com/mozilla/pdf.js/blob/5ee61690f369980710ab2b719193bd81f3dc7e35/src/display/display_utils.js#L267 .

FYI.. https://github.com/meanjs/mean/issues/1224

I don't think the second fix from ChatGPT is valid. I could be wrong but seams like that has the same issue. A couple ideas I have to fix this:...

Hello all... this is still an issue. If a custom uploader rejects before the preview is shown; the preview is not dismissed. https://github.com/editor-js/image/pull/185 seams to fix this. Any chance of...

Esiest fix I can up with is to cachebust the viewer mjs file. Two lines changed: `const viewerPath = this.getPdfJsPath('viewer') + '?v=' + new Date().getTime();` and in `createScriptElement` ``` script.type...

Guessing the better fix is to wrap these lines in a global function that gets called onload. https://github.com/stephanrauh/ngx-extended-pdf-viewer/blob/main/projects/ngx-extended-pdf-viewer/assets/viewer-4.5.713.mjs#L38804C1-L38812C31

~Something like this (untested):~ DOESN'T WORK ``` function ngxViewerFileHasBeenLoaded() { const event = new CustomEvent('ngxViewerFileHasBeenLoaded', { detail: { PDFViewerApplication: __webpack_exports__.PDFViewerApplication, PDFViewerApplicationConstants: __webpack_exports__.PDFViewerApplicationConstants, PDFViewerApplicationOptions: __webpack_exports__.PDFViewerApplicationOptions, webViewerLoad: __webpack_exports__.webViewerLoad, }, }); document.dispatchEvent(event); }...

OK.. Here is the best I got: In `viewer.mjs`: ``` function ngxViewerFileHasBeenLoaded() { const event = new CustomEvent('ngxViewerFileHasBeenLoaded', { detail: { PDFViewerApplication: __webpack_exports__.PDFViewerApplication, PDFViewerApplicationConstants: __webpack_exports__.PDFViewerApplicationConstants, PDFViewerApplicationOptions: __webpack_exports__.PDFViewerApplicationOptions, webViewerLoad: __webpack_exports__.webViewerLoad, },...