Knowledgebase

Back to Articles List

How do I enter serial and developer codes into my application?

Question

How do I enter serial and developer codes into my application?

Answer

Serial and developer codes must be included within application code, and prior to compiling, in order to deactivate the demo watermarks that otherwise feature on output. The following excerpt of is from the VB example (VbExCOM; MainFrm.frm, pg 4) included in the Drivers API SDK installation files:

Private Sub InitSaverObj()
   
Set PDFPrinter = PDFPFactory.Printer("", "PDF-XChange 4.0 Sample", "<YOUR REG CODE>", "<YOUR DEV CODE>")

***

When codes have been entered it will appear as below:

Set PDFPrinter = PDFPFactory.Printer("", "PDF-XChange 4.0 Sample", "PDS40-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX", "PDFX3$111XXXX111*")

***
    pname = PDFPrinter.Name
    PDFPrinter.SetAsDefaultPrinter
End Sub

Public Sub Form_Load()
    InitSaverObj
    TypeOption(1).Value = True
End Sub

Compile and run your application after these codes have been added to the source code. Watermarks should no longer appear.

Was this article helpful?
Yes No Somewhat