Avoid opening in viewer after save (was NOVAPDF_ACTION_OPEN_OPENDOCUMENT in V7)

Post here any questions/suggestions you have about novaPDF SDK or novaPDF OEM.
Post Reply
sniles
Posts: 4
Joined: Tue Feb 11, 2014 1:36 am

Avoid opening in viewer after save (was NOVAPDF_ACTION_OPEN_OPENDOCUMENT in V7)

Post by sniles »

In version 7, we were using the NOVAPDF_ACTION_OPEN_OPENDOCUMENT profile option to avoid having the PDF opened in a viewer after it was printed. That option seems to be gone in version 9, and I can't find what replaced/superseded it. I see the dialog/settings option, but I need to set this from the API.

*EDIT: I did some more digging, and I suspect what I need is to call SetActionOptionLong, but I can't find anything that indicates what actionID I need to use, and what the option is.

sniles
Posts: 4
Joined: Tue Feb 11, 2014 1:36 am

Re: Avoid opening in viewer after save (was NOVAPDF_ACTION_OPEN_OPENDOCUMENT in V7)

Post by sniles »

Found what I was looking for:

pNova->DisableActionType(NOVA_ACTION_OPEN);

Lorant (Softland)
Posts: 177
Joined: Wed Dec 16, 2009 10:48 am

Re: Avoid opening in viewer after save (was NOVAPDF_ACTION_OPEN_OPENDOCUMENT in V7)

Post by Lorant (Softland) »

Thank you for sharing your solution with other users.

Post Reply