Render TGZ files
TGZ files are TAR (Tape-ARchiver) GZipped archive files, they contain TAR archive compressed with GZip.
GZip format used DEFLATE algorithm for compression of archive. This format applying compression on the complete archive, not on individual files.
Extension: TGZ or TAR.GZ.
TGZ archives can be opened with WinRar.
How to convert TGZ archive files
Convert archive files to multiple pages HTML
To convert archive files to multiple pages HTML with GroupDocs.Viewer for .NET use following code:
using (Viewer viewer = new Viewer("sample.tar.gz"))
{
HtmlViewOptions options = HtmlViewOptions.ForEmbeddedResources("output_page_{0}.html");
viewer.View(options);
}
The following screenshot shows the output HTML file opened in a browser.
Convert archive files to single HTML
To convert archive files to single page HTML with GroupDocs.Viewer for .NET use following code:
using (Viewer viewer = new Viewer("sample.tar.gz"))
{
HtmlViewOptions options = HtmlViewOptions.ForEmbeddedResources("output.html");
options.RenderToSinglePage = true;
viewer.View(options);
}
The following screenshot shows the output HTML file opened in a browser.
Convert archive files to JPG
To convert archive files to JPG with GroupDocs.Viewer for .NET use following code:
using (Viewer viewer = new Viewer("sample.tar.gz"))
{
JpgViewOptions options = new JpgViewOptions("output_page_{0}.jpg");
viewer.View(options);
}
The following screenshot shows the output JPG file opened in a Windows Photo Viewer application.
Convert archive files to PNG
To convert archive files to PNG with GroupDocs.Viewer for .NET use following code:
using (Viewer viewer = new Viewer("sample.tar.gz"))
{
PngViewOptions options = new PngViewOptions("output_page_{0}.png");
viewer.View(options);
}
The following screenshot shows the output PNG file opened in a Windows Photo Viewer application.
Convert archive to PDF
To convert Roshal Archive files to PDF with GroupDocs.Viewer for .NET use following code:
using (Viewer viewer = new Viewer("sample.tar.gz"))
{
PdfViewOptions options = new PdfViewOptions("output.pdf");
viewer.View(options);
}
The following screenshot shows the output PDF file opened in an Acrobat Reader.