Using DataIO objects you can create DWF files from an Apprentice Server if the document is an .idw. (.ipt or .iam to DWF is not supported using Apprentice) A .dwf file can be created from an .ipt or .iam using the SaveAs method in the Inventor API. Here are VB.NET and VBA examples that open an .idw file and create a .dwf.
This VB.NET example is from a button on a form in a standalone exe.
Private Sub writeDWF()
Try
Dim oAApp As ApprenticeServerComponent =
New ApprenticeServerComponent()
Dim oDoc As ApprenticeServerDrawingDocument =
oAApp.Open("C:\test.idw")
Dim oSheet As Sheet =
oDoc.Sheets(1)
Dim oDataIO As DataIO = oSheet.DataIO
' Create the DWF file.
oDataIO.WriteDataToFile("DWF", "c:\temp\test.dwf")
Catch ex As SystemException
System.Windows.Forms.MessageBox.Show(ex.ToString())
End Try
End Sub