Hacker News new | past | comments | ask | show | jobs | submit login
CreatePDF.in: My two hour website to pdf project (createpdf.in)
32 points by gscott on July 24, 2010 | hide | past | favorite | 24 comments



Uses latest start of the art technologies. ASP Classic, HTML with Tables. No abuse control at the moment (although I have set a CPU and bandwidth limit in IIS).

Has simple api where you can generate a PDF of a page. I have a client who needs this and I have been shoving it off to my own server but now I can just use this instead as a more generic solution. Supports saving the PDF in landscape.


It doesn't even work with style sheets. Can you specify what it works with?


I believe "start of the art" is a pun, since he's using lame tech.


It was late I meant state of the art, teach to to write anything after midnight.


Oh, OK that makes sense. Never heard of that before:)


Turned out I had javascript, flash and some other things turned off. It uses Abcpdf component to create the pdf, I just found that a bunch of options are turned off by default.


It worked pretty well with http://nytimes.com just now.


how do you take the screenshot of the website? can this be used to make png / jpeg to get a thumbnails of websites?

Also finally how do you create pdf, is it some pdf printer?


Which library is used to render the PDF file?



I think webkit would be a better renderer.


I doubt why you need "HTML Tidy for Linux"

:)


Something the w3c validator now offers, never noticed it before so I tried it out, my html is best just w3c never agrees with me.


I have created a bookmarklet. Try it here:

http://blog.arpitnext.com/tools/creat-pdf-bookmarklet.html


I generally "print to pdf" if I want a pdf of a page, or use the firefox screengrab plugin to make png images of full page-length (super-awesome!):

https://addons.mozilla.org/en-US/firefox/addon/1146/


Doesn't work with JavaScript.

Search Google for "browser testing" for some screenshot services that do.


Tried homevalueprotect.com Got back:

ABCpdf6.Doc.1 error '80004005'

Unable to render HTML. Unable to load page.

/index.asp, line 135


How does this compare with htmldoc?

http://www.htmldoc.org/


Doesn't look anything like how a browser renders it. I'll just use a PDF print driver.


Not bad, needs more margins at the top and the bottom but otherwise looks quite good.


I'd prefer a tool that did the exact opposite (without flash).



I got a blank pdf for www.engageinteractive.co.uk


Nice work. Doesn't work well with AJAX though.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: