DocAddEmptyPagesΒΆ
DocAddEmptyPages adds one or more empty pages to a document.
-
hvPage = DocAddEmptyPages(hDoc, svPageNames)
Return Value
hvPage is a vector of page handle. The order of the handles is identical with the order of svPageNames. In case of an error hvPage is 0.
Parameters
-
hDoc
Identifies the document.
-
svPageNames
svPageNames is a vector with page names. The length of the vector specifies the number of pages. If the new names are not unique for the document, they will replaced with default names.
Example
def test_DocAddEmptyPages()
{
hDoc = DocCreate();
hh = DocAddEmptyPages(hDoc, ["sin", "cos"]);
if (len(hh) != 2) {
DocDestroy(hDoc);
error();
}
if (_g().unit_test_cleanup) {
DocDestroy(hDoc);
}
}
test_DocAddEmptyPages();
History
Version | Description |
---|---|
5.20 | New. |
See also
id-1658486