Attempts to connect using the default instance from DsPdf.instance if available.
If no default instance exists, creates a new DsPdf instance and attempts to connect.
Returns Promise<boolean>
A promise that resolves to true if the connection was
successfully established, false otherwise.
Throws
If the connection fails due to underlying module errors.
Example
// Connect to DsPdf module constisConnected = awaitconnectDsPdf(); if (isConnected) { console.log('Successfully connected to DsPdf'); } else { console.error('Failed to connect to DsPdf'); }
Establishes a connection to the DsPdf module.
Attempts to connect using the default instance from DsPdf.instance if available. If no default instance exists, creates a new DsPdf instance and attempts to connect.