-
-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyDicom Encapsulated Files #814
Comments
I'm not aware of any examples or tests but it should just be a matter of following the IOD for Encapsulated PDF Storage, most notably by including elements from the Encapulsated Document Series and Encapsulated Document modules (plus of course the other mandatory modules). |
Hi Neuroforge, Attaching Update: Created a sample code in case people need an example of usage: |
@Neuroforge, were you able to work with the example given? Perhaps this issue can be closed and people can find this by search engines? |
Hello, I used a similar approach to @rohithkumar31. Save the file to a temp file, convert to dicom and the uploaded to our PACS server. Please feel free to close the issue. |
I am currently in the process of creating a python package to do this as well as the possibility to convert pdf to dicom rgb format maybe you can take a look at the project too. |
What worked for me is the "dcm2pdf" command (https://support.dcmtk.org/docs/dcm2pdf.html / https://command-not-found.com/dcm2pdf). In python, you can execute the command After that, you will be able to extract the text using "pdfplumber" :
|
Description
Hello,
I wish to replicate the functionality of dcmtk's pdf2dcm tool. Are there samples or tests showing how to make an encapsulated file with Pydicom?
Docs:
https://support.dcmtk.org/docs/pdf2dcm.html
Source:
https://github.com/InsightSoftwareConsortium/DCMTK/blob/master/dcmdata/apps/pdf2dcm.cc
Versions
Darwin-18.2.0-x86_64-i386-64bit
Python 3.6.1 |Anaconda custom (64-bit)| (default, May 11 2017, 13:04:09)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
pydicom 1.2.2
The text was updated successfully, but these errors were encountered: