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 29, 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 CopyProfile2 method copies an existing profile to a new profile.
HRESULT CopyProfile2(
    [in, string] BSTR p_wsNewProfileName,
    [in] BOOL p_bPublicProfile,
    [in, string] BSTR p_wsOldProfileId,
    [out] LPWSTR* p_pwsNewProfileId
);

Parameters:

p_wsNewProfileName
    [in] name of the new profile

p_bPublicProfile
    [in] Flag if the profile is a public or a private profile

p_wsOldProfileId
    [in] id for the profile to be copied

p_pwsNewProfileId
    [out] the new profile id

Return values:

S_OK on success or COM error code
NV_NOT_INITIALIZED - Initialize was not called
NV_SERVICE_ERROR - cannot connect to novaPDF Server service
NV_PROFILE_ERROR - cannot read default profile
NV_PROFILE_SAVE_ERROR - cannot save new profile