Skip to main content

Posts

Showing posts from 2008

Creating PDFs with C# using Ghostscript

Portable Document Format (PDF) is a file format from Adobe that enables a document to be distributed on different systems while preserving the layout. It has become a standard for secured and reliable distribution and exchange of electronic documents around the world. It preserves the fonts, images, graphics, and layout of any source document, regardless of the application and platform used to create it, thus making it cross-platform and cross-browser compatible. With the increased use of PDF documents as a universal format for sharing documents and managing the paperless office, it has become a part of the commercial applications to be able to convert documents of different format to PDF. In this article we will discuss how we can use Ghostscript to convert various documents into PDF. Read the complete article here .

Serialization in Database

Serialization is the process of converting an object into a stream of bytes which is easily transferable over the network and storing its current state on any permanent storage media like file or database for later use. De-serialization is the reverse process of Serialization, where the stored object is taken and the original object is recreated. .NET provides classes through its System.Runtime.Serialization namespaces that can be used for serializing and de-serializing objects. Read the complete article here .

Working with DBISAM Using Microsoft .NET

DBISAM is a word that may seem new for many of us and many would be astonished to know that it is a database. Like any other database, it has the ability to maintain huge amounts of data. This article aims at providing an overview of DBISAM and the ways we can interact with the database through .NET. Let us first discuss about some of the aspects of DBISAM. Read the complete article Here .

Convert your PDF to Images

PDF is one of the most widely used format for distribution of electronic documents. My article on ASP Alliance Creating PDFs with C# using Ghostscript gives a brief idea on conversion of different document formats into PDF. Ghostscript supports output to a variety of image file formats from pdf and ps files. These formats are called "output devices" in Ghostscript terminology. The ghostscript executible gswin32c.exe can be used to achieve this. The command used for this is as follows: gswin32c -dSAFER -dBATCH -dNOPAUSE -sDEVICE=jpeg -o out_%d.jpg inputFile.pdf -sDEVICE is used to specify the output device or the driver -dSAFER -dBATCH -dNOPAUSE options suppress interactive prompts and enable some security checks on the file to be run. -o is used to specify the output file name. %d option helps to automatically assign file names as per the page number. So, if a file has 10 pages, 10 files will be created. The supported devices are as follows: PNG png16m : 24-bit RGB color png