User Manual
Conversion Service
Version 4.0.0
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 1/66
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2 How the Conversion Service works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3 Processing documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.4 Integration options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.5 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.6 Operating systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.7 Oce conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2 Quick start guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.1 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2 Convert your rst le using the preinstalled conguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3 Congure for your scenario . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.4 Integrate into your system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3 License management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4 User guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.1 Service conguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.2 Prole conguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.3 Connection conguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.4 Oce conguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.4.1 Local Oce installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Local Oce installation with a local user account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Local Oce installation with a domain user account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Microsoft Oce license considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.4.2 Oce for the web service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.5 Health and Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.5.1 Jobs, tasks, and parallel execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.6 Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.7 Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.7.1 Client installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.7.2 Shell client pdfclient . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.7.3 GUI client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Settings window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Preconguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Set default service endpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Add workows to blacklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
4.7.4 Oce add-in . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
4.8 REST API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
4.8.1 API usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
4.9 Plugins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
5 Workows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.1 Archive PDF/A-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.1.1 Supported le formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.1.2 Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.1.3 Conguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.2 Archive PDF/A-3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 2/66
5.2.1 Supported le formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.2.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.3 Archive PDF/A-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.3.1 Supported le formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.3.2 Features and limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.4 Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.4.1 Supported le formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.4.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.5 Invoice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.5.1 Supported le formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.5.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.6 Dossier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.6.1 Supported le formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.6.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Title page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Structuring the dossier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Document outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Table of contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Stamps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.7 Processing steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.7.1 Oce conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.7.2 Stamping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Text stamp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Image stamp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Barcode stamp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Placeholders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.7.3 Metadata . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Standard properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Extended properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Dublin Core schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
XMP Basic schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
XMP Rights Management schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Custom extension schemas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Advanced usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
5.8 Supported le formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
6 Connectors / Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.1 Input connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.1.1 Watched Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Companion le . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.1.2 REST Input (Plain HTTP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6.1.3 REST Input (JSON) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Options and variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
6.1.4 Watched Mailbox (IMAP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
6.1.5 Watched Mailbox (Exchange Online) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
6.2 Output connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 3/66
6.2.1 Output Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
6.2.2 Create Text File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
6.2.3 REST Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
6.2.4 Execute Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
6.2.5 Output Mailbox (IMAP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
6.2.6 Output Mailbox (Exchange Online) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.2.7 Send Email (SMTP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.2.8 Send Email (Exchange Online) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
7 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
7.1 Error codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
7.2 Oce conversion problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
7.2.1 Conguration problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
7.2.2 Specic errors related to Word, Excel, and PowerPoint documents . . . . . . . . . . . . . . . . . . . . . . . . 54
7.3 Service log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
7.4 Submitting a support request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
8 Version history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
8.1 Version 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
8.2 Version 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
8.3 Version 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
8.4 Version 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
9 Licensing, copyright, and contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 4/66
1 Introduction
1.1 Description
The Conversion Service is an allround carefree package for automating your document processes. It takes input
documents of dierent formats from various sources and processes them according to your use case to produce
highquality PDF/A documents.
1.2 How the Conversion Service works
The Conversion Service can be thought of as a factory with a production line (workow) for each product it oers.
The products it manufactures are documents prepared for a specic use case. For example, the workow
Archive
PDF/A-2 is engineered specically for preparing documents for archiving.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 5/66
A production line consists of a series of processing steps (e.g. validate, OCR, convert, merge, sign, ). Each step
moves the raw materials (input documents) closer to being a nished product (output document).
Some steps are optional and most of them have options (e.g. paper size, image resolution, ). These can be ad
justed to your individual needs by conguring one or more setups (
proles) for each production line. A prole
denes which processing steps to activate and what options to use.
1.3 Processing documents
If you want the factory to manufacture a product (output document), you send them an order (job) consisting
of the raw materials (input documents), the production line (workow), and setup (prole) to use and where to
deliver the nished product (output path).
Input
Similarly, to prepare documents for a specic use case, you send a job consisting of the following input to the
Conversion Service:
Input documents The documents to be processed.
Workow name Which workow to use, i.e. the use case to prepare the documents for.
Prole name Which prole to use, i.e. how the documents should be processed.
Output path Where to store the resulting document.
Output
Once conversion is completed, the Conversion Service returns:
Output document If the conversion was successful, the resulting document can be found in the specied output
directory.
Report Conversion events, warnings, and errors. Useful for analysis.
1.4 Integration options
The communication with the factory can happen through dierent channels. You can send the order by mail, or you
bring everything to the factory in person. Similarly, the Conversion Service oers dierent interfaces to communi
cate through.
The Conversion Service is a Windows service designed to be installed on a server and integrated into your system
using one of the following interfaces:
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 6/66
Watched folder Automatically convert documents copied to a precongured input folder to a precongured
output folder. Recommended for integrating with leshare architectures. Suited for interactive and manually trig
gered processing.
Shell client Easy to use shell tool. Recommended for integrating using scripts. Suited for automated and manually
triggered processing.
REST API Easy to use webservice interface. Recommended for integrating into your existing application (Enter
prise Application Integration). Suited for automated and manually triggered processing from within your applica
tion.
GUI client Easy to use graphical tool. Recommended for testing and familiarizing yourself with the Conversion
Service. Suited for manually triggered processing only.
1.5 Features
Robust client/server architecture
Powerful REST API (HTTP or HTTPS)
High throughput job processing
Specialized workows
Archive PDF/A-2
Archive PDF/A-3
Archive PDF/A-1
Conversion
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 7/66
Invoice
Dossier
Multiple conguration proles for each workow
Convenient GUI congurator
Watched folder
Statistics of activity and job processing
High availability and stability
Logging and monitoring
1.6 Operating systems
The Conversion Service is available for the following operating systems:
Windows Server 2016, 2019, 2022 | x64
1.7 Oce conversion
As an optionally available feature, Word, Excel, and PowerPoint documents can be converted to PDF with the Con
version Service.
The Conversion Service oers two Oce conversion options: conversion with a local Microsoft Oce installation
on the same server, or conversion via the Oce for the web service in the Microsoft Azure Cloud.
Compatible versions for local Microsoft Oce installations are:
Oce 2016 (64 Bit)
Oce 2019 (64 Bit)
Oce 2021 (64 Bit)
Oce 365 (64 Bit)
US English is the recommended and supported language setting.
Requirements for the conversion via the Oce for the web service are:
Microsoft 365 for business subscription (Azure Cloud tenant for an organization) with a dedicated user account
An Oce 365 license needs to be assigned to this dedicated user
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 8/66
2 Quick start guide
The setup is simple: you just install the Conversion Service on your server and you are all set for your rst conversion.
2.1 Installation
1. Download and install the required .NET runtimes:
1. .NET Framework 4.7
2. Microsoft .NET Desktop Runtime 6.0 (x64)
3. Microsoft ASP.NET Core Runtime 6.0 (x64)
2. Download and execute the MSI installation package and follow the instructions on screen. This installs the fol
lowing components:
Conversion Service
Congurator GUI
Shell and GUI Clients
License Manager
Watched Folder
3. Add your license in the license manager as described in License management.
Note: To convert Word, Excel, and PowerPoint documents, Oce conversion
must be congured. See in Oce conguration. Also, Oce conversion must be
activated in the prole, e.g. using the Congurator GUI. See in Prole congura
tion.
2.2 Convert your rst le using the preinstalled conguration
1. Copy a document, e.g. input.pdf, to the server you just installed the service on.
2. Open a command prompt and type
pdfclient -v input.pdf output.pdf
3. The client shows the progress. When it is nished, you nd the newly generated output.pdf in the current
working directory.
2.3 Congure for your scenario
Congure your service as described in Service conguration.
Adapt the default prole or create new ones as described in Prole conguration.
2.4 Integrate into your system
Choose your integration:
Shell client pdfclient
Watched Folder
REST API
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 9/66
3 License management
The Conversion Service requires a valid license to run correctly.
More information about license management is available in the
license key technote.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 10/66
4 User guide
This section gives an overview of the usage and conguration of the Conversion Service features and interfaces.
4.1 Service conguration
The service can be congured using the Conversion Service Congurator GUI, which is added to the Windows start
menu during installation.
Service conguration tab of the Conversion Service Congurator
Status Shows the status of the Conversion Service and provides the controls to start, stop and restart the Windows
service.
For the Conversion Service to run, the Windows service must be started and its conguration must be valid.
If the Conversion Service is not operable even though the Windows service has been started, check the log le
for more information on the cause. Common problems are a missing license or low disk space.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 11/66
Note that whenever the conguration is changed, the Windows service must be restarted for the changes to
take eect. When the service is stopped, all current jobs are canceled and deleted.
The Windows service is installed with service name ConversionService and display name
“Conversion Ser
vice”. So its status can also be changed using Windows Services desktop app or the sc command line program.
Service host address The address of the service host of the form
http[s]://‹hostname›:‹port›/conversion/v1.0/rest.
Default: http://localhost:13033/conversion/v1.0/rest
It is recommended to not change the address, unless the default port 13033 is already in use on the local ma
chine. If the port is changed and rewall rules have been added, they must be changed accordingly. The con
version/v1.0/rest sux is not congurable.
The congured service host address is also the endpoint URL used by the
Shell client pdfclient or REST API.
HTTPS By default, the service endpoint uses HTTP. Activating HTTPS disables support for HTTP. This is to prevent
clients from accidentally sending sensitive information over HTTP.
HTTPS can be activated by setting the scheme of the service host address to https. In addition, the follow
ing is required:
1. A valid host certicate. The certicate must be provided as PKCS#12 le (.pfx or .p12), which includes
the certicate’s private key and issuer certicates. If the private key is password protected, the password
must be congured.
2. The ‹hostname› of the service host address must be set to the name of the host certicate. Otherwise,
clients such as the
Shell client pdfclient refuse to connect. This hinders correct operation of many
components, including the Congurator GUI or the Connection conguration.
3. The host certicate must be trusted.
Windows Defender rules Exclude the service processes and working directories from monitoring by the Win
dows Defender Antivirus. It is highly recommended to enable this setting, as the service may be slowed down
signicantly otherwise.
Open port The port congured in the Service host address is available by default from the local machine only. If
the Conversion Service needs to be accessible from other machines, e.g. using the Shell client pdfclient or
REST API, the port must be opened in the Windows Firewall.
This switch opens the port for connections from all other computers. If more specic rules are required, they
must be created manually (see
Security considerations).
Temporary les The directory where temporary les are written to. To optimize performance, this directory should
be on a local drive with fast read and write access.
Proxy Conguration of the proxy URL to be used for all HTTP and HTTPS communication to external hosts. The
option can either be left blank for no proxy or must be a string with the following syntax:
http[s]://[‹user›[:‹password›]@‹host›[:‹port›]
Where:
http/https: Protocol for connection to proxy.
‹user›:‹password› (optional): Credentials for connection to proxy (basic authorization).
‹host›: Hostname of proxy.
‹port›: Port for connection to proxy.
Oce conversion Congure the service to convert Word, Excel, and PowerPoint to PDF conversion. Click on
Configure and follow the on-screen instructions. See
Oce conguration and the documentation panel.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 12/66
Log directory The directory where all log les are written to. This includes the log les of the service (see Service
log), the connectors, and the congurator.
Statistics Congure whether the service stores service, job, and task information to a database le to analyze the
conversion history with the Statistics tab. The location of the database is congured in the Database directory
setting.
Database directory The directory where the database is stored when the Statistics setting is enabled. This setting
is only congurable when the Statistics setting is turned on.
Max. age The congured maximum age of the datebase entries. The conversion history is deleted after reaching
the maximum age. This setting is only congurable when the Statistics setting is turned on.
Max. le size The congured maximum le size of the database. Older entries of the conversion history are
deleted if the maximum database le size is exceeded. This setting is only congurable when the Statistics
setting is turned on.
4.2 Prole conguration
Proles are managed using the Conversion Service Congurator GUI, which is added to the Windows start menu
during installation.
Workows & Proles tab of the Conversion Service Congurator
Workows Workows can be activated or deactivated by clicking the toggle button right next to the workow
name. Your changes are kept in memory until you click Save & Restart Service in the notication.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 13/66
Proles A prole denes all options and optional processing steps for a given workow, see Workows. Each
workow is delivered with a default prole called “default”. To add and congure a new prole click the Add
Prole button. To edit an existing prole simply click on it. To copy an existing prole click the Copy icon.
Import window of Conversion
Service Congurator
Import proles Click Import Proles in the topright menu to import proles from a prole conguration le. If
a prole with the same name is selected in the same workow as an already existing prole, a dialog with the
following options appears:
Deselect duplicates: Select this option if you only want to add but not replace any existing proles.
Replace originals with imported proles: Select this option if you want to replace the existing proles.
Keep originals and imported proles: Select this option if you want to keep both the existing and the
imported proles.
When importing proles of a workow, the following workow properties are also imported:
Workow state: Whether the workow is activated or deactivated.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 14/66
Export window of Conversion
Service Congurator
Export proles Click Export Proles in the topright menu to export one or more proles to a prole conguration
le.
Congure a new prole with the Conversion Service Congurator
Name (required) Enter the desired name for the prole.
Default Check this box to set the current prole as the default prole for the given workow.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 15/66
Processing steps Enable/disable optional processing steps. The corresponding options are displayed accordingly.
Options Set options for individual processing steps. A summary for each option is documented with tooltips. For
a detailed explanation of the options, click on the title of the section to open the documentation panel.
Any changes in the congure requires a restart of the Conversion Service in order for it to take eect. When you add
or edit proles, the Congurator detects changes and displays an unobtrusive notication. For your convenience,
your changes are kept in memory until you click
Save & Restart Service in the notication.
4.3 Connection conguration
Easily integrate the Conversion Service into the environment by connecting input sources (e.g. a watched folder)
to output destinations (e.g. an output folder) and conguring how documents should be processed along the way.
To achieve this congure a connection using the Conversion Service Congurator, which is added to the Windows
start menu during installation.
Integration tab of the Conversion Service Congurator
Connection A connection denes how the Conversion Service is integrated into an existing system. Each connec
tion requires input and output connectors. To add and congure a new connection click the Add Connection
button. To edit or delete an existing connection, click on the respective icon. To copy an existing connection
click the Copy icon.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 16/66
Congure a new connection with the Conversion Service Congurator
Name (required) Enter a connection name.
Description (optional) Enter a connection description.
Input(s) (required) Congure an input connector by clicking Add.
Processing (required) Select the workow and prole for the conversion.
Output(s) (requried) Congure an output connector by clicking Add.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 17/66
Select Connector window of
Conversion Service Congurator
Add connector Click Add in the desired section to add an input or output connector. For a detailed explanation of
the connector, click on the title to open the documentation panel. Select the desired connector and click Next
to conrm the selection.
Congure Connector window of
Conversion Service Congurator
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 18/66
Congure connector Set options for the selected connector. A summary for each option is documented with
tooltips. For a detailed explanation of the connector, click on the title to open the documentation panel. See
Connectors / Integration for more information on the individual connectors.
Any conguration change requires a restart of the Conversion Service in order for it to take eect. When you add or
edit connections, the Congurator detects changes and displays an unobtrusive notication. For your convenience,
your changes are kept in memory, until you click Save & Restart Service.
4.4 Oce conguration
There are three conguration options to convert Word, Excel, and PowerPoint documents to PDF with the Conver
sion Service. The
Local Oce installation with a local user account and Local Oce installation with a domain user
account options require a local installation of the Microsoft Oce applications on the server. The Oce for the web
service option interacts with a Microsoft Azure Cloud tenant using the Microsoft Authentication Library (MSAL), the
Microsoft Graph API, and the Microsoft Sharepoint API to convert Word, Excel, and PowerPoint documents to PDF.
Oce conguration options oered by
the Conversion Service Congurator
4.4.1 Local Oce installation
A dedicated user account is necessary to run and interact with Microsoft Oce applications. This user is described
as the Oce user.
There are two options for this dedicated user account:
Local Oce installation with a local user account
Local Oce installation with a domain user account
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 19/66
Local Oce installation with a local user account
This is the standard option suited for most servers. In this case, the Conversion Service creates and congures a local
user account ConvsrvOceUser automatically.
The account does not have any group memberships.
A complex random password with 36 characters is created and encrypted using the Windows Data Protection
API. The password does not expire.
The "Log on as a batch job" security policy setting is granted to this user.
The Registry and DCOM Permissions of Word, Excel and PowerPoint are adjusted.
Local Oce installation with a domain user account
This option is intended for servers that do not allow the creation of local users and that are managed by a domain
controller. In this case, you need to provide an existing domain user account. The account is not managed by the
congurator. The properties and settings are set automatically.
The password is encrypted using the Windows Data Protection API before it is stored to a conguration le
1
.
The "Log on as a batch job" security policy setting is granted to this user.
The Registry and DCOM Permissions of Word, Excel, and PowerPoint are adjusted.
Microsoft Oce license considerations
The Conversion Service uses Microsoft Oce applications to process jobs containing Word, Excel, and PowerPoint
documents. For compliance with the licensing guidelines from Microsoft, every client that sends jobs with Word,
Excel, or PowerPoint documents to the Conversion Service must be licensed for Microsoft Oce
2
.
4.4.2 Oce for the web service
Your organization requires a Microsoft 365 subscription (Azure cloud tenant) for this option and a user account
with a Oce 365 license. You should create a dedicated user account inside your organization. The credentials of
this user account are required for the conguration. During the conguration process, you need to consent to the
Conversion Service having full control over the OneDrive for this user account.
4.5 Health and Activity
The state and recent activity of the service is monitored by the Health and activity tab of the the Conversion Service
Congurator GUI, which is added to the Windows start menu during installation. The purpose is to provide an
overview of the service’s performance. It consists of the following parts:
The number of jobs that the service is currently processing
Time passed since when the service was started
Validity of the license
Pie chart about the results of the jobs processed on the current day
Time chart tracking the services load and performance
1
If you update the password, you need to recongure the Oce User
2
For further details we refer to the Documentation from Microsoft, last accessed November 2020
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 20/66
4.5.1 Jobs, tasks, and parallel execution
A job is the unit that is sent to and processed by the Conversion Service. A job consists of input documents, a
workow name, a prole name, and an output path. Depending on the job content, a set of processing steps is
required to complete its execution (such as destructuring, conversion, merging, etc). A task is the execution unit
of such a processing step. Tasks are generally executed in parallel and tasks are held in a queue in case the service
is charged to capacity. The parallel processing capacity of the service depends on the license and the underlying
hardware system. The license and hardware limit the number of tasks that can be processed in parallel by the service.
This number is referred to as the maximum number of concurrent tasks (maxConcurrentTasks).
Health & Activity tab of the Conversion Service Congurator
Status Summarizes the status of the Conversion Service by displaying the count of currently processed jobs, status
of the license, service uptime.
Processed jobs The pie chart summarizes and monitors jobs processed during the current day in the following
categories:
Jobs successful: Jobs converted successfully.
Jobs with warnings: Jobs converted with warnings.
Jobs failed: Jobs that failed with errors related to the input document. For example Corrupt, Unsup
portedFormat or Generic.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 21/66
Jobs with errors: Jobs that failed due to a Timeout, Configuration or Internal error.
Jobs canceled: Jobs that where canceled by the user.
Activity The time chart gives an indication on the service’s load and performance. It displays the following
two curves, which are limited by the parallel processing capacity of the service. See in Jobs, tasks, and parallel
execution:
Utilization (green): Plots the percentage of processing capability used. The total possible processing capa
bility of the service depends on your license and your system.
Number of tasks in queue (yellow): Shows the number of tasks are waiting in the queue for being
processed.
On top of the diagram, on the very right, there are four numbers, each next to a symbol. These values are in the
color of the curve they are associated with. The top green value is the maximum. The bottom green value is the
average of the utilization. The top yellow value is the maximum number of tasks in queue for the selected time
span. The bottom yellow value is the average time a task spends waiting in the queue before being processed.
Next to the Activitytitle, the following time spans can be congured for the chart:
Last ten minutes
Last hour
Last two hours
Last four hours
When you change the selected item in the legend at the bottom of the chart, the curve it represents is brought
to the foreground together with its associated grid for easier reading. Note that for the Y-axis, the range of values
is labeled at the righthand side.
4.6 Statistics
Information about the past activity of the service is reported by the Statistics tab of the the Conversion Service
Congurator GUI, which is added to the Windows start menu during installation. With this tab, the conversion history
of the service can be analyzed. The Statistics tab consists of the following parts:
Filter section: A section containing a set of lters to control the data displayed in the tab.
Simple statistics: An overview displaying the performance of the service.
Processed jobs: Pie chart about the results of the processed jobs.
Activity: Time chart indicating service’s load and performance for a selected group of jobs.
In addition, the data displayed in the tab can be exported for further analysis.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 22/66
Statistics tab of the Conversion Service Congurator
Filter section In the top row of the tab, below the title, the following lters can be congured to be applied to the
data displayed in the tab:
Time unit & period Determines the period of time when the jobs were processed. On the lefthand side, the
length of the period can be congured by selecting one of the following time units:
Day
Week
Month
On the righthand side, the point of time where the period occurred can be selected either by clicking on the
calendar icon and choosing it from the calendar dropdown which has appeared or by clicking the arrows.
Workows Filter data to show usage, load ,and job results of specic workows.
Query time The time point when the query for the displayed data was made. The query time is only relevant
if the current day is part of the selected time period. The query time can be updated with the refresh icon in
this case.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 23/66
Export data as CSV Click Export Data as CSV in the topright menu to export the data selected by the lters from
the database. When the export has nished, a ZIP archive containing the following CSV les is saved:
service.csv contains the following columns:
started: Service start time.
stopped: Service stop time.
maxConcurrentTasks: Concurrency supported by the license, i.e. the maximum number of tasks
which can be executed in parallel
3
.
jobs.csv
id: Row number.
jobId: Unique identier name of the job.
worklow: Name of the worklow the job was processed with.
profile: Name of the prole the job was processed with.
started: Point in time when the service started to process the job.
finished: Point in time when the service completed the job.
error: Name of the error if the job failed.
warnings: List of the names of the warnings that occurred when processing the job.
outputFilesCount: Total number of output les resulting from the conversion.
overallOutputSize: Total number of bytes summed over all output les resulting from the conver
sion.
overallPages: Total count of pages summed over all output les resulting from the conversion.
tasks.csv
id: Row number.
job: Row number of the job the task is associated with
3
.
queued: Point in time when the task began waiting in the queue for being processed.
started: Point in time when the task moved out of the queue and the service started to process it.
stopped: Point in time when the service was nished with processing the task.
component: Names the type of processing step applied through this task.
Simple statistics Displayes some characteristic numbers about the jobs considered by the current lter congu
ration and the service:
Service uptime: The total amount of time that the service has been running.
Processed jobs: The total number of jobs that have been processed.
Processed pages: The total sum of pages of documents converted to PDF.
Processing time: The total sum of job processing time. Note that this number can be higher than Service
Uptime since multiple tasks can be processed in parallel.
Output le size: The total sum of output le size of the processed documents.
Processed jobs The pie chart, also described in Section 4.5, summarizes the jobs considered by the current lter
conguration in the following categories:
Jobs successful: Jobs converted successfully.
Jobs with warnings: Jobs converted with warnings.
Jobs failed: Jobs that failed with errors related to the input document like for example Corrupt, Unsup
portedFormat or Generic.
Jobs with errors: Jobs that failed due to a Timeout, Configuration or Internal error.
Jobs canceled: Jobs that where canceled by the user.
Activity The time chart, also described in Section 4.5, indicates the service’s load and performance. The lters
apply to this diagram as well. It displays the following two curves:
Utilization (green): Plots the percentage of processing capability used. The total possible processing capa
bility of the service depends on your license and your system.
3
For more information, see Section 4.5.1.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 24/66
Number of tasks in queue (yellow): Shows the number of tasks are waiting in the queue for being
processed
3
.
On top of the diagram, on the very right, there are four numbers, each next to a symbol. These values are in the
color of the curve they are associated with. The top green value is the maximum. The bottom green value is
the average of the utilization. The top yellow value is the maximum number of tasks in queue for the selected
period. The bottom yellow value is the average time a task spends waiting in the queue before being processed.
When you change the selected item in the legend at the bottom of the chart, the curve it represents is brought
to the foreground together with its associated grid for easier reading. Note that for the Y-axis, the range of values
is labeled at the righthand side.
4.7 Clients
4.7.1 Client installation
The ConversionServiceClient.msi oers a standalone installation for the client applications. For auto
mated installations, the SERVICE_URL property can be used to precongure the service URL of the Conversion
Service.
msiexec /i ConversionService.msi SERVICE_URL=http://localhost:13033/conversion/v1.0/rest
The installation of the Oce add-in can be disabled in the installer.
4.7.2 Shell client pdfclient
The shell client application, pdfclient, interacts with the Conversion Service via the REST API. The application
creates jobs based on its input parameters. The jobs are then uploaded in parallel to the Conversion Service and
the shell client monitors the completion, before the output les are downloaded. In verbose mode (option -v), a
detailed report including all performed actions on the documents is written to the console. If warnings or errors
occur during processing, they are reported.
A selection of examples is explained in detail below.
Examples
Show usage
pdfclient
By typing pdfclient without parameters on the command line, the usage and examples are shown
4
.
Basic
pdfclient -v -url http://<hostname>:<port>/conversion/v1.0/rest file.pdf ^
-pw <password> encrypted.pdf output.pdf
4
The pdfclient is added to the PATH environment setting during installation.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 25/66
Sends the les file.pdf and encrypted.pdf to the Conversion Service through the REST API endpoint URL
http://<hostname>:<port>/conversion/v1.0/rest (see Service host address) and saves the result as
output.pdf. Option -v turns on verbose mode, option -url sets the service endpoint URL, and option -pw
supplies the password for encrypted.pdf. If the service endpoint URL (-url) is not set, "localhost" and the
default port are used.
Workow and prole
pdfclient -w "Archive PDF/A-2" -p "myCustomProfile" input.pdf output.pdf
Use the -w and -p options to select a specic workow and prole for the job. In this example, the workow is
set to "Archive PDF/A-2" and the prole is set to "myCustomProfile". If the options are not specied, the
service’s congured default workow and prole are used.
Wildcards
pdfclient -r *.ext C:\path\to\output.pdf
Sends all les with extension .ext from the current working directory and all subdirectories. to the Conversion
Service, and saves the result as a single output document C:\path\to\output.pdf.
pdfclient -s *.ext C:\path\to\output
Process the les with extension .ext as separate jobs and save the results in C:\path\to\output. The output
directory must already exist. Existing output les are overwritten by default. Output options such as creating unique
lenames instead of overwriting existing les are explained in the usage of the tool.
Batch processing
pdfclient -r -s C:\path\to\input C:\path\to\output
Sends the les inside C:\path\to\input, including all subdirectories, to the Conversion Service. It saves the
results in C:\path\to\output with the same le structure as in the input directory. Existing output les are
overwritten. Output options such as creating unique lenames instead of overwriting existing les are explained in
the usage of the tool.
4.7.3 GUI client
The GUI client is an easy-to-use graphical tool intended for testing and familiarizing yourself with the Conversion
Service. It interacts with the Conversion Service via REST API.
© PDF Tools AG -- Premium PDF Technology Conversion Service, December 21, 2022 | 26/66
Conversion Service GUI Client
Input Drag and drop the documents to be processed to the input area. To remove individual documents from the
list, select them and press the delete or back key. To remove all documents from the list, click on Clear List.
Conversion options Select the workow and the prole to be used for the conversion. Click the refresh icon
to reload the workows and proles. The merge option controls the processing mode. If it is switched on, all
input documents are gathered into one job, resulting in one merged output document. If it is switched o, every
document gets processed in a separate job, resulting in one output document per input document.
Output Choose where to store the resulting document(s). If merge is switched on, choose the le name of the
resulting document.
Settings window
The service endpoint URL can be changed in the Settings window of the Conversion Service GUI Client. The default
value is http://localhost:13033/conversion/v1.0/rest.
Settings window of Conversion Service GUI Client
Preconguration
Set default service endpoint
To set a default service endpoint URL, add it to the serviceEndpoint in the projects appsettings.json le
located in the bin directory of the installation path.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 27/66
{
"service": {
"serviceEndpoint": "http://localhost:13033/conversion/v1.0/rest"
}
}
Add workows to blacklist
Individual workows can be blocked in the project’s appsettings.json le in the directory bin of the installa
tion directory, eectively making them invisible in the UI. To blacklist a specic workow, add it to the blacklist
Workfows in the aformentioned le.
{
"client": {
"blacklistWorkflows": [
"Dossier",
"Invoice"
]
}
}
4.7.4 Oce add-in
The Oce addins are a simple way for converting documents directly from an Oce application. A Conversion
Service button is added to the toolbar, through which the conversion can be started immediately.
If not disabled in the ConversionServiceClient.msi, the addins are installed for the following Oce prod
ucts:
Microsoft Word
Microsoft Outlook
Microsoft Excel
Microsoft PowerPoint
4.8 REST API
The Conversion Service oers a REST API that allows you to schedule jobs and get service status information.
The REST API is also used by the other clients, e.g. the
Shell client pdfclient or Watched Folder.
The service endpoint URL of the REST API is dened by the
Service host address of the service conguration. The
default value is http://localhost:13033/conversion/v1.0/rest.
Note: For easy integration with exsisting systems, a simplied REST inter
face is provided by the input connectors REST Input (Plain HTTP) and REST Input
(JSON).
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 28/66
Security considerations
The API is available by default on the local machine only. If it should be accessible remotely, the computers re
wall must be congured accordingly, e.g. using the Congurator GUI. When opening the port in the rewall it is
recommended to add a rule that is as strict as possible, i.e. to not allow connections from untrusted computers.
Note that the REST API is designed for use in a protected intranet only. It oers no user authentication nor other
security measures, e.g. against denial-of-service attacks. If this is required, a web application rewall (WAF) is rec
ommended.
The Conversion Service does support crossorigin requests (CORS). This is required when sending requests using
JavaScript from a browser. By default, requests from all origins are allowed. If necessary, crossorigin requests can
be restricted to certain origins using the service’s conguration.
4.8.1 API usage
The API is described in detail by the OpenAPI document doc/openapi.yaml inside the installation directory. The
YAML document can be viewed in an OpenAPI editor or used to generate client stub code of any programming
language.
The API supports XML and JSON in the bodies of requests and responses. So it is recommended to set the headers
ContentType and Accept to the preferred type.
In case of an error, the API returns a suitable HTTP status code as well as a problem details object (
RFC 7807). This ob
ject contains more information on the type and cause of the error. Notably, the objects property detail contains
a humanreadable explanation that is helpful to troubleshoot the issue. Therefore, it is recommended to parse and
use the problem details object (ContentType application/problem+json and application/problem+
xml respectively) whenever the returned HTTP status code indicates an error.
Job processing
For a general overview of how jobs are processed by the Conversion Service, see Processing documents or the
documentation of a specic workow, such as the Archive PDF/A-2.
To schedule a job and retrieve its result, the following simplied sequence described in
Job processing sequence
can be used.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 29/66
Job processing sequence
Job Status
Client
create job
created
add data
success
start job
success
creating processing
get job info
job info
get job result
job result
completed
get result data
result data
delete job
deleted
There is no limit of the number of jobs that can be started concurrently. The service will process the jobs in the order
they were created, using the highest concurrency allowed by the systems CPU and the license. Nonetheless, it is
recommended to not start much more jobs than the service can process. For example, on a machine with 8 CPU
cores and a license for 8 cores, not much more than 8 jobs should be started
5
.
Service information
These methods return service status information.
The
getSeviceStatus method can be used to retrieve general status information. This is suitable to verify if the
service is running, e.g. for health check monitoring. In addition, information on the service’s load and general job
count information is returned.
The
listJobs method returns a list of all jobs and their status. This is useful to see what tasks are executing.
The
listWorkflows method returns a list of all workows and their proles.
5
Note that this is a very simplied example. To determine the maximum concurrency, the whole system and conguration must be taken into
consideration. Dependent systems, such as an OCR service or Oce conversion might further limit the maximum concurrency.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 30/66
4.9 Plugins
Plugins are nonstandard components used for extending the Conversion Service with custom workows. They are
managed in the Plugins tab of the Conversion Service Congurator GUI. This tab is only displayed if the correspond
ing license feature is active. All installed plugins are listed here.
To install a new plugin, click
Install Plugin and choose the ZIP le containing it. To update or delete a plugin, click
on the respective icon. These actions require a service restart to take eect.
Each plugin version is designed for a specic version of the Conversion Service. So when upgrading the Conversion
Service, all plugins must be upgraded as well. Unless the plugins are updated, the service is not operational.
Plugins tab of the Conversion Service Congurator
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 31/66
5 Workows
5.1 Archive PDF/A-2
This workow is engineered specically for preparing documents for archiving.
5.1.1 Supported le formats
This workow supports all le formats listed in Supported le formats. The conversion of most le formats is enabled
by default in the Convert mode conguration for child documents (Attachments).
5.1.2 Process
All input documents of a job are processed as follows:
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 32/66
Analyze le type In a rst step, the documents are analyzed. If the le type of any document is not supported,
conversion is aborted. Otherwise, they are sent to the next processing step depending on their le type.
Validate & repair (Quality Assurance) To ensure document quality, PDF and PDF/A documents are validated. If
a corruption is detected, the Conversion Service attempts to repair it.
Convert to PDF NonPDF documents (e.g images, Oce documents, etc.) are converted to PDF if their format is
supported by the Conversion Service.
Note: the conversion of Oce documents requires an additional step which can only be enabled with an appropriate
license.
OCR To make the resulting document searchable, OCR is performed on documents that require it. The recognized
text is stored directly in the PDF.
Note: this is an optional step and can only be enabled with an appropriate license.
Stamping See Stamping.
Convert to PDF/A PDF documents that are not already PDF/A-2 conforming are converted to a highquality
PDF/A-2.
Merge / Collect The converted documents of a job are merged or collected into one document, depending on
the prole setting.
Optimize The resulting document is optimized for archiving. This includes several optimizations: redundant
and unnecessary data for archiving is removed, images are compressed intelligently, and fonts are merged and
subset.
Note: this is an optional step and can only be enabled with an appropriate license.
Sign The resulting document is digitally signed using the signature settings in the selected prole.
Note: this is an optional step and can only be enabled with an appropriate license.
5.1.3 Conguration
The workows prole oers a negrained conguration of how les are converted. All of the processing steps
described can be enabled and congured in the prole conguration. Furthermore, the following conguration
options are available:
Convert mode conguration for child documents (Attachments) The convert mode denes the documents
to be converted (conguration “Convert”) and those to be skipped (removed) from the result. When removing
documents, a (conguration “Skip with warning”) warning or a (conguration “Skip”) informational message is
generated.
The convert mode can be specied based on the type of the child document, its le name, or the type of the
parent document.
For example, by default Oce les are converted to PDF/A, executables are removed, and other nonconvertible
documents are removed with a warning.
Collect mode conguration The collect mode conguration denes how a converted document and child doc
uments are combined.
The collect mode can be specied for each document type individually. See the documentation panel of the
Conversion Service Congurator for a detailed description of the available collect modes.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 33/66
For example, emails can be converted by creating a PDF collection (Portfolio) of its body and attachments. When
converting Word documents, their embedded les can be attached to the converted PDF.
Merge vs. attach There are two categories of collect modes: either the pages of multiple PDF documents can
be merged into a single document, or child documents can be attached (embedded) into a PDF document.
A PDF collection (Portfolio) is a special case of embedding child documents, where the parent document
contains no pages, but shows a convenient table of the attached documents for easy navigation.
The advantage of the
Merge collect modes is that it creates simple les that can be processed and viewed
by all PDF applications. The disadvantage is that only PDF les can be merged. Furthermore, not all the
information can be preserved when merging PDF les. For example, document metadata, signatures, and
certain interactive form elds cannot be merged and must be removed. Also, logical structure (tagging)
information may be less meaningful after merging.
Recommended collect mode conguration for the
“Merge” use case:
Type Collect mode
Job Merge
Word Merge or attach
Excel Merge or attach
PowerPoint Merge or attach
Email Merge or attach
Archive (ZIP) Merge or attach
PDF Preserve structure
The advantages of the Attach collect modes is that all the information of the input les and the structure of
the les can be preserved. PDF collections (Portfolios) provide a convenient way to show and navigate the
attached documents.
Recommended collect mode conguration for the
“Attach” use case:
Type Collect mode
Job Collection or single document
Word Attach
Excel Attach
PowerPoint Attach
Email Attach
Archive (ZIP) Collection or single document
PDF Preserve structure
6
6
If necessary, the collect mode “Flatten” can be used to atten the structure of PDF documents. Up to version 3.1 of the Conversion Service, this
has been the default behavior.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 34/66
The Child error handling conguration denes how errors during the conversion of child documents are han
dled. In case of an error, the child document can either be skipped (removed) from the result and a warning
generated (“Skip with warning” conguration). Alternatively, the conversion of the parent document can be
aborted with an error (“Strict” conguration).
5.2 Archive PDF/A-3
This workow is engineered specically for preparing documents for archiving. All features and processing steps of
the workow Archive PDF/A-2 are also available in Archive PDF/A-3. However, the PDF/A-3 format allows additional
features regarding embedded les.
5.2.1 Supported le formats
This workow supports all le formats listed in Supported le formats. The conversion of most le formats is enabled
by default in the Convert mode conguration for child documents (Attachments).
5.2.2 Features
In addition to the features of the Archive PDF/A-2 workow, this workow also supports the following features:
Convert to PDF/A-3 The workows prole oers a negrained conguration of how les are converted.
Convert mode conguration for child documents (Attachments) This extends the Convert mode cong
uration for child documents (Attachments) of the Archive PDF/A-2 workow with PDF/A-3 features. More
specically, the PDF/A-3 standard allows you to embed child documents “As is”, i.e. without converting
them to PDF/A.
For example, by default Oce les are converted to PDF/A-3, images are used as-is, and executables are
removed.
Collect mode conguration This is the same as the Collect mode conguration of the Archive PDF/A-2
workow. However, in the Archive PDF/A-3 workow, it is common to choose the “As is” convert mode
for some child document types. Therefore, using “Merge” collect modes is strongly discouraged, because
they are limited to PDF documents (see Merge vs. attach). Instead, the “Collection or single document”
and “Attach” collect modes are recommended. PSee the documentation panel of the Conversion Service
Congurator for a detailed description of the available collect modes.
Attach source document The source document (original document) can be attached. The conguration allows you
to decide for each le type if the source document should be attached or not. By default, the source documents
for Oce les are attached. Note that this may increase the le size of the result substantially.
Attach conversion report All events of a conversion can be written to a report le and attached to the result
document.
5.3 Archive PDF/A-1
This workow is engineered specically for preparing documents for archiving. More specically, where the con
formances PDF/A-2 or PDF/A-3 are not allowed. The features and processing steps of this workow are similar the
Archive PDF/A-2 workow.
This workow is disabled by default because it is generally recommended you use
Archive PDF/A-2 for archiving.
Since PDF/A-2 is based on a newer version of the PDF standard, more PDF features are allowed. These features are
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 35/66
commonly used and include transparency, layers, embedded les, and a less restrictive internal le structure. For
these reasons, you can achieve fewer conversion errors and a better conversion quality. For more information on
PDF/A-2, see https://www.pdf-tools.com/blog/pdf-tools-knowledge/pdfa-2-overview/.
5.3.1 Supported le formats
This workow supports all le formats listed in Supported le formats. The conversion of most le formats is enabled
by default in the prole’s “Convert mode conguration for child documents (Attachments)”.
5.3.2 Features and limitations
Compared to the Archive PDF/A-2 workow, this workow has the following features and limitations:
Convert to PDF/A-1
Collect mode conguration The PDF/A-1 standard does not allow embedded les. Therefore, the only collect
mode conguration available is merge (see Merge vs. attach).
Document content rasterization Certain graphical features of PDF documents are not allowed in PDF/A-1. For
example, transparency. The removal of these features can lead to severe visual dierences that may render
the page’s content unreadable.
The product can preserve the visual appearance of such documents by converting the page content to im
ages (content rasterization). When doing so, a
“Content rasterized” warning is generated. If possible, content
rasterization preserves the page’s extractable text, links, outlines, and viewer preferences.
PDF/A-1 Specic conversion warnings The following warnings occur more frequently when converting to
PDF/A-1:
“Annotation removed”, “Content rasterized”
7
, “Layers removed”, “Transparency removed”
8
, “Visual dier
ences”. The prole’s conversion settings for these warnings is particularly important.
Sign Document signing is currently not implemented.
5.4 Conversion
This workow is engineered specically for the conversion of documents to PDF. In contrast to the Archive PDF/A-2
and Archive PDF/A-3 workows, les are only converted to PDF (and not PDF/A). The le format is not validated and
the output documents cannot be signed. OCR is available as an optional processing step.
5.4.1 Supported le formats
This workow supports all le formats listed in Supported le formats.
5.4.2 Features
The Conversion workow oers the following additional features compared to the Archive PDF/A-2 and Archive
PDF/A-3 workows:
7
Only in Windows, where document content rasterization is available.
8
Only in Docker image, where document content rasterization is not available.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 36/66
Optimize for speed or size The workows prole oers an option to optimize for processing time (speed) or for
minimal document le size.
Convert mode conguration for child documents (Attachments) Certain child documents can be skipped
(removed) during conversion to PDF, such as attachments of emails or PDF documents. The convert mode can
be specied based on the type of the child document, its le name, or the type of the parent document.
For example, by default executables attached to an email are removed. If desired, rules can be added to attach
les that can’t be converted (e.g. PDF documents containing unrendered XFA, HTML documents) in their orignal
source format to the resulting output document.
Collect mode conguration The collect mode conguration denes how a converted document and the child
documents are combined. The collect mode can be congured for each document type and also denes how
errors are handled.
For example, emails can be converted by creating a PDF collection (Portfolio) of its body and attachments. Or
when converting Word documents, all embedded les can be merged to the converted PDF.
5.5 Invoice
This workow is engineered specically for preparing invoices. This workow converts a main document to PDF/A-3
and attaches one or more les to the result. For example, an Excel table containing additional data can be attached
to a PDF invoice.
5.5.1 Supported le formats
This workow only supports PDF and MS Word as the main document input format. (See Supported le formats)
5.5.2 Features
Convert to PDF/A-3 This workow has been optimized for the conversion of transactional documents. Supported
are conversions of Word and PDF documents to PDF/A-3.
Attach documents To attach additional documents to a main document, all must be added to a single job. The
documents to attach and additional properties can be set using the following document options. These values
are written into the result document and are visible to a user in the list of attached documents.
DOC.ROLE (required) Denes the document’s role. Supported values are:
main (default): The main document. In each job, there must be one main document.
attached: A document that is attached to the main document. There may be multiple attached docu
ments in a job.
AF.RELATIONSHIP (optional) Denes the relationship of the attached document to the main document.
Supported values are:
Unspecified (default): Used when the relationship is not known or cannot be described using one of
the other values.
Source: Used if the attached document is the original source material for the main document.
Data: Used if the attached document represents information used to derive a visual presentation. For
example, a table or a graph.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 37/66
Alternative: Used if the attached document is an alternative representation of content. For example,
audio.
Supplement: Used if the attached document represents a supplemental representation of the original
source or data that may be more easily consumable (e.g., A MathML version of an equation).
AF.MODDATE (optional) Denes the date and time when the attached document was last modied.
Example: "2009-05-19T09:15:22.0000000+02:00"
AF.DESCRIPTION (optional) Descriptive text associated with the attached document.
Example:
Example using the Shell client pdfclient to attach supplement.xls to the main document invoice.docx.
Note that the -do ‹name› ‹value› option applies a document option to the subsequent input le.
C:\Temp> pdfclient -v -w Invoice invoice.docx ^
-do DOC.ROLE attached -do AF.RELATIONSHIP Supplement supplement.xls ^
out.pdf
Creating job (id job123_4q5mprmmrz0)
Adding file "invoice.docx" (id 0kk1ddv0uzg)
Adding file "supplement.xls" (id 2fg4ufg3qmz)
Output: "invoice.pdf"
- Info: Converted Word document 'invoice.docx' to PDF.
- Info: Converted 'invoice.pdf' to PDF/A-3u.
- Info: Attached file 'supplement.xls' to 'invoice.pdf'.
5.6 Dossier
This workow is specically designed to compile multiple PDF documents into a single dossier.
All PDF document supplied to the job are merged into a single PDF in the order that they were added to the job.
The workow supports the following optional features:
Title page with title, subtitle, and a custom background.
Extensively customizable table of contents.
Stamps to create e.g. watermarks, header, or footer lines.
Bookmarks to structure the dossier.
5.6.1 Supported le formats
This workow only supports PDF les. See Supported le formats
5.6.2 Features
Title page
This workow can be congured to create a title page for the dossier.
The title page contains the title and subtitle of the dossier. The font, size, placement, and alignment of the text is
fully congurable.
Additionally, a PDF document can be congured to be used as a custom background of the title page.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 38/66
The title page can be customized for each job using the following options:
DOSSIERTITLE (optional) The title of the dossier used on the title page.
This option overrides the value specied in the prole conguration. The option should only be set at job level
and is ignored at document level.
DOSSIERSUBTITLE (optional) The subtitle of the dossier used on the title page.
This option overrides the value specied in the prole conguration. The option should only be set at job level
and is ignored at document level.
Structuring the dossier
The dossier can be structured by creating a table of contents and a document outline (bookmarks).
By default, the title of each document is taken from its metadata. If the title from the metadata is not suitable, it can
be overriden by using the following option:
DOCUMENTTITLE (optional) The title of the document used for the table of contents, document outline, and
stamp placeholder.
This option can be overridden by the more specic options DOCUMENTOUTLINETITLE, DOCUMENTTOC
TITLE, and DOCUMENTSTAMPTITLE.
If this option is omitted and none of the more specic options is set, one of the following values is used instead
(in order of precedence):
The document title from the document metadata.
The lename of the input document (without the extension).
This option should only be set at document level and cannot be congured in the prole conguration.
Document outline
The document outline, also called bookmarks, provides a way to quickly jump to a specic part of the dossier.
The Dossier workow uses the existing outline tree of the input documents. Optionally, a parent bookmark can be
created for each individual document.
The document outline can be customized for each job using the following options:
TOCOUTLINETITLE (optional) The name of bookmark created for the table of contents (if enabled).
If this option is omitted, one of the following values is used instead (in order of precedence):
The value of the TOCTITLE option.
The title of the table of contents congured in the prole.
This option should only be set at job level and cannot be congured in the prole conguration.
The document outline can be further congured for each individual input document using the following options:
ADDDOCUMENTOUTLINE (optional) Denes whether a bookmark is added to the document outline for the
input document. This option can be set at the job level where it applies to all documents, or at the document
level where it only applies to the specic document.
true (default) A new bookmark is added to the document outline for the input document. Existing bookmarks
of the input document are preserved and added as children to the newly created bookmark.
false The existing bookmarks of the input document are added directly to the top level of the document
outline.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 39/66
This is useful, for example, for the following use cases:
Special input documents that don’t represent a chapter in the output document, e.g. a cover sheet or
table of contents.
Documents that already contain all necessary bookmarks
DOCUMENTOUTLINETITLE (optional) The name of the newly created bookmark (if enabled).
If this option is omitted, one of the following values is used instead (in order of precedence):
The value of the DOCUMENTTITLE option.
The document title from the document metadata.
The lename of the input document (without the extension).
This option should only be set at document level and cannot be congured in the prole conguration.
Table of contents
The automatically generated table of contents provides an overview of the dossier.
The table of contents supports multiple individually congurable nesting levels by using the existing outline tree
of the input documents. Optionally, an parent entry can be generated for each input document.
The table of contents can be customized for each job using the following options:
TOCTITLE (optional) The title of the table of contents.
This option overrides the value specied in the prole conguration. The option should only be set at job level
and is ignored at document level.
The table of contents can be further congured for each individual input document using the following options:
ADDDOCUMENTTOCITEM (optional) Denes whether an entry in the table of content is added for the input
document. This option can be set at the job level where it applies to all documents, or at the document level
where it only applies to the specic document.
true (default) An entry in the table of contents is added for the input document. Existing bookmarks of the
input document are added as subentries.
false The existing bookmarks of the input document are added directly to the top level of the table of
contents.
This is useful, for example, for the following use cases:
Special input documents that don’t represent a chapter in the output document, e.g. a cover sheet or
table of contents.
Documents that already contain all necessary bookmarks
DOCUMENTTOCTITLE (optional) The name of the entry for the document in the table of content (if enabled).
If this option is omitted, one of the following values is used instead (in order of precedence):
The value of the DOCUMENTTITLE option.
The document title from the document metadata.
The lename of the input document (without the extension).
This option should only be set at document level and cannot be congured in the prole conguration.
Stamps
A general overview about stamps can be found in Stamping.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 40/66
Stamps can be further customized for the Dossier workow by using the following document options:
DOCUMENTSTAMPTITLE (optional) The title of the document used for stamping, i.e. for the [input:DOCU
MENT.TITLE] placeholder (if used).
If this option is omitted, one of the following values is used as placeholder value instead (in order of precedence):
The value of the DOCUMENTTITLE option.
The document title from the document metadata.
The lename of the input document (without the extension).
This option should only be set at document level and cannot be congured in the prole conguration.
CUSTOM.‹OPTIONNAME› Options whose name starts with CUSTOM. dene custom placeholder variables that
can be used with the placeholder format [custom:‹OPTIONNAME›].
Example:
The stamp text in the prole is congured as: Reviewed by [custom:REVIEWER]”.
The document option CUSTOM.REVIEWER is set to John Doe”.
The resulting stamp text is: “Reviewed by John Doe”.
Example:
Example using the Shell client pdfclient to create a dossier from a cover page and two chapters. For the second
chapter, the name of the bookmark is explicitly overridden.
C:\Temp>pdfclient -v -w Dossier -do ADD-DOCUMENT-OUTLINE false ^
chapter-1.pdf -do DOCUMENT-OUTLINE-TITLE "Chapter 2: XYZ" chapter-2.pdf out.pdf
Creating job (id job1_5g5fkycbhhe)
Adding file ".\chapter-1.pdf" (id jgvmhpyquh0)
Adding file ".\chapter-2.pdf" (id 4ogify1xd31)
Output: "out.pdf"
- Info: Assembled PDF files 'chapter-1.pdf' and 'chapter-2.pdf' into dossier 'out.pdf'.
5.7 Processing steps
5.7.1 Oce conversion
The conversion of Word, Excel, and PowerPoint documents to PDF requires additional conguration as described
in Oce conguration. The Local Oce installation and Oce for the web service options dier with regard to
parameters, quality and performance. In all cases, embedded documents from Oce documents in Open XML
format (e.g. DOCX, XLSX, PPTX) are extracted in a destructuring step prior to the conversion step. Conversion quality
with respect to the layout and high visual resemblance is the reason why two options from Microsoft are oered for
this processing step. This is especially true, if the document was created with the same version of Microsoft Oce,
which is installed on the server with the Conversion Service. If a document contains macro instructions, these are
disabled before opening the document because of security concerns.
The following dierences can be expected when comparing the two Oce conversion options:
Comparing document quality, irrelevant dierences between the two options can be expected. Slightly dierent
page sizes, font sizes, kerning, and some minor dierences in structure information are observed. The scale of
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 41/66
the dierences is similar to comparing document quality from two dierent local Oce versions, e.g. comparing
the output of Oce 2016 with Oce 2019.
The Oce for the web service has access to more fonts than a standard Windows Server installation has. However,
it is not possible to install a custom font with the Oce for the web service option. If a font is not available, it is
replaced by the Oce font service. Unfortunately, there is no warning to signal this event.
Limits with respect to workbook size and le size are observed with the Oce for the web service for Excel
documents. Unfortunately, these limits are not documented. An Excel document exceeding these limits triggers
a generic error during conversion.
User parameters (e.g. t page width, display comments, number of slides per Page, and more) are not yet avail
able but will only be available for the local Oce installation.
With the Oce for the web service, Word, Excel, and PowerPoint input documents are uploaded to the Microsoft
Azure cloud for conversion.
Password protected documents can only be processed with a local Oce installation.
Some le formats can only be converted with the local Oce installation, e.g. XLTM, PPTM, WordML. This triggers
an unsupported feature error during conversion.
Slight corruptions of the input documents can be repaired with a local Oce installation.
Lower throughput can be expected with the Oce for the web service option.
5.7.2 Stamping
Stamping adds small bits of content to the existing content of the pages of a PDF. You can nd more details regarding
conguration in the documentation panel of the Conversion Service Congurator.
Text stamp
Text stamps can be used to apply a single line of arbitrary text, e.g. to create header or footer lines or to apply a
transparent watermark.
The stamps provide many conguration options such as font, size, color, opacity, and positioning.
Image stamp
Image stamps can be used to apply an image. For example, to apply a company logo.
Barcode stamp
Barcode stamps can be used to apply a 1D or 2D barcode. For example, to apply a stamp with the document ID.
Placeholders
The text of a text stamp or the value of a barcode stamp can be customized using placeholder variables.
The supported placeholder names are documented separately in the congurator for each workow.
The following placeholders are supported by all workows:
[custom:‹OPTIONNAME›] Placeholder variables whose name start with custom: are replaced with the
value of the corresponding document option CUSTOM.‹OPTIONNAME›.
Example:
The stamp text in the prole is congured as: Reviewed by [custom:REVIEWER]”.
The document option CUSTOM.REVIEWER is set to John Doe”.
The resulting stamp text is: “Reviewed by John Doe”.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 42/66
5.7.3 Metadata
The metadata of the resulting PDF can be customized in all workows.
Note: All metadata is applied to the main result document only, and not to
embedded les or any other document contained therein.
All runtime options to further customize the metadata must be set at job level,
not at document level.
Standard properties
The four standard PDF metadata properties that can be customized are “Author”, “Title”, “Subject”, and “Keywords”.
A xed value can be congured in the prole conguration for each of the properties. If no value is congured, the
original value is preserved (if available).
The values can also be provided dynamically using the following job options:
META.AUTHOR The author of the document
META.TITLE The title of the document
META.SUBJECT The subject of the document
META.KEYWORDS Keywords that apply to the document
Extended properties
Extended metadata is dened by the XMP standard and the properties are grouped into schemas.
The Conversion Service provides the possibility to set XMP property values from the Dublin Core schema, XMP Basic
schema, XMP Rights Management schema, and custom extension schemas.
Dublin Core schema
The Dublin Core schema provides a set of commonly used properties.
The values can be congured statically for each prole in the congurator or dynamically using the following job
options:
META.EXT.DC.CONTRIBUTOR Contributors to the resource (other than the autors)
Note: Although the schema technically supports multiple values, only a single
value can be set here.
META.EXT.DC.COVERAGE The extent or scope of the resource.
META.EXT.DC.IDENTIFIER Unique identier of the resource.
META.EXT.DC.RIGHTS Informal rights statement.
META.EXT.DC.SOURCE Unique identier of the work from which this resource was derived.
META.EXT.DC.TYPE A document type. For example, “novel”, “poem”, or “working paper”.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 43/66
Note: Although the schema technically supports multiple values, only a single
value can be set here.
XMP Basic schema
The XMP Basic schema contains properties that provide basic descriptive information.
The values can be congured statically for each prole in the congurator or dynamically using the following job
options:
META.EXT.XMP.NICKNAME A short informal name for the resource.
META.EXT.XMP.LABEL A word or short phrase that identies a document as a member of a userdened
collection. Used to organize documents in a le browser.
Note: This property is not available in PDF/A-1
META.EXT.XMP.RATING A number that indicates a documents status relative to other documents. Used to
organize documents in a le browser. Values are userdened within an applicationdened range.
Note: This property is not available in PDF/A-1
XMP Rights Management schema
This schema includes properties related to rights management.
The values can be congured statically for each prole in the congurator or dynamically using the following job
options:
META.EXT.XMPRIGHTS.CERTIFICATE URL of an online rights management certicate.
META.EXT.XMPRIGHTS.MARKED Indicates that this is a rightsmanaged resource.
META.EXT.XMPRIGHTS.OWNER The legal owner of a resource.
Note: Although the schema technically supports multiple values, only a single
value can be set here.
META.EXT.XMPRIGHTS.USAGETERMS Text instructions on how a resource can be legally used.
META.EXT.XMPRIGHTS.WEBSTATEMENT The location (URL) of a web page describing the owner and/or rights
statement for this resource.
Custom extension schemas
For metadata properties that are not covered by the predened schemas, a custom schema can be dened.
The schema denition must be provided statically in the prole conguration.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 44/66
Note: XMP extension schemas are expected to be stable over time.
Changes to a schema denition should only add new properties and never
change the meaning or type of existing properties.
If incompatible changes are necessary, a new schema should be created instead.
The actual property values can be congured statically or provided dynamically using a placeholder and the follow
ing custom job option:
CUSTOM.‹OPTIONNAME› The value for the placeholder [custom:‹OPTIONNAME›,'Default value'].
If the default value is omitted ([custom:‹OPTIONNAME›]), the job option is required and an error is
signaled if it is missing.
If the default value is left empty ([custom:‹OPTIONNAME›,'']), no value is set if the job option is not
provided.
The single quotes (') around the default value are part of the syntax and must not be omitted.
Advanced usage
For advanced users, the metadata can be customized further using the following job options:
META.XMP A complete XMP packet that replaces the metadata of the input document.
This option can be used to set all kind of metadata, including
Standard properties, Extended properties and
Custom extension schemas.
Any properties set using the standard mechanisms above are applied to this packet and any values set using the
standard mechanisms take precedence over the values provided by this XMP packet.
Note: When creating a PDF/A document, the XMP metadata must contain a
full schema denition for all custom extension schemas. Such a denition can be
provided
directly in the XMP packet.
using Custom extension schemas conguration. In this case the "Force Den
ition" setting in the schema should be enabled.
5.8 Supported le formats
Each workow supports a specic subset of the following le formats, which is documented in the description of
the workow itself.
Document formats
PDF 1.x, 2.0
PDF/A-1, PDF/A-2, PDF/A-3
Other formats
Email: EML, MSG (without encryption)
Word: DOC, DOT, DOCX, DOCM, DOTX, DOTM, RTF, XML (WordprocessingML 2003)
Excel: XLS, XLT, XLSX, XLSM, XLTX, XLTM, XML (SpreadsheetML 2003)
PowerPoint: PPT, PPS, PPTX, PPTM, PPSX, PPSM
OpenOce
9
: ODT, ODS, ODP
9
PDF conversion of OpenDocument Format depends on the rendering in Microsoft Word, Excel or PowerPoint, in particular visual dierences may
occur with tables and tabs. The visual dierences caused by the rendering of shapes are usually not acceptable.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 45/66
CSV
HTML, HTM (prepared for archiving
10
)
TXT
XML
11
ZIP (without password protection)
Image formats
JPEG, JPEG2000
TIFF
BMP
GIF
JBIG2
PNG
HEIC
HEIF
Where applicable, the Conversion Service adheres to the following standards:
ISO 32000-1 (PDF 1.7)
ISO 32000-2 (PDF 2.0)
ISO 19005-1 (PDF/A-1)
ISO 19005-2 (PDF/A-2)
ISO 19005-3 (PDF/A-3)
10
HTML documents need to be selfcontained (layout information and images are either inline or available on the web) and suited for portrait
page layout. Javascript content is disabled during processing.
11
Layout information and images need to be available on the web.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 46/66
6 Connectors / Integration
The Conversion Service can be integrated into an existing system by combining suitable input and output connec
tors.
6.1 Input connectors
Input connectors can receive or fetch conversion jobs from various sources.
6.1.1 Watched Folder
The Watched Folder connector converts all les that are placed into a congurable input directory. After the conver
sion is nished, the les are deleted.
Note: This connector does not work well with Windows NFS share.
If the watched folder is shared to be accessible by other computers using the NFS
protocol, the service starts to process les before they are copied completely. This
is due to a limitation in the Windows Server NFS implementation.
Possible solutions:
Use the SMB protocol instead of NFS
Use a twostage process to place the le in the watched folder:
1. Copy the le to a temporary directory on the NFS share.
2. From there, move the le to the watched folder.
The following additional conguration options are available:
Files in subdirectories are also converted.
Companion le
If enabled, the service expects a companion le for each input le, which has the same le name with a dierent
(congurable) extension.
The companion le must be XML, but can be structured arbitrarily.
A list of variables can be dened with a corresponding XPath expression that is used to extract the value of the
variable from the XML.
Note: The XPath expressions always have to evaluate to a string.
Variables are used to pass through information to the output connector. They can be used in certain conguration
values of some output connectors in the form of [input:‹variable name›]. For example, as argument in the
Execute Command connector or as placeholders in the URL setting of the REST Output connector.
Example: Companion le conguration
© PDF Tools AG -- Premium PDF Technology Conversion Service, December 21, 2022 | 47/66
Key Value
myrstvariable string(/root/myelement/@myattribute)
mysecondvariable string(/root/myotherelement[@name="interesting"])
Using the following companion le:
<?xml version="1.0"?>
<myroot>
<myelement myattribute="my value"/>
<myotherelement name="not interesting">not interesting value</myotherelement>
<myotherelement name="interesting">my other value</myotherelement>
</myroot>
results in the following variable substituions usable in the output connectors:
[input:myfirstvariable] my value
[input:mysecondvariable] my other value
6.1.2 REST Input (Plain HTTP)
The REST Input connector converts all les that are sent to a URL. The URL is customizable by setting the connection
ID during conguration.
Request
The connector can handle two request formats:
Multiple les can be sent as multipart/formdata body. All les are merged into the same job.
A single le can be sent as “raw” request body. The filename query parameter can be set in the URL to specify
the name of the le. Otherwise, a default name is used.
All URL query parameters are available as variables that can be used to congure certain output connectors, e.g. as
placeholders in URL setting of the REST Output connector.
Response
The connector can be congured to provide one of three dierent response types:
The call returns with an 202 Accepted HTTP status immediately. The result is handled exclusively by the con
gured output connectors.
The call blocks until the job has nished and the rst result le is returned as response body.
The call blocks until the job has nished and all result les are returned as multipart/formdata response.
6.1.3 REST Input (JSON)
REST Input (JSON) connector uses JSON as a structured format for request and response.
Request
This connector allows to specify a job in a structured format (JSON). The les to be converted can either be referenced
by URL or included directly in the job description.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 48/66
{
"name": "Job name",
"options": [
{ "name": "‹option name›", "value": "‹option value›" }
],
"variables": {
"‹variable name›": "‹variable value›"
},
"data": [
// First file referenced by URL
{ "url": "http://example.com/path/to/file.jpg" },
// Second file inline
{ "fileName": "file.jpg", "content": "‹base64 encoded file›" },
// Third file with options
{ "fileName": "file2.jpg", "content": "‹base64 encoded file›",
"options": [ { "name": "DOC.PASSWORD", "value": "mypassword" } ] }
]
}
Options and variables
Options are used to customize the processing of the documents in the workow itself. The available options depend
on the selected workow.
Variables are used to pass through information to the output connector. They can be used in certain conguration
values of some output connectors in the form of [input:‹variable name›]. For example, as argument in the
Execute Command connector or as placeholders in the URL setting of the REST Output connector.
Response
The connector can be congured to provide one of two dierent response types:
The call returns with an 202 Accepted HTTP status immediately. The result is handled exclusively by the con
gured output connectors.
The call blocks until the job has nished and all result les are returned as a structured JSON response.
{
"data": [
{ "fileName": "file.pdf", "content": "‹base64 encoded file›" },
{ "fileName": "report.txt", "content": "‹base64 encoded file›" }
]
}
6.1.4 Watched Mailbox (IMAP)
This connector converts all emails that are placed into a congurable mailbox on an IMAP server. After the conver
sion is nished, the mails are deleted.
The following additional conguration options are available:
Option to only process the attachments instead of the entire mail.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 49/66
Variables
The following variables are set by this input connector:
From The sender of the email, including the display name if available.
Examples:
Subject The subject of the email.
6.1.5 Watched Mailbox (Exchange Online)
This connector converts all emails that are placed into a congurable mailbox on an Microsoft Exchange Online
server. After the conversion is nished, the mails are deleted.
When selecting a mailbox, the connector asks for access to the emails on the specied account. The user must
consent to this. Otherwise, the connector does not work.
The following additional conguration options are available:
Option to only process the attachments instead of the entire mail.
Variables
The following variables are set by this input connector:
From The sender of the email, including the display name if available.
Examples:
Subject The subject of the email.
6.2 Output connectors
Output connectors feed the output back into an existing system.
6.2.1 Output Folder
The Output Folder output connector copies les into a congurable output directory.
The following additional conguration options are available:
The connector can either store the unchanged input les, or the converted result les.
Optionally, the folder structure of the input folder can be replicated inside the output folder.
If there is a lename conict with an existing le, the le can either be renamed or overwrite the existing le.
6.2.2 Create Text File
This connector creates a text le with additional information in a congurable output directory.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 50/66
The content of the le is customizable and may contain placeholders:
[output:ERROR]: The error message.
[output:WARNINGS]: The warnings that happened during processing. Each warning on a separate line.
[input:NAME]: The name of the input job.
[input:‹variable name›]: If the congured input connector supports variables, those can also be used
as placeholders.
The following additional conguration options are available:
Optionally, the folder structure of the input folder can be replicated inside the output folder.
If there is a lename conict with an existing le, the le can either be renamed or overwrite the existing le.
6.2.3 REST Output
The REST Output connector posts les as a multipart/formdata request to a congurable output URL.
The URL may contain placeholder variables coming from the input connector. For example:
http://example.com/path/on/server/?id=[input:id]
[input:url]
http://example.com/[input:serverpath]
The following additional conguration options are available:
The connector can either post the unchanged input les, or the converted result les.
Additional form elds can be congured, where the values may contain placeholder values coming from the
input connector.
The value of the HTTP Accept header can be congured freely.
Authentication
The connector supports username/passwordbased authentication schemes such as basic, digest, NTLM, and Ker
beros.
The server must challenge unauthenticated requests properly with a 401 response. The connector preauthenti
cates subsequent requests to the same URL, i.e. send the necessary HTTP header without waiting to be challenged
by the server.
6.2.4 Execute Command
The Execute Command output connector executes a congurable command with arguments on les. In the argu
ments string, either the [output:FILES] placeholder can be used to pass a list of all les quoted and separated
by a white space, or the [output:FILE_‹i›] placeholder to pass the i-th le. If the congured input connector
supports variables, those can also be used as [input:‹variable name›].
The following additional conguration options are available:
The connector can either operate on the unchanged input les, or the converted result les.
6.2.5 Output Mailbox (IMAP)
This connector copies les to a congurable mailbox on an IMAP server.
If the original les come from a Watched Mailbox input connector, the original email is copied as is. In all other cases,
a new empty email is created with the les as attachment.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 51/66
6.2.6 Output Mailbox (Exchange Online)
This connector copies les to a congurable mailbox on a Microsoft Exchange Online server.
If the original les come from a Watched Mailbox input connector, the original email is copied as is. In all other cases,
a new empty email is created with the les as attachment.
6.2.7 Send Email (SMTP)
This connector sends an email to a congurable recipient.
Email properties such as TO, CC, BCC, subject, and body text can be congured freely and may contain variable
placeholders to include dynamic data. For example:
Information about the processing such as error message, warnings or events.
Variables set in the request of the REST Input (JSON) connector.
Query parameters from the REST Input (Plain HTTP) connector.
The email can be congured to contain either the results or the original les as attachments.
6.2.8 Send Email (Exchange Online)
This connector sends an email to a congurable recipient by using a Microsoft Exchange Online account.
Email properties such as TO, CC, BCC, subject, and body text can be congured freely and may contain variable
placeholders to include dynamic data. For example:
Information about the processing such as error message, warnings or events.
Variables set in the request of the REST Input (JSON) connector.
Query parameters from the REST Input (Plain HTTP) connector.
The email can be congured to contain either the results or the original les as attachments.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 52/66
7 Troubleshooting
7.1 Error codes
If an error occurs during processing in a workow, an error code with an explanatory message is returned.
The following are common error codes:
Internal The Conversion Service is not operational because of an internal issue, e.g. an incomplete installation.
A detailed description of the problem is written to the service log le with severity
Error. The service administra
tor should be notied of the problem and submit a support request (see Submitting a support request).
No specic error message is return because the issue is not related to the client or the request. This behavior can
be changed in the service conguration. However, since the error is related to the services conguration and
the detailed description is designed to help the administrator resolve the problem quickly, the message might
reveal internal conguration settings that you may not want to disclose to clients. Therefore, this is generally
only recommended during installation and testing of the Conversion Service.
Configuration The Conversion Service is not operational because of a conguration issue, e.g. an invalid or an
incompatible setting.
A detailed description of the problem is written to the service log le with severity
Error. The service administra
tor should resolve the problem with the help of the Congurator.
Generic A generic error occurred.
UnsupportedFormat The format of the input data is not supported.
UnsupportedFeature An unsupported feature was requested. This may be a feature of the input data or one
requested using options.
Option An error occurred that is related to job or document options passed by the client. For example:
A required option is missing.
An option has an invalid or unsupported value.
Canceled The job has been canceled by the user.
Timeout The job has been canceled because of a processing timeout.
Password The data cannot be processed because of a missing or invalid password. Retry the conversion and
specify the missing password using the document option DOC.PASSWORD. This option can be added multiple
times to try several passwords for a document or to specify passwords for multiple les, e.g. attachments or
embedded les.
Conformance There is a problem with the conformance of the input data. For example:
The input datas conformance is not supported.
The input data cannot be converted to meet the conformance required by the workow and prole.
Corrupt Data cannot be processed because it is corrupt.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 53/66
7.2 Oce conversion problems
7.2.1 Conguration problems
This section contains some of the warnings and errors that can be encountered inside the Congurator during the
Oce conguration and possible solutions.
Solution The conversion of Word, Excel, and PowerPoint documents to PDF requires an installation of Microsoft
Oce on the same server where the Conversion Service is installed. Install a compatible Microsoft Oce version
(see Oce conversion).
Description A parallel operation of the Conversion Service and the 3-Heights® Document Converter on the same
server is not recommended because the Oce congurations of the two services interfere and break each other.
Solution This error usually occurs when the domain of the domain user is not recognized. Check the spelling and
specify the domain by writing the username in SAM or UPN format, e.g. YourDomain
YourDomainUser or [email protected], respectively.
Solution This error usually signals a connection problem between the server and the domain controller. Check
that the server where the Conversion Service is installed is a member of the domain you are trying to access.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 54/66
Solution The message Office configuration problem can occur when a setting related to the Oce
Conguration was changed after the Oce User was congured. Try to congure the Oce user again. If the
problem persists or another error occurs, proceed as described in Submitting a support request.
7.2.2 Specic errors related to Word, Excel, and PowerPoint documents
Generic: This error can occur if the document is corrupt or a pop-up blocks the conversion process. This
error occurs when no progress in the conversion of the Oce document was observed for a certain amount of
time. If the error was triggered by a pop-up dialog box that is blocking the conversion process, the problem can
sometimes be resolved by opening and editing the document manually.
Generic: The application WINWORD exceeded the memory limit of 2048 MB.This error indicates that, during
the conversion of a Microsoft Word document (e.g. DOCX), the application process (Microsoft Word) required
more than 2048 MB of memory during conversion. This limit is a precaution set by the Conversion Service to
support the overall stability of the conversion process. For further assistance, follow the steps in Submitting a
support request and include the input le.
7.3 Service log
The Conversion Service writes verbose information to a log le. This allows the administrator to monitor the service’s
operation and troubleshoot problems after an event.
The location of the standard log les can be congured using the
Service conguration. The name of the log les
is ConversionService-Service.log. After each day, the old log le is compressed and moved to the le
ConversionService-Service-yyyy-mm-dd.log.zip. A maximum of 90 archived log les are kept.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 55/66
Log entry properties
In addition to standard properties, log entries contain the following:
Level The severity of the message. The following severities are common:
Fatal Severe error. See Error below.
Error Error that prevents the service from operating, e.g. because of an incomplete installation or invalid
conguration. Clients sending processing requests to the service receive an error code Internal or Congu
ration.
It is recommended that the service administrator be notied whenever a message of severity Error or
higher occurs. This can be achieved by monitoring the standard service log le or creating a
Custom log.
Warn Errors that are not critical and do not prevent the service from operating. Even though no immediate
action by the service administrator is required, it is advisable to review warnings periodically and decide if
an action is required.
Info Informational events are useful to monitor the service’s operation.
Debug Debug and tracing messages are strictly for development purposes and analysis by the Pdftools Sup
port team. During productive use of the service, messages of this level should be disabled for performance
reasons.
Trace See Debug above.
Process name The name or type of the process in which the log event occurred.
Message The log message.
Exception Critical log messages often have an exception associated that contains more detailed information on
the message’s cause.
Job ID Using the job id all messages of a particular processing job can be ltered for analysis.
Task ID This is an internal ID used by the service, which is useful for analysis by Pdftools Support team.
Remote IP The IP address of the remote host (client). This is meaningful only for messages that are associated
with a request at the REST API.
Reading the log le
The standard log le is in CSV format, which can be opened in several applications. Many of them oer a tabular
view of CSV les, highlighting by log message severity, and ltering.
Custom log
For logging, the Conversion Service uses NLog, a very exible logging platform. This allows to create additional log
outputs, e.g. to write to a database or the Windows Event Log.
Layout renderers
The following additional layout renderers are available in the Conversion Service:
© PDF Tools AG -- Premium PDF Technology Conversion Service, December 21, 2022 | 56/66
${gdc:processName} The Process name.
${mdlc:jobId} The Job ID.
${mdlc:taskId} The Task ID.
${mdlc:remote-ip} The Remote IP.
Examples
To add a new log output, a le NLog.config can be created in the directory bin of the installation directory. For
more information, see NLog documentation.
Note: A new logging conguration can be tested by disabling the Conversion
Services license in the license manager. When the service is restarted and a job
scheduled, an error is logged.
More information on logging conguration issues can be obtained by activating
internal logging:
<nlog internalLogLevel="Info"
internalLogFile="c:\path\to\nloglog.txt"
...
Example: A NLog.config that generates a log le C:\path\to\mylog.log.
<?xml version="1.0" encoding="utf-8"?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target name="mylog" xsi:type="File" fileName="C:/path/to/mylog.log">
<layout xsi:type="CsvLayout" delimiter="Comma" withHeader="true">
<column name="time" layout="${longdate}" />
<column name="level" layout="${level:upperCase=true}"/>
<column name="processName" layout="${gdc:processName}" />
<column name="message" layout="${replace-newlines:${message}}" />
<column name="exception" layout="${replace-newlines:${exception:format=ShortType,Message
:innerFormat=ShortType,Message:maxInnerExceptionLevel=1}}"/>
<column name="jobId" layout="${mdlc:job-id}"/>
<column name="taskId" layout="${mdlc:task-id}"/>
<column name="remoteIp" layout="${mdlc:remote-ip}"/>
</layout>
</target>
</targets>
<rules>
<logger name="*" minlevel="Info" writeTo="mylog" />
</rules>
</nlog>
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 57/66
Example: A NLog.config that writes critical messages to the Windows Event Log
<?xml version="1.0" encoding="utf-8"?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<extensions>
<add assembly="NLog.WindowsEventLog"/>
</extensions>
<targets>
<target name="eventlog" xsi:type="EventLog"
source="ConversionService"
layout="${message}${newline}Process name: ${gdc:processName}${newline}Job ID:
${mdlc:job-id}${newline}Task ID: ${mdlc:task-id}${newline}${exception:format=ToString}"
/>
</targets>
<rules>
<logger name="*" minlevel="Error" writeTo="eventlog" />
</rules>
</nlog>
Example: A NLog.config that sends critical messages by email
<?xml version="1.0" encoding="utf-8"?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<extensions>
<add assembly="NLog.MailKit"/>
</extensions>
<targets>
<target name="maillog" xsi:type="Mail"
subject="Conversion Service Error: ${message}"
body="${message}${newline}Process name: ${gdc:processName}${newline}Job ID:
${mdlc:job-id}${newline}Task ID: ${mdlc:task-id}${newline}${exception:format=ToString}"
smtpUserName="user"
smtpPassword="password"
smtpServer="smtp.example.com"
smtpPort="587"
smtpAuthentication="Basic"
secureSocketOption="StartTls"
/>
</targets>
<rules>
<logger name="*" minlevel="Error" writeTo="maillog" />
</rules>
</nlog>
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 58/66
7.4 Submitting a support request
To submit a support request, use the support request form on www.pdftools.com. Depending on the type of issue,
dierent data should be provided in addition to the problem description.
General issues
Use the Conversion Service Congurator GUI to gather the necessary les for a support request. In the Support
Request tab, click on Create ZIP and attach the resulting ZIP le to your support request.
Support Request tab of the Conversion Service Congurator
The resulting le contains conguration and log les. No sensitive information is included: no input le or passwords
from the conguration or client options are included.
Issue related to a particular job
Please submit the following data:
Data described above in General issues.
Input les and options used for the conversion.
The jobId of the conversion.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 59/66
8 Version history
8.1 Version 4
Changes in Version 4
Installation and Deployment
Changed default installation directory on Windows to C:\Program Files\Pdftools\Conversion
Service. [v4.0]
Changed default program data directory on Windows to C:\ProgramData\Pdftools\Conversion
Service. [v4.0]
Common functionality
New settings for email, HTML, CSV and XML conversion to control resizing and optimal tting of content in case
of content overow. [v4.0]
Oce Documents
New settings for Excel conversion to control resizing and optimal tting of content in case of content overow.
[v4.0]
8.2 Version 3
Changes in Version 3
REST interface
New query parameter "url" on "addData" POST request to load a le directly from a webserver. [v3.4]
New method "storeJobResultData" to send the result le directly to a webserver via HTTP PUT/POST request.
[v3.4]
New property "Status" in result of method "getJobResult" to get Success/Warning/Error status of job result in
stead of using legacy "Success" property. [v3.9]
Installation and deployment
New Windows Server 2022 is supported. [v3.3]
New Oce 2021 (64 Bit) is supported. [v3.3]
New dependency on Microsoft .NET Desktop Runtime 6.0 (Windows, x64) and Microsoft ASP.NET Core Runtime
6.0 (Windows, x64). [v3.7]
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 60/66
Workows
New workow "Archive PDF/A-1". [v3.3]
"Archive PDF/A-2" workow
New convert mode conguration for child documents (attachments) for detailed conguration of which docu
ments to convert. [v3.2]
New support to convert HTML, CSV and XML child documents (attachments). Note that this is disabled by de
fault. [v3.2]
New collect mode conguration. This oers a detailed conguration of how to convert documents that have
child documents (attachments), specically how to combine the converted documents and how to handle errors
when processing child documents. This supersedes the conguration options "Document Collection Mode" and
"Child Error Handling". [v3.2]
New stamping functionality to add singleline text content to the converted documents. [v3.4]
New stamping functionality to add an image or 1D/2D barcode to the converted documents. [v3.11]
Archive PDF/A-3 workow
New convert mode settings "Skip" and "Skip with Warning", which allows to choose whether an informational
event or a warning is generated when skipping (removing) a child document. The new default is "Skip with
Warning". When updating an installation, the proles’ behavior is not changed. [v3.2]
New stamping functionality to add singleline text content to the converted documents. [v3.4]
New stamping functionality to add an image or 1D/2D barcode to the converted documents. [v3.11]
Conversion workow
New convert mode settings "Skip" and "Skip with Warning", which allows to choose whether an informational
event or a warning is generated when skipping (removing) a child document. The new default is "Skip with
Warning". When updating an installation, the proles’ behavior is not changed. [v3.2]
New stamping functionality to add singleline text content to the converted documents. [v3.4]
New stamping functionality to add an image or 1D/2D barcode to the converted documents. [v3.11]
Dossier workow
New prole setting to control the horizontal alignment (Left, Center, Right) of the title of the table of contents.
[v3.2]
Changed the document outline to contain a bookmark for the table of contents. [v3.2]
New job option TOC-OUTLINE-TITLE to set the title of the bookmark for the table of content. [v3.2]
New prole setting for automatic numbering of the entries in the table of contents. [v3.2]
New prole setting to apply stamps to the pages of the table of contents. [v3.2]
New optional preprocessing step to convert input documents to PDF. [v3.2]
New support for custom placeholder variables in Text Stamps. [v3.4]
New stamping functionality to add an image or 1D/2D barcode to the converted documents. [v3.11]
Common functionality
New conversion of CSV, HTML (prepared for archiving) and XML documents. [v3.1]
New conversion of WordprocessingML 2003 (.xml) and SpreadsheetML 2003 (.xml) documents via Microsoft
Word and Microsoft Excel, respectively. [v3.3]
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 61/66
Changed newly created bookmarks to be closed instead of open by default. [v3.3]
New conversion of signed Emails (s/mime). [v3.4]
New conversion of OpenDocument Text (.odt), Spreadsheet (.ods) and Presentation (.odp) via Microsoft Word,
Excel and PowerPoint, respectively. [v3.4]
New prole settings and options in all workows to add metadata to the documents. [v3.5]
Improved performance especially for small les. [v3.7]
Improved robustness in low memory conditions on Windows. [v3.8]
New option to convert Word, Excel, PowerPoint documents through the Azure cloud with the Microsoft Oce
for the web service. [v3.10]
Congurator
Changed export and import of proles to also include the workows activation state. [v3.3]
Changed name of "Proles" tab to "Workows & Proles". [v3.1]
New possibility to activate and deactivate workows in the "Workows & Proles" tab. [v3.1]
GUI client
Improved UI design to provide a clear overview of the job progress and results. [v3.1]
New Oce addins for Word, Outlook, Excel and PowerPoint. [v3.3]
Integration/Connections
New input connector "Watched Mailbox (IMAP)" to automatically convert emails or les sent to a congurable
mailbox on an IMAP server. [v3.2]
New input connector "Watched Mailbox (Exchange Online)" to automatically convert emails or les sent to a
congurable mailbox on a Microsoft Exchange Online server. [v3.5]
New output connector "Output Mailbox (IMAP)" to copy output les to a mailbox without actually sending an
email. [v3.4]
New output connector "Output Mailbox (Exchange Online)" to copy output les to a mailbox without actually
sending an email. [v3.5]
New output connector "Send Email (SMTP)" to send an email to a congurable or dynamic email address, con
taining the results or original les [v3.4] and/or additional information (error message, warnings) [v3.6].
New output connector "Send Email (Exchange Online)" to send an email to a congurable or dynamic email
address, containing the results or original les [v3.4] and/or additional information (error message, warnings)
[v3.6].
New output connector "Create Text File" to create a text le with additional information (error message, warn
ings) in an output folder. [v3.6]
Watched Folder connector
New support for companion les to pass information as variables directly to the output connectors. [v3.10]
REST Input (JSON) connector
New key "options" in JSON format to pass joblevel and documentlevel options to the workow. [v3.1]
New key "variables" in JSON format to pass information directly to the output connectors. [v3.1]
Changed default request body size limit from unlimited to 100MB. [v3.1]
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 62/66
REST Output connector
New support for placeholder variables in URL setting. [v3.1]
New support for sending form elds in addition to the les. [v3.10]
New support for username/password based authentication. [v3.10]
New support for setting the Accept header. [v3.10]
8.3 Version 2
Changes in Version 2
REST interface
New support for CrossOrigin Requests (CORS). By default, requests from all origins are allowed. [v2.3]
Changed value of property type of problem details object (RFC 7807) to http://www.pdftools.com/service/rest/
errors/‹type›. [v2.4]
New Conguration and Timeout job result error codes. [v2.6]
New support for HTTPS service endpoint. [v2.9]
Installation and deployment
New Docker image "pdftoolsag/conversionservice" of the Conversion Service. [v2.2]
Changed license key format to 4H-VX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. License keys with the
format 1-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX are no longer supported. [v2.2]
New dependency on Microsoft .NET Desktop Runtime 5.0 (Windows, x64) and Microsoft ASP.NET Core Runtime
5.0 (Windows, x64). [v2.9]
New client installer (msi). [v2.10]
Workows
New workow "Archive PDF/A-3" similar to "Archive PDF/A-2" but with support for nonPDF/A attachments.
[v2.5]
New workow "Invoice" for creating PDF/A-3 conformant invoices with attachments. [v2.5]
New workow "Dossier" for merging PDF documents into a dossier while applying headers, footers or water
marks [v2.8] and support for a title page and table of contents. [v2.11]
New workow "Conversion" provides document conversions from multiple le formats to PDF with an emphasis
on performance and document size. [v2.8]
Archive PDF/A-2 workow
New prole option "Flatten annotations" in section "Document Optimization". [v2.3]
New prole option "Child error handling". [v2.7]
New prole option for emails "Use subject as lename". [v2.8]
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 63/66
Common functionality
New conversion of HEIC and HEIF images. [v2.11]
Improved email conversion: Attachments of emails where parts of the attachment are removed during the
conversion process (e.g. a not convertible part of a ZIP le) are now listed as "Partially removed" inside the email
header. [v2.7]
New prole setting "Task timeout" for all workows, to avoid the situation where a single longrunning process
ing step can lead to timeouts in other unrelated jobs.
Improved and harmonized messages of warnings and events.
Oce documents
New conversion of RTF documents. [v2.2]
Improved conversion of Word, Excel, and PowerPoint: These types of documents are now converted directly
within the Conversion Service through Microsoft Oce applications. A parallel installation of the 3-Heights®
Document Converter is no longer required and no longer supported for this purpose. [v2.1]
Improved conversion of DOCX documents: Certain corrupt documents are now repaired automatically. [v2.6]
Improved conversion of passwordprotected DOCX documents: Embedded les from these documents can
now be processed. [v2.6]
Digital signatures
New signature types "Windows - PAdES-B-B" and "PKCS#11 - PAdES-B-B" to create basic signatures that require
no TSA nor revocation information. [v2.5]
Improved processing of signed PDF documents: If signatures need to be removed, their visual appearance is
preserved. [v2.10]
OCR
Improved OCR recognition task scheduling: Each page is now processed in a separate task, which signicantly
reduces the amount of time a worker is blocked by OCR tasks and thus improves the latency of other high priority
tasks. [v2.4]
Improved OCR engine conguration: Specic conguration for each engine type. [v2.4]
New support for loadbalancing to multiple instances of 3-Heights® OCR Service. [v2.6]
PDF to PDF/A conversion
Improved conversion event messages to be more specic. [v2.11]
Improved detection of optimal target conformance level where the highest level is chosen that can be achieved
with a perfect conversion. [v2.11]
New warning types "Annotation removed" and "Multimedia removed" for events that were previously reported
as "Action removed". [v2.11]
Congurator
Improved UI design of the proles tab to provide a clear overview of proles and their related workow. [v2.7]
New tab "Integration" for conguring connections to allow easy integration of the Conversion Service into ex
isting systems. [v2.4]
New tab "Health & Activity" for monitoring the state and recent activity of the service. [v2.10]
New tab "Statistics" to report and analyze the service’s conversion history. [v2.11]
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 64/66
New possibility to copy proles and connections. [v2.11]
Improved UI validation of service, proles and connection conguration to provide greater clarity of errors and
warnings. [v2.12]
Integration/Connections
New service "Conversion Service Connections" that allows combining input sources with output for easy inte
gration into existing systems. [v2.4]
Removed service "Conversion Service Folders" (superseded by the new service "Conversion Service Connec
tions") [v2.4]
Input connectors
New REST input connector for plain HTTP requests. [v2.9]
New REST input connector for structured JSON requests. [v2.10]
Output connectors
New REST output connector. [v2.9]
New Command Excecute output connector. [v2.9]
Various
Changed trademark to registered trademark ®. [v2.10]
8.4 Version 1
Changes in Version 1
Changed minimum required version of 3-Heights® Document Converter Enterprise Edition to version 6.5.
Changed port to connect to 3-Heights® Document Converter Enterprise Edition to 7983.
New requirement of Microsoft Windows Desktop Runtime 3.1 (Windows, x64) and Microsoft ASP.NET Core Run
time 3.1 (Windows, x64). This is in addition to the .NET Framework 4.7.
Changes to the REST API
Changed to return RFC 7807 Problem object instead of proprietary error object.
Changed JSON serialization of enum values from integer to string.
Changed XML objects to use no namespace in accordance withopenapi.yaml.
New codes in the service status response.
New GUI Client for manual processing.
New view in the 4-Heights® Conversion Service Congurator GUI for submitting a support request.
New prole option for job priority in workow "Archive PDF/A2".
New prole conguration (Digital Signature) available in the congurator GUI.
New attachment information is shown as part of the email header.
New possibility to import/export prole congurations.
New license dependent view in the Conversion Service Congurator GUI for installing plugins.
New document content overow into the margin when converting emails is signaled with ContentOver
owWarning.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 65/66
New service setting for proxy conguration.
New documentation panel in the Conversion Service Congurator GUI.
© PDF Tools AG Premium PDF Technology Conversion Service, December 21, 2022 | 66/66
9 Licensing, copyright, and contact
Pdftools is a world leader in PDF (Portable Document Format) software, delivering reliable PDF products to interna
tional customers in all market segments.
Pdftools provides serverbased software products designed specically for developers, integrators, consultants, cus
tomizing specialists, and IT departments. Thousands of companies worldwide use our products directly and hun
dreds of thousands of users benet from the technology indirectly via a global network of OEM partners. The tools
can be easily embedded into application programs and are available for a multitude of operating system platforms.
Licensing and copyright The Conversion Service is copyrighted. This user manual is also copyright protected; It
may be copied and given away provided that it remains unchanged including the copyright notice.
Contact
PDF Tools AG
BrownBoveriStrasse 5
8050 Zürich
Switzerland
https://www.pdf-tools.com
pdfsales@pdftools.com