Solved: Problem to display in Weasis dcm files generated by pdf2dcm

107 views
Skip to first unread message

Pela Silveira

unread,
Oct 6, 2020, 9:54:17 AM10/6/20
to dcm...@googlegroups.com
hello,

I have make some tests with dcm4che toolkit and dcmtk library.

In both i am using pdf2dcm method.

But in weasis only is recognized, output of dcmtk.

here is a test:

run docker:
$docker run --rm -it dcm4che/dcm4che-tools


in another shell
$docker ps
72052c3f4f9b        dcm4che/dcm4che-tools   "jshell"            About a minute ago   Up About a minute                       eloquent_kilby

$docker cp .some.pdf 72052c3f4f9b:/.

$docker run  72052c3f4f9b -it /bin/bash

#pdf2dcm some.pdf out.dcm
#exit

$docker cp  72052c3f4f9b:/out.pdf .

after that opened in weasis, file not recognized.


With DCMTK I dont face that problem.


thank you in advance for your help!

Pela Silveira

unread,
Oct 6, 2020, 10:03:12 AM10/6/20
to dcm4che
Update , added -m 00420012=application/pdf

without result.

Nicolas Roduit

unread,
Oct 11, 2020, 5:46:45 AM10/11/20
to dcm4che
This is because the DICOM file doesn't contain a value in the Modality tag. This field is mandatory and is used by Weasis to select the type of viewer. 

The tool pdf2dcm in dcm4che doesn't set a value for some mandatory attributes. So you need to add those attributes to obtain a valid DICOM file.

Pela Silveira

unread,
Oct 11, 2020, 9:43:18 AM10/11/20
to dcm4che
Thanks Nicolás
Reply all
Reply to author
Forward
0 new messages