pdf2dcm to dicom cant open in viewer

70 views
Skip to first unread message

marti...@gmail.com

unread,
Oct 28, 2023, 9:15:02 PM10/28/23
to dcm4che
Hi Im trying to convert pdf to dicom file.

I read documentation and forums, Im using xml whith dicom tags. When i run pdf2dcm the conversion is processed but when i want to view in dicom viewer the pdf its not showed.
I dont know what im wrong.

PS D:\mirth_test\dcm4chee\bin> .\pdf2dcm -f "D:\mirth_test\processed\dcm.xml" -- "D:\mirth_test\processed\1.2.276.0.75.2.2.45.215507189046118.20231025144403109.6064274680.pdf" "D:\mirth_test\processed\out.dcm"
D:\mirth_test\processed\1.2.276.0.75.2.2.45.215507189046118.20231025144403109.6064274680.pdf -> D:\mirth_test\processed\out.dcm
PS D:\mirth_test\dcm4chee\bin> .\dcmdump "D:\mirth_test\processed\out.dcm"
0: [0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
132: (0002,0000) UL #4 [178] FileMetaInformationGroupLength
144: (0002,0001) OB #2 [0\1] FileMetaInformationVersion
158: (0002,0002) UI #30 [1.2.840.10008.5.1.4.1.1.104.1] MediaStorageSOPClassUI
196: (0002,0003) UI #44 [2.25.259994127827563638820373734296403802820] MediaSt
248: (0002,0010) UI #20 [1.2.840.10008.1.2.1] TransferSyntaxUID
276: (0002,0012) UI #16 [1.2.40.0.13.1.3] ImplementationClassUID
300: (0002,0013) SH #14 [dcm4che-5.31.0] ImplementationVersionName
322: (0008,0005) CS #14 [ISO 2022 IR 13] SpecificCharacterSet
344: (0008,0016) UI #30 [1.2.840.10008.5.1.4.1.1.104.1] SOPClassUID
382: (0008,0018) UI #44 [2.25.259994127827563638820373734296403802820] SOPInst
434: (0008,0020) DA #8 [20181127] StudyDate
450: (0008,0022) DA #8 [20181127] AcquisitionDate
466: (0008,0023) DA #8 [20181127] ContentDate
482: (0008,002A) DT #26 [20181127000027.000000+0000] AcquisitionDateTime
516: (0008,0030) TM #14 [043606.000000] StudyTime
538: (0008,0033) TM #14 [043606.000000] ContentTime
560: (0008,0050) SH #8 [42165989] AccessionNumber
576: (0008,0060) CS #4 [DOC] Modality
588: (0008,0064) CS #2 [SD] ConversionType
598: (0008,0070) LO #24 [Philips Medical Systems] Manufacturer
630: (0008,0090) PN #16 [medico referente] ReferringPhysicianName
654: (0008,1050) PN #4 [Test] PerformingPhysicianName
666: (0010,0010) PN #6 [martin] PatientName
680: (0010,0020) LO #4 [2102] PatientID
692: (0010,0021) LO #16 [Origins(default)] IssuerOfPatientID
716: (0010,0030) DA #8 [19990131] PatientBirthDate
732: (0010,0040) CS #2 [F] PatientSex
742: (0010,1001) PN #0 [] OtherPatientNames
750: (0020,000D) UI #54 [1.3.46.670589.52.2.540275.20220124.5152825.4846.15096
812: (0020,000E) UI #56 [1.3.46.670589.52.2.540275.20220124.5152825.4846.15095
876: (0020,0010) SH #0 [] StudyID
884: (0020,0011) IS #2 [0] SeriesNumber
894: (0020,0013) IS #2 [0] InstanceNumber
904: (0028,0301) CS #2 [NO] BurnedInAnnotation
914: (0040,A043) SQ #0 ConceptNameCodeSequence
926: (0042,0010) ST #4 [HCRC] DocumentTitle
938: (0042,0012) LO #16 [application/pdf] MIMETypeOfEncapsulatedDocument
962: (0042,0011) OB #190998 [37\80\68\70\45\49\46\52\13\10\49\32\48\32\111\98\

Captura de pantalla 2023-10-28 221335.png

Any any suggest?

Thanks.

Todd Jensen

unread,
Oct 29, 2023, 3:25:36 PM10/29/23
to dcm4che
You need to use a DICOM viewer that understands how to open an encapsulated document. Looks like whatever you are using cannot. Try Weasis.

Todd Jensen, PhD
Jensen Informatics LLC

Reply all
Reply to author
Forward
0 new messages