How can I batch convert Tedds document (.ted) files to PDF files?
Answer
A separate application is included in Tedds which will convert multiple Tedds document files in the .TED format to .PDF files. The TedToPdf application can be used to convert a single file, multiple files in a single directory or all files in a directory hierarchy. For each file which is converted the PDF version will be stored in the same directory and with the same file name. If a previous version of the PDF file already exists you will be prompted to confirm that the existing file should be overwritten
To convert a single file
- Open Windows Explorer and browse to the Tedds installation directory which is typically located at C:\Program Files (x86)\Tekla\Structural\Tedds.
- Launch the application TedToPdf.exe (see the System Requirements section below if the application does not open)
- Enter the full path of a file you want to convert
To convert multiple files
- Open Windows Explorer and browse to the Tedds installation directory which is typically located at C:\Program Files (x86)\Tekla\Structural\Tedds.
- Launch the application TedToPdf.exe (see the System Requirements section below if the application does not open)
- Enter the path of a directory which contains the Tedds document files you want to convert
Command Line Arguments
TEDTOPDF [drive:][path][filename] [/R] [/O]
| [drive:][path][filename] | Specifies drive, directory, and/or files to convert |
| /R | If path is a directory then recursively convert all files in child directories |
| /O | Overwrite existing files |
This application is also provided as an example for using the Tedds Application API, the C# source code for the TeddsToPdf application is available at GitHub.
System Requirements
The TedToPdf.exe application requires Microsoft .Net Core v3.1 or later to be installed. If when attempting to run the application, the application Window just flashes briefly, or you see an error “A fatal error occurred. The required library hostfxr.dll could not be found” is reported, then install .Net Core v3.1 or later.
This feature was introduced in Tedds 2020 Service Pack 1 in May 2020