generate a PDF dodcument

The customer uses the tool Discac PDF creator.

He wants to generate an archive file with the sales order document number
Navision passes the name of the document to PDFCreator (ex: “Order Confirmation”). This is the name of the deferral.
How can I generate a PDF document with the number printed?