Convert PNG

About PNG File Format

PNG, Portable Network Graphics, refers to a type of raster image file format that use loseless compression. This file format was created as a replacement of Graphics Interchange Format (GIF) and has no copyright limitations. However, PNG file format does not support animations. PNG file format supports loseless image compression that makes it popular among its users. With the passage of time, PNG has evolved as one of the mostly used image file format.

Convert from PNG

With GroupDocs.Conversion you can easily convert your PNG document into another file format.
For example PNG to PDF conversion code snippet will look like this:

// Load the source PNG file
using (var converter = new GroupDocs.Conversion.Converter("sample.png"))
{
    // Set the convert options for PDF format
   var options = new PdfConvertOptions();
    // Convert to PDF format
    converter.Convert("converted.pdf", options);
}

Put it simply - you just load a PNG file into Converter, select desired output format and all the rest will be done by GroupDocs.Conversion.

Convert to PNG

On the other hand, converting your files to PNG format is also quite simple and natural. The following code sample demonstrates how to convert PDF document to PNG in C# using GroupDocs.Conversion.

// Load the source PDF file
using (Converter converter = new Converter("sample.pdf"))
{
    string outputFileTemplate = Path.Combine(outputFolder, "converted-page-{0}.png");
    GroupDocs.Conversion.Contracts.SavePageStream getPageStream = page => new FileStream(string.Format(outputFileTemplate, page), FileMode.Create);

    // Set the convert options for PNG format
    var options = new ImageConvertOptions { Format = GroupDocs.Conversion.FileTypes.ImageFileType.Png };
    // Convert to PNG format
    converter.Convert(getPageStream, options);
}

For more detailed code examples of how to convert various file formats to PNG please check articles provided below.

Convert AI to PNGConvert BMP to PNGConvert CDR to PNGConvert CF2 to PNG
Convert CGM to PNGConvert CMX to PNGConvert CSV to PNGConvert DCM to PNG
Convert DGN to PNGConvert DIB to PNGConvert DJVU to PNGConvert DNG to PNG
Convert DOC to PNGConvert DOCM to PNGConvert DOCX to PNGConvert DOT to PNG
Convert DOTM to PNGConvert DOTX to PNGConvert DWF to PNGConvert DWFX to PNG
Convert DWG to PNGConvert DWT to PNGConvert DXF to PNGConvert EMF to PNG
Convert EML to PNGConvert EMLX to PNGConvert EMZ to PNGConvert EPS to PNG
Convert EPUB to PNGConvert FODP to PNGConvert FODS to PNGConvert GIF to PNG
Convert HTM to PNGConvert HTML to PNGConvert ICO to PNGConvert IFC to PNG
Convert IGS to PNGConvert J2C to PNGConvert J2K to PNGConvert JLS to PNG
Convert JP2 to PNGConvert JPC to PNGConvert JPEG to PNGConvert JPF to PNG
Convert JPG to PNGConvert JPM to PNGConvert JPX to PNGConvert LOG to PNG
Convert MD to PNGConvert MHT to PNGConvert MHTML to PNGConvert MOBI to PNG
Convert MPP to PNGConvert MPT to PNGConvert MPX to PNGConvert MSG to PNG
Convert ODG to PNGConvert ODP to PNGConvert ODS to PNGConvert ODT to PNG
Convert ONE to PNGConvert OTG to PNGConvert OTP to PNGConvert OTS to PNG
Convert OTT to PNGConvert OXPS to PNGConvert PCL to PNGConvert PDF to PNG
Convert PLT to PNGConvert POT to PNGConvert POTM to PNGConvert POTX to PNG
Convert PPS to PNGConvert PPSM to PNGConvert PPSX to PNGConvert PPT to PNG
Convert PPTM to PNGConvert PPTX to PNGConvert PS to PNGConvert PSD to PNG
Convert RTF to PNGConvert STL to PNGConvert SVG to PNGConvert SVGZ to PNG
Convert SXC to PNGConvert TEX to PNGConvert TIF to PNGConvert TIFF to PNG
Convert TSV to PNGConvert TXT to PNGConvert VCF to PNGConvert VDW to PNG
Convert VDX to PNGConvert VSD to PNGConvert VSDM to PNGConvert VSDX to PNG
Convert VSS to PNGConvert VSSM to PNGConvert VSSX to PNGConvert VST to PNG
Convert VSTM to PNGConvert VSTX to PNGConvert VSX to PNGConvert VTX to PNG
Convert WEBP to PNGConvert WMF to PNGConvert WMZ to PNGConvert XLAM to PNG
Convert XLS to PNGConvert XLSB to PNGConvert XLSM to PNGConvert XLSX to PNG
Convert XLT to PNGConvert XLTM to PNGConvert XLTX to PNGConvert XML to PNG
Convert XPS to PNG