The AddNovaPrinter2 method adds a temporary novaPDF printer in the system
HRESULT AddNovaPrinter2(
[in] BSTR p_wsPrinterName,
[in, string] BSTR p_wsOEMID,
[in, string] BSTR p_wsServicePort,
[in, string] B STR p_wsLicenseKey
);
Parameters:
p_wsPrinterName
[in] pointer to a null terminated Unicode string containing the name of the printer.
p_wsOEMID
[in] custom OEMID; for trial is "nPdfSdk11_Softland"
p_wsServicePort
[in] novaPDF Server service port number
p_wsLicenseKey
[in] license key
Return values:
S_OK
on success or COM error codeNV_NOT_A_NOVAPDF_PRINTER
- invalid OEMIDNV_INVALID_PRINTER_NAME
- a printer with the specified name cannot be addedRemarks:
This method must be called before printing documents and setting novaPDF options. It will add a printer in the system with the specified name. This printer will be available until DeleteNovaPrinter is called with the same printer name. Use this method if you wish to work with temporary printers.