Phillip Schmidt
Phillip Schmidt

Reputation: 8818

Converting html to some document type (.pdf maybe?)

I have an HTML "printer friendly version" type page that I'd like to convert to a document-style file type so that I don't have to worry about disabling links on the page and stuff. Is there a fairly simple way to create a file like that from the page's html without using third party libraries?

At first glance this is going to probably look like a duplicate of a bunch of other questions, but most of the answers involve using third party software, which isn't an option for me.

Upvotes: 0

Views: 217

Answers (2)

Phillip Schmidt
Phillip Schmidt

Reputation: 8818

I just did it with CSS. Sorry I have to accept this as an answer, but the only answer posted wasn't really what I was looking for..

Upvotes: 0

Peter Ritchie
Peter Ritchie

Reputation: 35869

If you're talking about an asp.net site, you don't have the HTML that is given to the browser; you'll have to do whatever you want to do to generate a PDF and send that back to the browser. You can't let ASP.NET send HTML back to the browser and expect the user to see PDF...

Upvotes: 2

Related Questions