Free Support Forum - aspose.com

Ability to convert PDF or JPEG to DICOM format

I’m new to the imaging product. Does it have the ability to covert a PDF or a JPEG to the DICOM format?

@aultmike

Aspose.Imaging supports working with Image files and their export to PDF. However, vice versa is not supported in API. You may please check Aspose.PDF for concerned support if available in API.

So Aspose.Imaging can convert a JPEG or a TIFF file to DICOM?

@aultmike

You can use following sample code to serve the purpose.

using (var image = Image.Load("sample.jpg"))
{
    image.Save("sample.dcm", new DicomOptions());
}