How to convert PDF|Word|Excel to jpg in C#.NET

Excel to PDF .Net
is a standalone SDK to convert Excel to PDF, Word, RTF and DOCX in C# and .Net

download      Buy now

Excel to PDF .Net is designed to be used with any of the .NET supported languages like C#, VB.NET and J# etc. Our component can be used with any kind of application whether it's a Silverlight, ASP.NET Web Application, Winforms or a Console Application.

General Functions

  1. Create DOCX document on fly and fill it by necessary data.
  2. Load DOCX document and get all it's structure as tree of objects.
  3. Modify text, tables and other data in existing DOCX document.
  4. Parse current content and structure and Save/Render it as new DOCX.
  5. Replace data in DOCX document.

What component can do:

  1. Make all transformation process completely in memory
  2. Specify page size, orientation and margins of output PDF
  3. Convert .xls workbooks and worksheets to Word, RTF

Component can be used:

  1. To create Windows Forms and Web-based ASP.Net server applications
  2. In C#, VB.Net, J#, ColdFusion etc where installed .Net platform
  3. Even in Linux and Mac, thanks to Mono platform

Platform Independence

The Excel to PDF .Net requires only .Net 1.1 or higher platform. Using the Excel to PDF .Net you can easily create any type of a 32-bit or 64-bit .NET application including ASP.NET, Web Services and WinForms . Our .Net assembly is Multi-Platform component, you may use it to build your application with Mono platform for Linux and Mac (http://www.mono-project.com).

Advanced Features

Technical Features

  1. Created with only pure C#
  2. Absolutely standalone, you will need to include only "SautinSoft.XlsToPdf.dll" into your application
  3. No other dependencies
  4. Reads XLS files and writes PDF directly
  5. Does not require installed Microsoft Excel® or any other software
  6. Works on any .Net platform (.Net 1.1, 2.0, 3.0, 3.5, .4.0)
  7. Works with Windows and even with Linux and Mac (thanks to Mono project http://www.mono-project.com)
  8. Has great abilities to adjust an output PDF as you wish
  9. Small size of SautinSoft.XlsToPdf.dll file

It supports converting of *.xls and *.xlsx to PDF, Word, RTF with:

  1. Full font and text formatting: colors, face, size, bold, italic, underline, strike, superscript, subscript
  2. Export of spreadsheets with borders to PDF table preserving colors, line type and background
  3. Hyperlinks and ancors
  4. Special characters
  5. Images
  6. Various cell types: strings, numbers, dates, floating point
  7. Merged cells and rows
  8. Multiple worksheets
  9. Password protected Excel workbooks
  10. Export Excels files and streams to PDF files and streams
Getting Started
  1. Launch Microsoft's Visual Studio .NET
  2. Create a new project or open existing
  3. In Solution Explorer right click "References" and "Add Reference":
  4. convert excel to pdf

  5. Add reference to SautinSoft.XlsToPdf.dll (for .Net 1.1 it located in: "Net 1.1\SautinSoft.XlsToPdf.dll") (for .Net 2.0, 3.0, 3.5 and 4.0 it located in: "Net 2.0, 3.0, 3.5 and 4.0/SautinSoft.XlsToPdf.dll")
  6. Well done! Now your project able to convert Excel workbooks to PDF format!

Here we offer you some code samples in VB.Net and C#:

Convert Excel file to PDF file using SautinSoft.XlsToPdf.ConvertFile method
Convert Excel workbook to PDF document in memory using
SautinSoft.XlsToPdf.ConvertByte method

Version History

3.2.7.31 - August 1th, 2012.

We've updated the Excel to PDF .Net 3.2.7.31. New changes:

  • Fixed a bug with formatting cells.
  • Fixed issues with incorrect displaying of colors.
  • Fixed an issue with incorrect image size in the resulting PDF document.
  • Fixed a bug with indents in the tables.
  • Fixed issues with pagination.
  • Fixed minor issues.

3.0.9.6 - September 9th, 2011

We are happy to release new major version Excel to PDF .Net 3.0!!! What's new:

  • Added support of *.xlsx (Excel 2007/10) format, now the component can convert XLS and XLSX to PDF, RTF
  • excel to pdf convert

  • Added new method to get number of sheets from Excel workbook
  • Added 30 new code samples in C# and VB.Net for Visual Studio 2005/2008/2010
  • The Demo application has been enhanced by interactive C# and VB.Net code:
  • The Demo application has been enhanced by interactive C# and VB.Net code

  • Improved converting engine to make PDF result the same as Excel workbook
  • The Help documentation has been improved by pictures
  • Fixed minor issues: to fit Excel sheet to single PDF page (A4, A3, Letter etc)

2.8.1.27 - January 27th, 2011.

We are happy to inform about releasing new Excel to PDF .Net 2.8.1.27! What's new:
Added new property PrintArea. It allows to specify custom sheets and cells which will be exported into PDF and Word. For example, we have Excel spreadsheet as shown on picture and we want to export into PDF only area (B20, D25):

convert excel to pdf

This is a C# sample:
SautinSoft.ExcelToPdf x = new SautinSoft.ExcelToPdf();
x.OutputFormat = SautinSoft.ExcelToPdf.eOutputFormat.Pdf;
int[] arJ = { 1 };
x.Sheets.PrintArea.Custom(arJ, "B20", "D25");
After launching this code we've got PDF result (sheet 1, B20 - D25):

printarea excel to pdf

2.6.6.10 - June 10th, 2010.

Fixed issue with converting of spreadsheets which have multiline cells.
2.6.5.6 - May 6th, 2010. Released the new version of the library.

Now component can export XLS to PDF and Word with images

2.1.4.21 - April 21th, 2010. We unveils the new version of Excel to PDF .Net:

Added support of these European languages: German, Czech, Faroese, Hungarian, Icelandic, Slovak, Sámi, Kashubian, Polish, Sorbian, Catalan, Irish, Occitan, Portuguese, Spanish, Danish, Dutch, French, Mandarin, Portuguese, Scottish Gaelic, Kiena, Friulian, Kurdish,Afrikaans, Welsh, Albanian. Fixed issue for cells where text is wider than column width

2.0.4.16 - April 16th, 2010. We've released a new update:

Updated the demo application:
To convert custom Excel sheets
To convert Excel workbooks into MS Word
Added support of attribute 'wrap text'
Improved converting of merged cells

2.0.4.13 - April 13th, 2010. SautinSoft unveils a new update of the Excel to PDF

.Net, what's new:

Added color support for cell borders
Added new property SautinSoft.ExcelToPdf.CPageStyle.CPageSize.Auto to auto-detect of page size
Fixed issue with merged cells
2.0.4.7 - April 7th, 2010. Released the new completely improved and robust version of the Excel to PDF .Net.

Fixed issue with table width, now tables in PDF/Word look the same as in XLS workbook

Fixed issue with alignment in columns
New converting mode: Excel to Word, RTF and new property
SautinSoft.ExcelToPdf.OutputFormat which allows to specify output mode
New property SautinSoft.ExcelToPdf.Sheets to specify custom worksheets for exporting to PDF, Word
Added methods to split and merge PDF documents

1.0.1 - November 19th, 2009

Fixed issue with converting of workbooks with several sheets to PDF
Added new code samples

1.0.0 - November 10th, 2009. Released first version.

Excel to PDF .Net is a standalone C# library to convert Excel spreadsheets and workbooks to PDF.

License

Excel to PDF .Net License

Copyright (C) SautinSoft TM

  1. License
  2. SautinSoft grants you a non-exclusive license to install and use a copy of the software on a single server or more servers (depends of license type). You shall not reverse engineer, disassemble or decompile all or part of the Program. The sale and sub-licensing of the software are forbidden. The creating of applications where the main goal is Excel to PDF converting is forbidden.
  3. Evaluation License
  4. The standard software version is free of charge. It may be freely distributed on the sole condition that it is not altered in any way. Excel to PDF .Net evaluation version can't be used in commercial applications.
  5. Commercial Licenses
  6. Free updates
    All registered customers have free updates for a full version cycle (major version).
    Verifying the license

    SautinSoft has a right to validate your license automatically for these licenses: “1 Developer License”, “1 Developer and 3 Servers License”, “4 Developers and 8 Servers License”. For example, the “1 Developer License” is valid only for a single developer to develop applications.

    Royalty free runtimes

    All developer products have royalty free runtimes. This means that you may freely distribute the component with your desktop applications.

    The Server License allows you to deploy Internet applications using our component. There are no limits of number development and testing servers or websites at one server. We count only production servers.

    1 Developer and 1 Server License

    This license allows a single developer to develop desktop (non-Internet) and Internet applications using our component. This license is valid to redistribute the component with unlimited number of desktop (non-Internet) applications and deploy the component with your Internet applications at one production server.

    1 Developer and 3 Servers License

    This license allows a single developer to develop and deploy desktop (non-Internet) and Internet applications using our component. This license is valid to redistribute the component with unlimited number of desktop (non-Internet) applications and deploy the component with your Internet applications at 3 production servers.

    1 Developer and Unlimited Servers License

    This license allows a single developer to develop and deploy and freely distribute desktop (non-Internet) and Internet applications using our component. This license is valid to deploy the component at unlimited number of production servers.

    Additional Server License

    This license is not valid for development. This license is valid to deploy the component at 1 production server.

    4 Developers and 8 Servers License

    This license allows four developers to develop and deploy desktop (non-Internet) and Internet applications using our component. This license is valid to redistribute the component with unlimited number of desktop (non-Internet) applications and deploy the component with your Internet applications at 8 production servers.

    4 Developers and Unlimited Servers License

    This license allows four developers to develop and deploy and freely distribute desktop (non-Internet) and Internet applications using our component. This license is valid to deploy the component at unlimited number of production servers.

    Site and 20 Servers License

    This license allows all developers within the purchasing organization and located at the same business address to develop and deploy desktop (non-Internet) and Internet applications using our component. This license is valid to redistribute the component with unlimited number of desktop (non-Internet) applications and deploy the component with your Internet applications at 20 production servers.

    Site and Unlimited Servers License

    This license allows all developers within the purchasing organization and located at the same business address to develop and deploy and freely distribute desktop (non-Internet) and Internet applications using our component. This license is valid to deploy the component at unlimited number of production servers.

    Site and 50 Servers License with Source Code

    This license allows all developers within the purchasing organization and located at the same business address to develop and deploy desktop (non-Internet) and Internet applications using our component. This license is valid to redistribute the component with unlimited number of desktop (non-Internet) applications and deploy the component with your Internet applications at 50 production servers.

    The Source Code is not for distribution, it can be used only for development: including into your applications instead of dll file, bug fixing, own improvement of component.

    Site and Unlimited Servers License with Source Code

    This license allows all developers within the purchasing organization and located at the same business address to develop and deploy and freely distribute desktop (non-Internet) and Internet applications using our component. This license is valid to deploy the component at unlimited number of production servers.

    The Source Code is not for distribution, it can be used only for development: including into your applications instead of dll file, bug fixing, own improvement of component.

  7. Warranty disclaimer
  8. THE SOFTWARE IS SUPPLIED "AS IS" WITHOUT WARRANTY OF ANY KIND. SAUTINSOFT, ITS LICENSORS AND THEIR EMPLOYEES: (1) DISCLAIM ANY WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OR MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT, (2) DO NOT ASSUME ANY LEGAL LIABILITY OR RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS OF THE SOFTWARE, (3) DO NOT REPRESENT THAT USE OF THE SOFTWARE WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS, (4) DO NOT WARRANT THAT THE SOFTWARE WILL FUNCTION UNINTERRUPTED, THAT IT IS ERROR-FREE OR THAT ANY ERRORS WILL BE CORRECTED.

  9. Limitation of liability
  10. IN NO EVENT WILL LICENSEE, SAUTINSOFT OR ITS LICENSORS BE LIABLE FOR ANY INDIRECT, INCIDENTAL, CONSEQUENTIAL, SPECIAL OR PUNITIVE DAMAGES OF ANY KIND OR NATURE, INCLUDING BUT NOT LIMITED TO LOSS OF PROFITS OR LOSS OF DATA, FOR ANY REASON WHATSOEVER, WHETHER SUCH LIABILITY IS ASSERTED ON THE BASIS OF CONTRACT, TORT (INCLUDING NEGLIGENCE OR STRICT LIABILITY), OR OTHERWISE, EVEN IF SAUTINSOFT HAS BEEN WARNED OF THE POSSIBILIITY OF SUCH LOSS OR DAMAGES. IN NO EVENT SHALL SAUTINSOFT 'S LIABILITY FOR DAMAGES ARISING FROM OR IN CONNECTION WITH THIS AGREEMENT EXCEED THE AMOUNT PAID BY YOU FOR THE SOFTWARE.

  11. Term and termination
  12. The license granted to the Licensee under this Agreement will continue perpetually unless terminated by SautinSoft in accordance with this Agreement. If the Licensee breaches any term of this Agreement, and fails to cure such breach within thirty (30) days of the date of written notice, this Agreement shall immediately terminate. Upon such termination, the Licensee shall immediately cease using the Software, return to SautinSoft, or destroy, all copies of the Software, and provide SautinSoft with written certification of your compliance with the foregoing. Termination shall not relieve the Licensee from its obligations arising prior to such termination. Notwithstanding any provision of this Agreement to the contrary, Sections 2 through 10 shall survive termination of this Agreement.

  13. Export controls
  14. The Licensee shall observe all applicable laws and regulations (if any) with respect to the export, re-export, diversion or transfer of the Software, related technical data and direct products thereof, including, without limitation, the International Traffic in Arms Regulations (ITAR) and the Export Administration Regulations.

  15. Applicable law - jurisdiction

This license contract is governed exclusively by the laws of the State of New York.

Software Delivery
You will get the full version of component and your registration data by email automatically immediately after purchase. If you have any questions let us know at sales department sales@sautinsoft.com.
Secure Information
SautinSoft has partnered with Avangate!-(www.avangate.com) to provide secure online purchasing and download service for our products. Consumers can be sure that their personal and financial information stays private and protected. All transactions are made in a secure environment.
Methods of Payment:

avangate payment

100% Unconditional Money-Back Guarantee!
SautinSoft products embody the highest quality and performance standards to ensure complete customer satisfaction. We are so confident in our products that we will provide a total refund within the first 60 days of purchase if you find that our product does not meet your expectations in any way.

 

Choose desired license(s) for Excel to PDF .Net:

Excel to PDF .Net Price through Avangate.com
1 Developer $239(US) order
1 Developer and 1 Servers License $339(US) order
1 Developers and Unlimited Servers License $1239(US) order
Additional Server License (*Requires Developer License) $100(US) order
Site and Unlimited Servers License $2500(US) order

 

You will get the full version of component and your registration data by email automatically in a few minutes after order processing. If you have any questions let us know at sales department sales@sautinsoft.com.