I’m experiencing an issue where the OHIF PDF viewer displays a blank page when using a dicomjson data source. Other viewers work correctly with the same setup. The PDF viewer functions as expected when uploading documents directly via the local upload URL. However, when attempting to load a PDF encapsulated in DICOM format via a dicomjson data source, it results in a blank page and a console error.
Steps to Reproduce
Create a studywithpdf.json file inside the public folder (platform/app/public/studywithpdf.json) with the following JSON data:
Describe the Bug
I’m experiencing an issue where the OHIF PDF viewer displays a blank page when using a dicomjson data source. Other viewers work correctly with the same setup. The PDF viewer functions as expected when uploading documents directly via the local upload URL. However, when attempting to load a PDF encapsulated in DICOM format via a dicomjson data source, it results in a blank page and a console error.
Steps to Reproduce
studywithpdf.json
file inside thepublic
folder (platform/app/public/studywithpdf.json
) with the following JSON data:Study.With.PDF.zip Note: Replace [secure_url] with the URL of the DICOM PDF file provided for reference.
http://localhost:3000/viewer/dicomjson?url=http://localhost:3000/studywithpdf.json
The current behavior
A blank page is displayed, and the following error appears in the console:
The expected behavior
The PDF should display correctly in the viewer something like this,
Additional Information
OS
window 11
Node version
v20.9.0
Browser
Version 130.0.6723.70 (Official Build) (64-bit)