C#: Online Guide
How To: Dicom SDK
Dicom to PDF
Dicom to PDF
  |  
Home ›› XDoc.Dicom ›› C# Dicom: Convert Dicom to PDF

C# DICOM - Convert DICOM to PDF Document


C# Guide for Rendering and Converting DICOM Image File to PDF Document




C# Guide: DICOM to PDF Conversion Overview



RasterEdge offers profession .NET file conversion toolkit for rendering different documents and images. On this page, we focus on C#.NET document conversion between DICOM and PDF. To achieve conversion between DICOM image file and PDF document, C#.NET developers will use three .NET document imaging DLLs, which include RasterEdge.Imaging.Basic.dll, RasterEdge.Imaging.DICOM.dll and RasterEdge.Imaging.PDF.dll. Users can add them by steps: right-click your C#.NET project, select "Add Reference...", and browse to find and add the above three DLLs to your project from RasterEdge DocImage SDK for .NET download package.Then please refer to the following piece of C# demo code for DICOM-to-PDF conversion for a quick evaluation.


Related .net document control helps:
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net edit pdf image using c#: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
c# asp.net excel viewer: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
asp.net document viewer example: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
asp.net edit pdf page using c#: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net sharepoint document viewer control: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net view powerpoint: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET


Detailedly, RasterEdge .NET Document Conversion Toolkit supports directly rendering and converting DICOM image file to PDF document in C#.NET program, as well as annotating on DICOM document and converting to PDF file.




C# Guide: DICOM to PDF Conversion Demo Code




Add necessary references references;


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.JPEG2000.dll


  RasterEdge.Imaging.DICOM.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XDoc.PDF.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.Imaging.DICOM;


In the following table, you can find a piece of C#.NET demo code for rendering and converting DICOM document to PDF document, which will firstly load a DICOM image file into your C#.NET project and then render and save loaded DICOM to PDF file.




// load a DCMDocument
DCMDocument doc = new DCMDocument(@"c:\a.dcm");

// convert DICOM to PDF
doc.ConvertToDocument(DocumentType.PDF, @"c:\sample.pdf");



public override void ConvertToDocument(DocumentType targetType, Stream stream)
Parameters:
public override void ConvertToDocument(DocumentType targetType, string filePath)
Parameters:
public override void ConvertToDocument(DocumentType targetType, float zoomValue, Stream desStream)
Parameters:
public override void ConvertToDocument(DocumentType targetType, float zoomValue, string filePath)
Parameters:
public override void ConvertToDocument(DocumentType targetType, int resolution, Stream desStream)
Parameters:
public override void ConvertToDocument(DocumentType targetType, int resolution, string filePath)
Parameters:
public override void ConvertToDocument(DocumentType targetType, Stream desStream, ImageOutputOption options)
Parameters:
public override void ConvertToDocument(DocumentType targetType, string filePath, ImageOutputOption options)
Parameters: