Issue

Having to generate files of a different type (PDF, DWF, DXF, DWG, STEP, JPEG, BMP, GIF, TIFF or PNG). 


Solution

This can be achieved by typing the following into the Export-Document Commandlet, e.g. for DWG file:

$extension = ".dwg"
$tempfile = "C:\Temp\" + ([System.IO.Path]::GetFileNameWithoutExtension($file.name)) + $extension
Save-FileAs $file $tempfile


  • Define the desired file-type
  • convert your file to the desired type by using the right extension in the Save-FileAs cmdlet


Example for a DWG File

Execute the job as usual




Finally get the file of the right type:


See Also

File conversion (coolOrange Wiki)