Converting print output to text using the Miraplacid Text Driver SDK involves routing standard Windows print jobs to a virtual printer that intercepts the print stream and translates layout information into plain text or formatted text. System Overview
The Miraplacid Text Driver SDK installs a virtual printer driver on the Windows system. When an application sends a document to this printer, the SDK’s core rendering plug-ins process the layout data, extract the characters, and route the text through transport plug-ins (such as saving to a file, clipboard, or FTP). Step-by-Step Implementation Guide
[ Application ] –(Print Job)–> [ Miraplacid Virtual Printer ] –> [ COM Object / Script ] –> [ Text Output (.txt/.xml) ] 1. Build and Initialize the Custom Driver Package
To use the SDK within a custom deployment, you must build your tailored driver installer. Launch setupmaker.exe from your SDK installation folder.
Configure options like your customized printer name, driver parameters, and company rebranding. Click Ok to generate a custom mtd.dll deployment file.
Run your deployment project or standard MTD_SE_Setup.exe to register the virtual printer driver onto the machine. 2. Connect via COM Interface
The driver exposes a Component Object Model (COM) interface, allowing automation via any COM-compliant environment (such as C#, C++, VBScript, or PowerShell).
To reference the software component, instantiate the Miraplacid.TextDriver object: VBScript: Set obj = CreateObject(“Miraplacid.TextDriver”) Use code with caution. JScript / JavaScript: javascript var obj = WScript.CreateObject(“Miraplacid.TextDriver”); Use code with caution.
C# / .NET:Add a reference to the Miraplacid Text Driver Type Library in your project settings to enable early binding. 3. Configure the Output Transport and Formatting
You must explicitly tell the core engine where to route the intercepted text and how to format it. This is done by modifying job and system properties via the COM object.
Extract Text from Documents (Virtual Text Printer Driver) – Miraplacid