Server

Start page  Previous page  Next page

 

General Information

n2pdf can be employed on the server or the client. An n2pdf server installation is the same as for the client, i.e. the same files are used.

 

112

A special registration key (separate license) is required to use n2pdf on a server. A registration key for a client installation cannot be used on a server and vice versa.

 

All server functions are run on the backend when n2pdf is used on a server, which means that no output can be made on the front end (e.g. PDF file display). n2pdf recognizes the implementation on a server and automatically reroutes all the output to the server console, thereby disabling functions that would result in screen output (such as launching the PDF viewer). No modifications need to be made to the script.

 

 

Security settings for agents on the server

If you use n2pdf in agents and execute these on the server, you must enable agents to run in "unrestricted mode". To do this, set agent properties to "3" in "runtime security level" (see screenshot). Without this setting, the agent will not run.

 

clip0044

 

n2pdf consists of a series of DLLs which provide the functionality required to created PDF files via Lotus Script. These DLLs use functions from Windows API, e.g. for creating temporary files. Access of this kind goes beyond the normal range of rights set for agents in Notes. For this reason, agent rights need to be adapted to ensure that DLLs are loaded from n2pdf and that corresponding functions can be executed.

 

 

Performance and stability

To obtain optimum performance and stability, it is advisable (especially for agents run with "RunOnServer") to keep n2pdf DLLs permanently loaded on the server. You can achieve this by entering n2pdf as "Extension manager" on the server. Add the following entry to "NOTES.INI" on the server:

 

EXTMGR_ADDINS=n2pdf.dll

 

With this entry, n2pdf is loaded on the server directly at the start and is not unloaded again until the server session is terminated. This prevents continuous loading and unloading of n2pdf on every program run, thereby improving performance.