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.
sniles
Posts: 4
Joined: Tue Feb 11, 2014 1:36 am

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

Postby sniles » Tue Oct 30, 2018 7:46 pm

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)

Postby sniles » Wed Oct 31, 2018 5:55 pm

Found what I was looking for:

pNova->DisableActionType(NOVA_ACTION_OPEN);


Return to “Developer Tools”