Can I use Aspose.PDF to convert a PDF to DICOM image?
At the moment, the API supports a feature to convert DICOM image to PDF.
string outputFile = @"c:\mr-shoulder.pdf";
using (Document pdfDocument = new Document())
{
pdfDocument.Pages.Add();
Aspose.Pdf.Image image = new Aspose.Pdf.Image();
image.FileType = ImageFileType.Dicom;
image.File = @"c:\mr-shoulder.dcm";
pdfDocument.Pages[1].Paragraphs.Add(image);
// Save output as PDF format
pdfDocument.Save(outputFile);
}
We have logged a feature request for the support of PDF to DICOM image as PDFNET-49657 in our issue tracking system. We will further check the feasibility of this feature and let you know as soon as it is available. Please be patient and spare us some time.
We are sorry for the inconvenience.
Thanks for the reply! To be clear none of the ASPOSE libraries provide a way to turn a PDF or a jpeg into a DICOM format. Is that accurate?
Aspose.Imaging offers the features to manipulate DICOM Formats. You can further post an inquiry in Aspose.Imaging forum category as well in case you need more information.
My apologies for not seeing the last part of your first response. Thank You
The issues you have found earlier (filed as PDFNET-49657) have been fixed in Aspose.PDF for .NET 22.12.
This is great news! Can you point me to some sample code or an example to convert TO DICOM imagees??
You can use DicomDevice similar to the JpegDevice in order to convert PDF to DICOM images. We will soon update our documentation and add some code samples. Meanwhile, if you face any issues, please let us know.