Project Freewheel: Losing Control!
Project Freewheel is a project that was recently launched via Autodesk Labs. It's a technology preview that allows you to share DWF files without the need for installing a client application that includes an ActiveX control for DWF display (such as the DWF Viewer or Design Review).
There are three main features of Project Freewheel that are of interest to developers. Let's take a look at them below.
Embedding a navigable DWF
It's now really simple to embed a DWF file in your web page without forcing a download of the DWF Viewer application. As long as your DWF file is accessible somewhere on the Internet, you can use Project Freewheel's Interactive Software Viewer to allow navigation of your DWF without a component install. Very cool and very easy.
Once your DWF is in a publicly accessible location, you simply use a frame or inline frame tag in your HTML to embed the results of a URL passing the required parameters (in this case we're just passing the location of the DWF):
<iframe src="http://dwfit.com/dwf.aspx?dwf=http://dwfit.com/sample/psp.dwf" width="400" height="300" scrolling="no" frameborder="0" />
Embedding a static image of a DWF
If you merely want a static image, that's easy too. You can use the Rendering Service to serve up a rendered view of a particular sheet from a DWF file. This time we're going to pass in a few more parameters regarding the size of the image and the view target/scale:
<iframe src="http://dwfit.com/dwfImage.aspx?cx=0.5&cy=0.5&scale=1&page=3&width=370&height=270& path=http://dwfit.com/sample/psp.dwf" width="400" height="300" scrolling="no" frameborder="0" />
Getting some data regarding a DWF
The last item of interest to developers is the DWFRender Web Service that allows you to query non-graphical information about a particular DWF file. If you're new to web services, I recommend this primer (although it's now slightly dated).
Most interestingly you can use the service to query the number of pages contained in a particular DWF and various information on those pages (name, paper-size, units).
For more detailed information on how to use Project Freewheel as a developer, please check this page.