How can i convert all types of files to pdf format without using any software?
-
Hi,Thanx for you reply..I just want to do it in a very simple manner..Initially i will upload files to database and to a folder in my application.I am just storing the file name with some categories to database.While retrieving i will match the file name from database to that folder and retrieve them.I used iframe to display any type of file. But now i am trying to convert all files to pdf and store in database.I want to do it in a very simple way.I am new to .net programming.So,i am not much familiar with libraries,tools etc etc..
Pheraps this could help you, I'm not sure: PDF Library for creating PDF with tables and text, in C#[^] CodeProject Articles about PDF handling[^]
-
Hi,Thanx for you reply..I just want to do it in a very simple manner..Initially i will upload files to database and to a folder in my application.I am just storing the file name with some categories to database.While retrieving i will match the file name from database to that folder and retrieve them.I used iframe to display any type of file. But now i am trying to convert all files to pdf and store in database.I want to do it in a very simple way.I am new to .net programming.So,i am not much familiar with libraries,tools etc etc..
sunithaganugu wrote:
But now i am trying to convert all files to pdf and store in database.I want to do it in a very simple way.I am new to .net programming.So,i am not much familiar with libraries,tools etc etc..
How "new" are you? If we're talking less than a month's programming experience, it might be a good idea to start with something more straight-forward.
I are Troll :suss:
-
sunithaganugu wrote:
But now i am trying to convert all files to pdf and store in database.I want to do it in a very simple way.I am new to .net programming.So,i am not much familiar with libraries,tools etc etc..
How "new" are you? If we're talking less than a month's programming experience, it might be a good idea to start with something more straight-forward.
I are Troll :suss:
-
I have only one month experience in .net.My task is to convert files.I don't have any idea.I used sautin soft tool to convert files.I got code to convert only that particular aspx design format to pdf page.But i donno how can i convert pages dynamically..
You cannot do this without third party libraries. Since your code will never know the format of every type of file, and therefore cannot understand how to print it to a PDF file itself, you have to rely on the application for every file type. This is also impossible because you cannot have the application for every file type installed nor does every application expose a COM interface for your application to use it. You're going to have to limit your scope to a known subset of file types in order to do this to any degree of success.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
I have only one month experience in .net.My task is to convert files.I don't have any idea.I used sautin soft tool to convert files.I got code to convert only that particular aspx design format to pdf page.But i donno how can i convert pages dynamically..
sunithaganugu wrote:
I have only one month experience in .net.My task is to convert files.I don't have any idea.I used sautin soft tool to convert files.I got code to convert only that particular aspx design format to pdf page.But i donno how can i convert pages dynamically..
So, the conversion is working, albeit on a static page? What kind of files are you going to export?
I are Troll :suss:
-
sunithaganugu wrote:
I have only one month experience in .net.My task is to convert files.I don't have any idea.I used sautin soft tool to convert files.I got code to convert only that particular aspx design format to pdf page.But i donno how can i convert pages dynamically..
So, the conversion is working, albeit on a static page? What kind of files are you going to export?
I are Troll :suss:
Actually my concept is E-Books.So, if i upload any type of file book it should convert to pdf and then store into database.I want to convert msword/txt/html to pdf..
-
Actually my concept is E-Books.So, if i upload any type of file book it should convert to pdf and then store into database.I want to convert msword/txt/html to pdf..
sunithaganugu wrote:
I want to convert msword/txt/html to pdf..
That's not "any file". The good news is that these formats can be exported to PDF, using a third-party library - PDF isn't supported by the native classes. I'd be using SharpPDF, but that's based on the experience of others. I assume that you already have the code to upload a file, storing data etc.?
I are Troll :suss:
-
sunithaganugu wrote:
I want to convert msword/txt/html to pdf..
That's not "any file". The good news is that these formats can be exported to PDF, using a third-party library - PDF isn't supported by the native classes. I'd be using SharpPDF, but that's based on the experience of others. I assume that you already have the code to upload a file, storing data etc.?
I are Troll :suss:
-
Ya,I have code for uploading files to database.I am just storing the file name not the total file to database.I am storing files in a folder on my server.Do you have any idea how to use iTextSharp library or some other third party tools?
-