PDF (Portable Document Format), developed by Adobe, has been become one of the most frequently used electronic document format now.
Why is PDF so popular? Firstly, PDF has nothing to do with operation system. It means that it can work well on Windows, Mac and Unix. This function enables PDF to be the best choice to publish electronic document and deliver digital information online. Secondly, PDF can reproduce characters, colors and images in original data exactly because it is based on PostScript image model. Therefore, PDF document can give readers a good reading effect.
Convert Word to PDF
Then, how to create PDF document? The method people often use is to convert from other format document, for example, Word to PDF.
In this post, I want to introduce a simple method to convert Word to PDF with C# and VB.NET quickly.
In this method, a component, Spire.Doc for .NET is used. If you want to use the following code, please download and install this component on your computer firstly and then add Spire.Doc dll file as reference.
Detailed Steps Shown as Following:
Load file which you want to convert to PDF from your computer by using document.LoadFromFile() method.
Document document = new Document();
Dim document As New Document()
Convert this document to PDF by using document.SaveToFile() method. Two parameters passed to this method, file name and file format.
Launch new PDF document.
Result Shown as Following:
Freely Download Spire.Doc for .NET