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

PDF Vision .Net -
Transformation PDF to Images (GIF, JPG, BMP, TIFF), ASPX, HTML to PDF

Download   Buy now

PDF Vision .Net enables .Net applications to convert Images (GIF, JPG, BMP, TIFF), ASPX, HTML to PDF

PDF Vision .Net can be used in any type of .NET application, either ASP.NET websites or Windows Forms applications, to produce a PDF hard copy from files, URLs and memory streams.

The output settings are customizable – it is possible to set a custom page size, choose page orientation and add text to header and footer of a PDF document. The library is designed to perform conversion in memory without addressing the hard disk drive.

The component can be used in .Net 1.1, 2.0, 3.0, 3.5, 4.0 in 32 and 64

The PDF Vision .Net is completely written on managed C#, it represents only the file "PdfVision.dll" and doesn't require anything else.

The component can convert images (JPEG, GIF, TIFF, BMP, PNG etc) to PDF and HTML to PDF.

Minimal requirements

.Net 1.1 platform or higher for converting images to PDF

.Net 2.0 platform or higher for converting HTML to PDF

What PDF Vision .Net can do:

  • Allows you to convert images to PDF using eight different converting methods, working with files, byte arrays, directories etc.
  • Allows to convert multiple images into single PDF
  • Convert HTML and URL to PDF using two converting methods
  • Specify page size, orientation and margins for produced PDF
  • Specify page header and footer
  • Set quality and size of output PDF document
  • Change scale and width/height of images in PDF, make all images by the same size

Easy in integration into any .Net application

It's very easy even for novice! The PDF Vision .Net represents only a file "PDFVision.dll", simply copy it into your 'Bin' directory and place these code into your application:

convert html to pdf

Advanced Features

Advantages of PDF Vision .Net

We can guarantee 100% quaility of HTML to PDF conversion
We can guarantee 100% quality of TIFF, JPG, PNG or any image to PDF
PDF Vision .Net is absolutely standalone and independent C# component. It doesn't require anything else.
PDF Vision .Net has royalty free distribution
Our HTML to PDF / Images to PDF component has reasonable price

Component's features

  • Converting of HTML to PDF with CSS styles, an output PDF looks the same as HTML in your browser
  • Converts broken HTML documents to PDF
  • Works with HTML 3.2, 4.01, XHTML, ASPX, any version of HTML document
  • Works with files, URL and memory streams
  • Allows to specify page size and page orientation of output PDF
  • Allows to add text in header/footer of PDF document
  • Technical Details

    The PDF Vision .Net is completelly written in C#. Requires only .Net 2.0 or higher platform. The component can be used in ASP.Net server-side and desktop WinForms applications. Component works under Windows XP/2003/Vista.

    We deliver the component with:

  • Assembly file "PDFVision.dll" - engine to convert image to PDF, HTML to PDF
  • WinForms sample projects in C# and Visual Basic
  • ASP.Net sample projects in C# and Visual Basic
  • Documentation file
  • License file
  • Sample files in HTML, JPG, PNG, GIF formats
  • Requirements and compatibility

  • .Net platform (1.1 or higher), because it's 100% managed C# library
  • Works even in Full Trust level
  • 32-bit and 64-bit compatible
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 images html to pdf

  5. Add reference to PDFVision.dll
    (for .Net 1.1 it located in: "Net 1.1\PdfVision.dll")
    (for .Net 2.0, 3.0, 3.5 and 4.0 it located in: "Net 2.0, 3.0 and 3.5\PdfVision.dll")
  6. Well done! Now your project able to convert Images and HTML to PDF!
Version History

3.6.5.12 - May 12th, 2011

We are happy inform about releasing new version of the PDF Vision .Net! What's new in this release:

  • Significantly improved the engine of converting black-and-white images TIFF to PDF. The produced PDF results now have a weight in 7-9 times less compare with previous versions. The whole converting process now works faster in 3-4 times.
  • See a comparasion table
    Source file PDF result by the new version 3.6 PDF result by the older version 3.5
    multipage-TIFF image, size 1.9 Mb, 5100 x 6000 px, 15 pages PDF, size 1.8 Mb, 15 pages PDF, size 9.5 Mb, 15 pages
    multipage-TIFF image, size 1.4 Mb, 1700 x 2400 px, 7 pages PDF, size 0.3 Mb, 7 pages PDF, size 1.2 Mb, 7 pages
  • Added new properties SautinSoft.PdfVision.CImageStyle.Width and SautinSoft.PdfVision.CImageStyle.Height which allows to set custom width and height for images in mm, inches and pixels.
  • Improved the demo application
  • Fixed some minor issues
  • 3.5.10.21 - October 21th, 2010

  • Names for converting methods and properties became easy and clear
  • Added a lot of new code samples
  • Improved demo application
  • Fixed issue with converting of multipage TIFF to PDF
  • Added new property SautinSoft.PdfVision.CImageStyle.Quality
  • Added new property SautinSoft.PdfVision.CImageStyle.FitImageToPageSize
  • 3.1.7.5 - July 5th, 2010

  • 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.
  • 3.1.6.4 - June 4th, 2010

  • Added new properties SautinSoft.PdfVision.Header and SautinSoft.PdfVision.Footer which allows to specify page header and footer in HTML and Image formats
  • Added new property SautinSoft.PdfVision.PageNumbers to specify page numbers. Now it's easy to specify page numbers in top or bottom of page, set number format "Page 1 of N" , set font face, size, color and alignment.
  • Significantly improved quality of produced PDF. Now it doesn't look fuzzy.
  • Reformed and improved Help Manual.
  • 2.2.1 - February 3rd, 2010

  • Added new property 'HtmlWidth' for HTML to PDF converting
  • 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
  • 2.1.1.2 - January 29th, 2010

  • New quality of HTML to PDF engine
  • Fixed issue in Landscape page orientation
  • June 23th, 2009

  • New method to split PDF document, which allows to split complete document by pages;
  • New method to merge PDF files into one single document.
  • April 9th, 2009 - Released version 2.0.

    We've added the HTML to PDF direction into PDF Vision .Net. We've revised all interface of component, added new methods for image converting. The component have got new demo program with friendly interface.

    April 7th, 2008 - version 1.2 released.

  • Added support of converting multipage TIFF to PDF.
  • August 20th, 2007 - version 1.1 released.

  • Fixed some minor issues.
  • May 11th, 2007 - version 1.0 released.

  • PDF Vision .Net is a .Net component to convert images: GIF, JPEG, WMF, BMP, TIFF, PNG to PDF.
License

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