Menu Close

File Extension Aliases in 2PDF

If you have files in a supported format but with a non-standard file extension, 2PDF won't process these files by default. However, you can still convert them by using the File Extension Aliases tab to associate your files with an existing supported format.

This feature is accessible via the File Extension Aliases tab in 2PDF Settings, which can be opened using the command 2pdf.exe -ini.

2PDF FIle extension aliases

The File extension aliases feature in 2PDF is designed to handle files with unconventional extensions that match supported formats internally. By default, 2PDF recognizes a wide range of file types, but if your files use custom extensions (e.g., generated by specific software), you can map them to 2PDF's supported formats

Example

Files with extensions such as BAT, CMD, C, CPP, H, JAVA, JS, PHP, PS1, PS1M, PY, VB, VBS are already associated with the TXT format by default.

Suppose your system produces files named "Report.abc" but these files are actually PDF-based. You would:

  1. Open 2PDF’s Settings → File Extension Aliases
  2. Find the PDF format line
  3. Add abc (without any other symbols) in the alias field next to PDF
  4. Afterwards, 2PDF will process Report.abc just like Report.pdf

How to associate files with non-standard extensions

To associate files with non-standard extensions with supported formats:

  1. Identify your file extension. For example, if you have files like "Document.invoice", copy the "invoice" extension.
  2. Open 2PDF Settings using the command: 2pdf.exe -ini
  3. Switch to the File Extension Aliases tab.
  4. In the dropdown list next to the selected format, type the file extension (if multiple, each on a separate line) and click OK.

After setting an alias, test with a sample file using a simple command like 2PDF.exe -src "C:\Files\file.invoice" -dst "C:\Output.pdf" to verify recognition.

If your files still aren't recognized, double-check the extension (they may be case-sensitive) or contact support for configuration assistance.