473,396 Members | 1,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How can I convert a PDF file to HTML, Word, Excel and Image file ?

I am using C# 2.0 and developing an application to convert a PDF file into HTML, Word, Excel and Image (GIF,JPEG,PNG,TIFF). Is there any free library / class available for that?
Jun 4 '10 #1
1 2210
JaneT
1
Hi!
You can use "PDF Focus .Net" for this. Library allows to convert PDF to images and PDF to RTF. RTF you can open then easely in MS Word!
But the library not supports PDF to HTML convering. PDF Focus full version is not for free, but you can use trial version without restrictions by pages also with trial text.

Sample code for you:
Convert PDF to Image (GIF,JPEG,PNG,TIFF) in C#:

Expand|Select|Wrap|Line Numbers
  1.             SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
  2.  
  3.             f.OpenPdf(@"d:\Fairy tale.pdf");
  4.  
  5.             if (f.PageCount > 0)
  6.             {
  7.                 //Save 1st page to gif files, 120 dpi
  8.                 //Set desired image format: GIF,JPEG,PNG,TIFF
  9.                 f.ImageOptions.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif;
  10.                 f.ImageOptions.Dpi = 120;
  11.                 f.ToImage(@"d:\page1.gif", 1);
  12.             }
Feb 9 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Dave Smithz | last post by:
Hi There, I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. ...
5
by: aiki727 via DotNetMonster.com | last post by:
Hello everyone, Where do I store a bitmap or jpeg that I am using for a forms background image when I deploy the application? Or do I link these files to the app during the deployment? Thanks...
2
by: Yaseen D M | last post by:
I have aspx page which contains some gif, jpg and png images. PNG image is generated dynamically. This file is basically a graph image. The problem i am facing in exporting these images to word,...
11
by: Parrot | last post by:
Is there any routine I can call to reduce the size of an image file after uploading a file from a client. I am looking to reduce file sizes programmatically using C# in my web page after uploading....
2
by: h112211 | last post by:
Hi, I installed the newest available PIL (1.1.5 for Python 2.4) from their site, but cannot seem to open any files. The following from PIL import Image i =...
0
by: MKH | last post by:
Greetings, OS = Windows 2000 Server SP4 SQL = MS SQL 2000 Server SP4 Language = T-SQL I have an excel file stored in a data base table as an image data type. I would like to somehow...
0
by: kailashrathi | last post by:
Please tell me the Coding for the form ACTION "" and other realted coding for : I have made a form (actually a survey) in html. I NEED: when the users submit their results (RADIO BUTTON) the...
12
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
Other than installing PIL, is there a "simple" way using Python only to determine if a file is a valid image file? I'd be happy if I could at least identify valid images files for gif, jpeg and...
0
by: chithrausha | last post by:
Iam having an HTML file where in iam writing some text and it has some background image embedded in it.i want to convert that html file to image file and want to export it in pdf format.(without...
3
by: Cylix | last post by:
I find all the convertor components are thro printer drive. And all components return directly as a file/array bytes/stream are real time pdf generation. is there any direct output convertor in...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.