PHF: Portable Hypertext Format
Save an entire webpage in a single file like a PDF, only HTML
Many people know that in Opera, Mozilla/Firefox, Safari and Konqueror browsers, images can be embedded into your HTML pages and stylesheets using the
External content will be encoded in
data: URIs and substituted for the original URIs.
The result is an HTML document which is completely self-contained; all styling, scripting and image data is included in a single file, like a PDF.
The only problem is, it won't work in MSIE; you must load the completed file in a newer browser.
I call this resulting document a PHF because you can save it, move it and email it, just like a PDF. There are no folders or linked files necessary; the HTML page you download should appear completely like the original. Try it for yourself using the form above.
This tool essentially downloads all the files associated with the supplied webpage URI. It costs me bandwidth to grab it, CPU time to process it, and more bandwidth to serve it. If you have your own webspace with PHP 4.3.0+, you can do me a favour and host your own copy using the source code!
- I am developing this script right here, using the very file referenced by the form, so this service may be unavailable from time to time.
- This copy of the script has been set so any single file retrieved can have a maximum size of 200kB (the total returned PHF may be larger than this). Any files larger than this will be ignored.
- Please report bugs using my contact form.
Version 0.3.2 (beta)
Opera users can also use this button which allows them to send the URI of the page they are currently viewing directly to this tool. Just remember that this script will only work on pages which this script can access; eg. pages from your local computer/network or pages behind SSL or HTTP-Authentication will not work.
Also, Opera Community user profiT has created a UserScript version of this tool which doesn't require a remote server! View the forum thread for more info and to get the tools you need to add the function to your Opera browser.