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:
asp.net iis file viewer: C# HTML5 Viewer: Deployment on IIS
asp.net convert pdf control: ASP.NET Convert PDF Control: Convert, export PDF to Word, HTML, Tiff files in C# ASP.NET
asp.net dotnetnuke pdf editor control: ASP.NET DNN PDF Editor Control: view, edit PDF files in Dotnetnuke application
asp.net webforms pdf editor control: ASP.NET WebForms PDF Editor: create, view, edit, annotate, redact PDF file in ASP.NET WebForms application
asp.net pdf viewer control: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net file viewer: EdgeDoc ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online using ASP.NET Web Con...
asp.net azure pdf editor control: ASP.NET Azure PDF Editor Control: view, edit, annotate, redact PDF files online


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: