Limited time promo

This help topic applies only to novaPDF. If you don't have it yet, you must download it first.

Download now Buy licenses
Adrian (Softland)
Mar 22, 2022
novaPDF 11.x
We strive to keep our help as accurate as possible. If you notice any inconsistencies or outdated info please let us know.
The AddNovaPrinter method adds a temporary novaPDF printer in the system
HRESULT AddNovaPrinter(
    [in] LPCWSTR p_wsPrinterName,
    [in, string] LPCWSTR p_wsOEMID,
    [in, string] LPCWSTR p_wsServicePort,
    [in, string] LPCWSTR 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 "nPdfSdk10_Softland"
p_wsServicePort
    [in] novaPDF Server service port number,
p_wsLicenseKey
    [in] license key

Return values:

S_OK on success or COM error code
NV_NOT_A_NOVAPDF_PRINTER - invalid OEMID
NV_INVALID_PRINTER_NAME - a printer with the specified name cannot be added

Remarks:

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.