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 AddSaveRule method adds save rule
HRESULT AddSaveRule(
[in] LONG p_nType,
[in, string] LPCWSTR p_wsName,
[in, string] LPCWSTR p_wsDescription,
[in, string] LPCWSTR p_wsText,
[in, string] LPCWSTR p_wsFormat,
[in] BOOL p_bEnabled,
[out] LONG* p_pnIndex
);
Parameters:
p_nType
[in] save rule type (0-remove from start, 1- remove from end, 2 - remove all, 3 - regular expression)
p_wsName
[in] rule name
p_wsDescription
[in] rule description
p_wsText
[in] text to remove or regular expression
p_wsFormat
[in] format for regular expression
p_bEnabled
[in] flag, rule is enabled
p_pnIndex
[out] rule index
Return values:
S_OK
on success or COM error codeNV_NOT_INITIALIZED
- Initialize was not calledNV_UNKNOWN_PROFILE
- no profile loadedRemarks:
This method adds a new save rul at the end of the list.