Limited time promo

Reference - Windows messages

English

This help topic applies only to novaPDF. If you don't have it yet, you must download it first.

Download now Buy licenses
Mar 22, 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.
novaPDF SDK messages

Message name Event WPARAM LPARAM
NOVAPDF2_STARTDOC sent when the printer driver begins processing the print job and generating the PDF file   jobID
NOVAPDF2_ENDDOC sent when the printer driver finished processing the print job   jobID
NOVAPDF2_STARTPAGE sent when the printer driver starts processing a new page   jobID
NOVAPDF2_ENDPAGE sent when the printer driver finished processing a page   jobID
NOVAPDF2_FILESENT sent when the printer driver finished generating the PDF file and sent it to the computer that started the print job   jobID
NOVAPDF2_FILESAVED sent when the PDF file is received and saved by the computer that started the print job   jobID
NOVAPDF2_PRINTERROR sent when an error occurred during the print job error no. jobID
NOVAPDF2_EMAILSENT sent when the email option is enabled and a email with the generated PDF file was sent   jobID
NOVAPDF2_EMAILERROR sent when the email option is enabled and there was an error sending the email with the generated PDF file   jobID
The following error numbers are sent by the printer driver, in the NOVAPDF2_PRINTERROR event:
1 - Error saving temporary PDF file on the printer server.
2 - Error reading license information on the printer server.
3 - Error generating the PDF file.
4 - Print job was canceled
5 - Licensing error: too many copies running with the same license
6 - Client computer is not licensed
7 - Error sending email
9 - Could not read printer info
10 - Could not read profile
11 - append pdf file - no or wrong password
12 - insert before pdf file - no or wrong password
13 - append pdf file - could not read file
14 - insert before pdf file - could not read file
15 - overlay pdf file - no or wrong password
16 - overlay pdf file - could not read file
18 - sign PDF - error signing
19 - sign PDF -error creating signature form
20 - sign PDF - image file not found
21 - image watermark - error drawing
22 - overlay - error drawing
25 - license error
26 - wrong parameters for action
27 - error creating folder
28 - error open viewer
29 - error run application
30 - file name error
31 - error copy file
32 - error delete file
33 - MAPI error
34 - SMTP error
35 - profile consistency error
36 - FTP error
37 - SFTP error
38 - error open file
39 - error pdf viewer
40 - access rgigths error
41 - open pdf error

How to register windows messages

You can register windows messages using RegisterWindowMessage function. Here are some samples of how to do it: