[#7902] Fix to enable cmaps with pdfjs (#8101)

pdfjs works fine with Japanese characters with this options.

Co-authored-by: Hiroshi Shirosaki <h.shirosaki@gmail.com>
This commit is contained in:
Eugenio Romano
2023-01-05 09:52:40 +01:00
committed by GitHub
parent 14c6e6fa1f
commit ec2f349465

View File

@@ -109,7 +109,9 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
private eventBus = new pdfjsViewer.EventBus();
private pdfjsDefaultOptions = {
disableAutoFetch: true,
disableStream: true
disableStream: true,
cMapUrl: './cmaps/',
cMapPacked: true
};
private pdfjsWorkerDestroy$ = new Subject<boolean>();
private onDestroy$ = new Subject<boolean>();