473,382 Members | 1,365 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,382 software developers and data experts.

HTML to PDF using .net code or 3rd party component

Hi,

I need to convert HTML (online or offline) to PDF in C# application. In
addition I want to merge PDF documents also on the fly. I am looking
for C# / VB.NET code or a .NET component which can be referenced in my
project and accomplish the required tasks.

I have browsed but didn't find a suitable code or component to
accomplish the above task. I will really appreciate any help or pointer
in this.

Thanks
Dinesh

May 15 '06 #1
2 1728
We recently did some research into this and found that there are only a
couple of ways to do it without dropping a ton of cash for an on-the-fly
converter:

1) Upload the file into a folder which a component has a "watch" on. When
the file is put there, component sees it and does a "print" to a PDF
conversion "printer" that puts it into a predefined directory
2) Send the "print" command to the "PDF printer" and allow it to place the
PDF where you have it configured

The problem we found with these is that you don't know when the PDF creation
is finished, and there's no way to definitively tell there was an error. Some
printers output error.pdf if it encounters one, but in a multi-user
environment, you don't known if that was your doc or somebody elses.

The solution we found that gave you an API to the PDF interface was over
$1700 and made by ActivePDF. if you have that kind of cash theirs looked like
the most comprehensive. or at least check out the options I outlined above,
also available from them.

There are very cost-effective ways to create a PDF on the fly, but none that
are easy for conversion purposes. I think ActivePDF has a creator that's only
like $30. So if you can take the content of your page and manually write that
to a PDF, you'll have it made pretty cheaply using any of the wide array of
creators that are out there.
--
KMG Software, Inc.
Thinking Beyond, Above, and Before
http://www.kmgsoftware.com
"dc*****@gmail.com" wrote:
Hi,

I need to convert HTML (online or offline) to PDF in C# application. In
addition I want to merge PDF documents also on the fly. I am looking
for C# / VB.NET code or a .NET component which can be referenced in my
project and accomplish the required tasks.

I have browsed but didn't find a suitable code or component to
accomplish the above task. I will really appreciate any help or pointer
in this.

Thanks
Dinesh

May 15 '06 #2
Thanks a lot for the prompt reply.

Your methodology looks great. As my application is a desktop
application. Only single user will be using the application, so your
strategy should work fine. I have used cutepdf writer (printer) and I
think it will work here also.

But I am not sure how I am going to save HTML first locally with images
etc. for print. What I require is a pdf conversion of any html page. In
this case I think I have to always first download and save that html
page locally to the desktop and in this process I might loose the
format, images etc. of HTML.

What I was looking for is a way by which I will assign the URL and it
should be converted to pdf.

Do you think that the above can be done ?

Thanks
Dinesh
DeltaX Solutions
http://www.deltaxsolutions.com
Brandon@KMG wrote:
We recently did some research into this and found that there are only a
couple of ways to do it without dropping a ton of cash for an on-the-fly
converter:

1) Upload the file into a folder which a component has a "watch" on. When
the file is put there, component sees it and does a "print" to a PDF
conversion "printer" that puts it into a predefined directory
2) Send the "print" command to the "PDF printer" and allow it to place the
PDF where you have it configured

The problem we found with these is that you don't know when the PDF creation
is finished, and there's no way to definitively tell there was an error. Some
printers output error.pdf if it encounters one, but in a multi-user
environment, you don't known if that was your doc or somebody elses.

The solution we found that gave you an API to the PDF interface was over
$1700 and made by ActivePDF. if you have that kind of cash theirs looked like
the most comprehensive. or at least check out the options I outlined above,
also available from them.

There are very cost-effective ways to create a PDF on the fly, but none that
are easy for conversion purposes. I think ActivePDF has a creator that's only
like $30. So if you can take the content of your page and manually write that
to a PDF, you'll have it made pretty cheaply using any of the wide array of
creators that are out there.
--
KMG Software, Inc.
Thinking Beyond, Above, and Before
http://www.kmgsoftware.com
"dc*****@gmail.com" wrote:
Hi,

I need to convert HTML (online or offline) to PDF in C# application. In
addition I want to merge PDF documents also on the fly. I am looking
for C# / VB.NET code or a .NET component which can be referenced in my
project and accomplish the required tasks.

I have browsed but didn't find a suitable code or component to
accomplish the above task. I will really appreciate any help or pointer
in this.

Thanks
Dinesh


May 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nunya D. Bidness | last post by:
If anyone is interested in testing these components goto http://www.vibrantinnovations.com/vibrantlayouttools.asp The Vibrant Layout Tools ActiveX component is a suite of tools that allow...
1
by: aur56 | last post by:
I am using stringbuilder to create a html email message that is basically a two column table with the field name in one column, and the field value in another, and about 30 rows. I don't get any...
7
by: Rathtap | last post by:
I want to write a C# application (lets call it Generator) that will receive an argument(patient account number) and dynamically generate a series of linked HTML files (claim information, payments,...
27
by: Michael C | last post by:
Anyone know of a good HTML Rendering control? I need a control that will render and display HTML in a Windows form. It doesn't need to pull down HTML pages from the Web - I'll feed it all the...
4
by: Valerian John | last post by:
I am looking for a way to sort of redirect the Page.Response content to a pdf generator component that would create a pdf file on the fly! I wonder if there is such a thing in the .net world. I...
4
by: Hongbo | last post by:
Hi, I'd like to create PDF file with tables in ASP.NET application in C# without using any third party component. I did some search online and only found the following link:...
1
by: Lee Greco | last post by:
I'm looking for some advice on how to proceed. Here's the scenario: I've got to develop a high availability VB.Net web service that basically acts as a middle man between the web service...
17
by: Janiv Ratson | last post by:
Hello, I have written a C# dll in VS2005. One interface and class are exported using Interop Services. I want to use this c# dll in my MFC application, using VS2003. It compiles after I imported...
2
by: Brian Simmons | last post by:
Hi, Long story short: I've got a website built, and we moved it over to the production server, which is an SSL-required (https://...) server. A third party component that I'm using makes use of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.