DW2WIN is configured through a parameter document stored in DocuWare (the IEF archive). Each configuration group (DW2WIN.<id>) holds the settings below. Use DW2WIN init --group=... to create or update parameters.
Global parameters
| Parameter | Description | Required | Multi |
|---|
exportInterval | Interval in minutes between transfer runs when running as a service. | No | No |
When running as a Windows service, exportInterval must be greater than 0. A value of 0 performs a single export and exits, which is only suitable for scheduled-task or on-demand execution.
Group parameters
| Parameter | Description | Required | Multi |
|---|
archive | DocuWare file cabinet name to export from. | Yes | No |
mandant | Mandant (tenant) identifier. Inserted between the basis folder and the file transfer mappings. | No | No |
exportBasisFolder | Base folder path for exported files. | No | No |
fileTransferMappings | Target folder mappings for file transfer. | No | Yes |
exportFilterFileTransfer | Filter expression for selecting documents to export. | No | Yes |
statusUpdate | DocuWare index field to update after export. | No | No |
statusUpdateForExport | Status values that mark documents as ready for export. | No | Yes |
stamp | Stamp name to apply to exported documents. | No | No |
layers | Annotation layers to include in the export. | No | No |
firstSectionOnly | Export only the first section of each document. | No | No |
keepAnnotations | Export documents as PDF with stamps and annotations. E-invoices identified by eInvoiceField keep their original file unless forcePDF is enabled. | No | No |
defaultFileType | File format used when keepAnnotations is off (PDF, Auto, or zip). Defaults to PDF, or Auto for the legacy IEF2WIN group. | No | No |
eInvoiceField | DocuWare index field that marks ZUGFeRD / Factur-X e-invoices. A document is treated as an e-invoice when this field is set to anything other than empty. | No | No |
forcePDF | Also convert e-invoices to PDF when keepAnnotations is on. Annotations are kept; the embedded XML is removed. | No | No |
Multi-value parameters can have multiple rows in the parameter table for the same group. The group name convention is DW2WIN.<id> (for example DW2WIN.MyCompany). Legacy groups DW2WIN, DW2WIN2, and IEF2WIN are also supported.
Annotation export and e-invoices
If keepAnnotations is on, DW2WIN exports most documents as PDF so stamps and annotations are included. E-invoices identified by eInvoiceField are left in their original format (usually XML) so the embedded invoice data is kept. If keepAnnotations is off, DW2WIN uses defaultFileType instead. XML and ZIP files are always exported as-is.
If you also enable forcePDF, e-invoices are converted to PDF as well. That removes the embedded XML, so the exported file is no longer a ZUGFeRD or Factur-X e-invoice.