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

PDF Metamorphosis .Net -
Transformation HTML to PDF, RTF to PDF with managed C#, VB .NET

Download     Buy now

PDF Metamorphosis .Net is a component to convert Text, RTF, XHTML and HTML to PDF with tables, images, fonts, colors and text formatting completely. Our tool is absolutely independent C# assembly, it doesn't require any additional components. Our component reads HTML and RTF documents directly converts it to PDF without Adobe Acrobat® or MS Office®.

We don't use any other dlls or dependencies. We know HTML, PDF and RTF formats and we know C#. Therefore, our component is fully independent and can be used in Meduim Trust Level. It could open the HTML or XHTML file with CSS, or even download it from Internet. Read the contents of HTML, understand all the tags and transform it to PDF format

Typical applications

  1. Conversion of HTML, RTF, Text documents to PDF for printing or exchanging
  2. Convert ASPX page to PDF dynamically on server side
  3. Merge or split PDF files
  4. Server side, batch document conversion without user interaction

Advanced Features

The PDF Metamorphosis .Net is just a class library

To deploy it you will need only two lines of code. By the instrumentality of PDF Metamorphosis .Net you will add these functions into your application:

  • Convert HTML url, file, string to PDF
  • Convert Text and RTF file, string to PDF
  • Split and merge PDF documents.

from Micrisoft Word, HTML to PDF files

Platform Independence

The PDF Metamorphosis .Net requires only .Net 1.1 platform or above. Using the PDF Metamorphosis .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).

The PDF Metamorphosis .Net is completely created on C#.

Requirements

Nothing special, only .Net 1.1 platform or higher.

Supported File Formats

The PDF Metamorphosisis .Net can convert HTML, XHTML, RTF and Text documents into PDF documents.

Input formats:

- any version of HTML, like a HTML 3.2, HTML 4.01 with CSS and XHTML.

Our component doesn't require any special version of HTML format it will work with any version. Component also support CSS styles, these styles are supported now.

font-family:
color:
font-weight:
font-size:
text-align:
font-style:
background-color:
font:
top:
left:
height:
border-top-style:
border-right-style:
border-bottom-style:
border-left-style:
border-top-width:
border-right-width:
border-bottom-width:
border-left-width:
border-top-color:
border-right-color:
border-bottom-color:
border-left-color:
border:
border-top:
border-right:
border-bottom:
border-left:
border-style:
width:
text-decoration:
vertical-align:
page-break-before:
page-break-aftrer:
list-style-type:
margin-bottom:
margin-top:
margin-left:
margin-right:
text-indent:

- any version of RTF files and text files.

Output format: PDF 1.4. It's absolutely compatible with any PDF readers, like a Actobat Readear etc.

The PDF Metamorphosis .Net can convert XHTML, HTML and RTF to PDF documents with such advantages:

  • converting of remote HTML documents
  • converts images (.gif, .jpg, .bmp and .png)
  • converts remote http:// images
  • tables
  • nested tables
  • CSS styles
  • hyperlinks
  • font face, color, size
  • page alignment
  • bold, italic and underline, strike and other rich formatted text
  • special characters
  • automatic encoding select (UTF-8, Windows-1251, etc..)
  • select page size (A4, B5, Letter...)
  • select page orientation (Landscape or Portrait)
  • select page margins
  • Supports all HTML tags and special characters

