[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 427
  • Last Modified:

HTML to PDF

Hi Folks,

I have a bunch of html pages, like 500 or so. Instead of opening html file and selecting File > Print and then save.

How do I automate, either on the mac side or the PC side.

I have Cute PDF writer and Acrobat.

I would need some code samples on how to do it.

Thanks

RG
0
rgarimella
Asked:
rgarimella
  • 4
  • 2
  • 2
  • +2
1 Solution
 
micropc1Commented:
Try OmniFormat...  http://www.omniformat.com/

I've used it and it works great.
0
 
rgarimellaAuthor Commented:
Do you know how to convert multiple HTML pages in a Folder using omniformat?
0
 
micropc1Commented:
In Omniformat you set up a "watch" folder. Then you drag your files to the watch folder and it converts them automatically. I've used it to convert several thousand DOC files to PDF and it worked great. According to their website it also supports HTML.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
DrMadAxeCommented:
Omniformat is the way to go. Let us know if you have any problems using it. I concur with the others.
0
 
rgarimellaAuthor Commented:
Unfortunately Omniformat is not working for me. My html pages have lot of DHTML code and the formatting is kinda lost. Are there any other solutions?
0
 
rgarimellaAuthor Commented:
Unfortunately this also does not work.. The site that I am converting uses lots of CSS

From the website:
This means any HTML using external or inline CSS for design and layout, including but not limited to: images, backgrounds, colours, fonts etc... will not be converted into the PDF.
0
 
DrMadAxeCommented:
What about simply taking a screen shot of the page itself and then importing it into photoshop or download openoffice.org ( for free ) and use the "export to PDF" function

I understand that may take some time but since you have a more complex situation it may be what is necessary.

Hope this helps.
0
 
rgarimellaAuthor Commented:
That is what I have, screenshots, not the optimal solution
0
 
clockwatcherCommented:
xhtml2pdf (http://www.xhtml2pdf.com/) supports a decent subset of CSS but I doubt it'll have much luck with DHTML.

You might want to take a look at wkhtmltopdf (http://code.google.com/p/wkhtmltopdf/) which uses the webkit engine (QT, Safari) to render the html.  I haven't used it, as xhtml2pdf worked for my needs, but it may work for you.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now