Technical Features

  • Created with only pure C#
  • Absolutely standalone, you will need to include only "PdfMetamorphosis.dll" into your application
  • No other dependencies
  • Reads RTF, HTML files and writes PDF directly
  • Does not require installed Microsoft Office ® or Adobe Acrobat ® on the computer
  • Works on any .Net platform (.Net 1.1, 2.0, 3.0, 3.5 etc)
  • Works with Windows and even with Linux and Mac (thanks to Mono project
  • http://www.mono-project.com)
  • Has great abilities to adjust an output PDF, see Methods and properties
  • Works in Medium Trust level and shared hosting

Developers can use the PDF Metamorphosis.Net with VB.NET, C#, J#, ASP.NET, Delphi.Net etc.

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 html to pdf

  5. Add reference to PdfMetamorphosis.dll
    (for .Net 1.1 it located in: "Net 1.1\PdfMetamorphosis.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/PdfMetamorphosis.dll")
  6. Well done! Now your project able to convert Text, HTML and RTF to PDF format, and split/merge PDF documents!

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

Convert HTML file to PDF file using SautinSoft.PdfMetamorphosis.HtmlToPdfConvertFile method
Convert RTF file to PDF file using SautinSoft.PdfMetamorphosis.RtfToPdfConvertFile method

Version History

5.5.7 30-Jul-2012

We are glad to inform about releasing the new PDF Metamorphosis .Net 5.5.6.8. Detailed news:

  • Added the new feature PdfVersion , allows set version for the produced PDF document
  • Added a lot of new Code Samples to show the PDF Metamorphosis .Net features
  • Completely reformed the Demo application with command line support
  • Completely reformed the documentation
  • Fixed the issue when the Adobe Reader X showed a message "Save PDF before closing".
  • Fixed the issue with processing page numbers from RTF to PDF like a "Page 1 of N"
  • Fixed the issue with line spacing
  • Fixed the issue with duplicating Unicode symbols in some files
  • Fixed minor issues

5.3.4.18 - April 18th, 2011.

We are happy to anounce about releases of new version PDF Metamorphosis .Net 5.3! What's new:

Added the new properties SautinSoft.PdfMetamorphosis.HeaderOnFirstPage and SautinSoft.PdfMetamorphosis.FooterOnFirstPage which allows to specify header/footer only at fist page in produced PDF. For example, you want to set different common and first-page headers:

convert html to pdf

HTML to PDF:

Added support of new CSS element 'display:'
Added support of new CSS elements: 'font:' and 'font-variant:'

word, html to pdf convert

RTF to PDF:

Fixed issue with font changing after keyword '\bullet' for some RTF files Fixed issue with positioning of images specified by x,y coordinates

5.2.12.9 - December 22th, 2010

Improved table's engine for HTML to PDF exporting Fixed issue with compatibility PDF documents and Adobe Reader 6.0 or lower Added support of new CSS 'display:'

5.2.11.22 - November 22th, 2010

We are glad to offer new version of the PDF Metamorphosis .Net with new usefull RTF to PDF features and fixes:

Added support of new table border's types: dashed, dotted and double. Compressed and expanded text in produced PDF

4.1.8.4 - August 4th, 2010

Released the new update of the PDF Metamorphosis .Net. This update contains fixes for some minor bugs which our customers found.

4.1.7.13 - July 13th, 2010

We are happy to inform about releasing new version 4.1.7.13 of the PDF Metamorphosis .Net:

Added new algorithm increase image quiality
Fixed issue in method to merge PDF documents
Fixed issue in multiline underline text
HTML to PDF:

Improved table's algorithm for HTML to PDF converting
Fixed issue in converting of TIF, GIF and PNG to PDF in ASP.Net applications. This bug appeared after adding new algorithm to increase image quiality in PDF. The issue was in that component was returning null during TIF, PNG, GIF to PDF when it worked in Medium Trust Level. In Full Trust level this issue was hiden. RTF to PDF:

Added support of Czech language in PDF

4.0.4.5 - April 5th, 2010

Fixed issue with incorrect page size and orientation in HTML to PDF converting. This bug could appear only for small page size less than A4.

4.0.0 - March 16th, 2010

We've released the new major version 4.0.0 of the PDF Metamorphosis .Net! So what's new:

Added new class Watermark which allows to:
Put watermarks to any page , array of pages or odd/even pages of produced PDF document
Set different transparency for various watermarks
Stretch and set position of watermarks
Completely reformed documentation
Added a lot of new code samples for ASP.Net, WinForms C# and VB.Net HTML to PDF:

Added support of image attributes height/width in % percents
Added support of some new CSS styles:
border-color:
border-width:
background-color:
RTF to PDF:

Added support of new RTF keywords

3.0.5.608 - February 16th, 2010

RTF to PDF:

Fixed issue with incorrect alignment by right in nested tables Fixed issue in length of stream objects when used the property 'PageNumFormat' HTML to PDF:

Added support of new CSS style 'background:'

3.0.5.508 - February 5th, 2010

HTML to PDF:

Added support of new CSS styles 'border-color:' and ' border-width'

3.0.5.320 - January 21th, 2010

RTF to PDF:

Fixed issue with crashing dll on some nonstandard RTF where table shifts by several pages
Fixed issue with moving text aligned by right and center outside of table column Improved converting of tabulators HTML to PDF:

Improved algorithm of converting tables with missied width value
Added support of new CSS
Merge PDF:

Added two methods to merge PDF documents in memory
Added a new sample code C#/VB.Net how to merge PDF in memory in ASP.Net application

3.0.5.128 - September 16th, 2009

RTF to PDF:

Fixed issue with crashing dll on some RTF with non-standard fonts (Thanks to Ilia Chekhter)
Adding support of strike text
HTML to PDF:

Changed name of the property 'ImageFolder' to 'BaseUrl' Fixed return value in method HtmlToPdfConvertFile() now returns 1 if HTML doesn't exist.

3.0.5.0 - August 11th, 2009

This version differs from the previous 3.0.4.6. on a huge step. What we've made:

HTML to PDF converting:
Added support of new CSS styles:
border-top-style:
border-right-style:
border-bottom-style:
border-left-style:
border-top-width:
border-right-width:
border-bottom-width:
border-left-width:
border-top-color:
border-right-color:
border-bottom-color:
border-left-color:
border:
border-top:
border-right:
border-bottom:
border-left:
border-style:
Improved algorithm of HTML table converting

Fixed minor issues in converting of broken HTML tables;
Added the new property 'TraceType' which allows to select type of tracing file. A tracing file is necessary to debug component and helps to find some issues in HTML converting.

RTF to PDF converting:
Fixed issue with converting of nested tables which expand on several pages
Fixed issue with loosing image quality in RTF for jpeg images
Fixed issue with padding in table cells

Significantly improved two properties 'Header' and 'Footer', now you may specify any header/footer in HTML, RTF and Text format. For example, you may attach a HTML document into footer from URL.

Added new samples of using PDF Metamorphosis .Net in ASP.Net, VB and C#
Fixed issue with Text to PDF converting
Improved the Demo application
Improved this documentation.

3.0.4.6 - March 26th, 2009

- Added the new property 'p.TextStyle.ImageQuality' which allows to specify quality for images inside PDF;
- Improved image converting algorithm;
- Fixed issues in the method merge PDF documents;
- Fixed issue in converting nested tables.

3.0.0.4 (10-November-2008)

- Added new properties FontFace.Auto() and FontFace.Custom(). Now component can create PDF file with any font installed in your system; - Improved converting of bullets and numbering lists; - Improved HTML to PDF converting; - Improved table converting engine.

2.2.2 (17-March-2007)

- Improved converting of headers/footers;
- Fixed issues with text formatting inside tables (bold, italic, underline etc).

2.2.1 (12-December-2007)

What's new in this release:

- now it supports text groups and postioned text;
- improved module for image converting;
- table's background for HTML to PDF conversion;
- images after converting now have the best quality!

2.2.0 (19-November-2007)

- PDF Metamorphosis .Net became faster in converting;
- New algorithm of converting tables;

2.1.1 (23-August-2007)

- New property ‘ErrorTrace’ that helps to find detailed information about issues;

2.1.0 (9-August-2007)

Added: - New independent conversion engine from HTML to PDF;
- New methods for split and merge PDF files.

2.0.5 (09-Jul-2007)

Fixed:
- alignment in nested tables.

2.0.0 (01-May-2007)

- nested tables support;
- footer and header;

1.1 (10-Apr-2007)

- Added support of header, footers and page sections;
- Corrected Text to Pdf converting direction;
- Text formating and alignment improved;
- Added new default fonts: italic, bold, italic-bold;
- Improved algorithm of cell merging;
- Cell padding support;
- Transfer lengthy cells to new page;
- Backgroud and shading for tables.

License

PDF Metamorphosis .Net

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. PDF Metamorphosis .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.

PDF Metamorphosis .Net Price through
Avangate.com
1 Developer License  $439(US) order
1 Developer and 1 Server License $539(US) order
1 Developer and Unlimited Servers License $1439(US) order
Additional Server License $100(US) order
Site and Unlimited Servers License $2300(US) order
Site and Unlimited Servers License with Source Code $7300(US) order
Price includes getting of standard technical support via email, phone, free updates for a full version cycle.