skip navigation

PDF Document Management Software, Services & Support

Server Desktop Services Support Why Us? About Us

The Latest

SecurSign 5 Now Available! Includes Signature Validation to Detect Tampering.
Lansdowne, PA (July 13, 2011)
Encrypt, digitally sign and verify digital signatures on PDF documents.

Redax 5: Advanced Redaction for PDF Documents
Tuesday, March 22, 2011
The latest Redax adds new patterns, regular expressions and more!

Redax Enterprise Server 3 Ships!
Thursday, January 6, 2011
New Redaction Engine, Powerful New Markup Options and More!

Survey: Server Based PDF Applications
Tuesday, December 7, 2010
The 2010 Survey asked about PDF server application development.

5 PDF Readers Compared
Tuesday, November 30, 2010
Expanding on our previous review, we've included Nitro's Reader and Adobe's new Reader X.

Sample Scripts

The Command Line Interface (CLI) is a simple yet powerful programming technique that can be invoked in many environments. All Appligent Document Solutions server-based components include a CLI and can easily be placed in a scripted workflow.

The following examples show only the critical elements needed to set up the command line call, invoke the application and capture the returned code.  If you need assistance in developing PHP or Perl scripts for our applications, please get in touch.

NOTE: We use FDFMerge to demonstrate the correct syntax below, but the name of any of our server-based applications may be substituted.

PHP Download complete example.

#Built the Executable statement $FDFMergeAppl = "$FdfMerge -r $FdfMergeRegNum";
$FdfMergeParms = "-s -p -l $LogFile -o $OutPdfFile $InPdfFile $InFdfFile";
$FdfMergeCmd = $FDFMergeAppl . $FdfMergeParms;

#Execute the FDFMerge command line and get the return code.
$Return = system($FdfMergeCmd);

ASP Download complete example.

'Built the Executable statement
sFdfMergeAppl = sFdfMerge & " -r " & sFdfMergeRegNum
sFdfMergeParms = " -s -p -l " & sLogFile & " -o " & sOutPDFFile
sFdfMergeParms = sFdfMergeParms & " " &InPdfFile & " " & sInFdfFile
sFdfMergeCmd = sFdfMergeAppl & " " & sFdfMergeParms

'Create the Shell object to run the FDFMerge command line.
Set wShell = Server.CreateObject("WScript.Shell")

'Execute the FDFMerge command line and get the return code.
iReturn = wShell.Run( sFdfMergeCmd, 10, True )
Set wShell = Nothing

PERL Download complete example.

#Built the Executable statement
$FDFMergeAppl = "$FdfMerge -r $FdfMergeRegNum";
$FdfMergeParms = "-s -p -l $LogFile -o $OutPdfFile $InPdfFile $InFdfFile";
$FdfMergeCmd = $FDFMergeAppl . $FdfMergeParms;

#Execute the FDFMerge command line and get the return code.
$Return = `$FdfMergeCmd`;

Java Download complete example or an alternate example.

//Built the Executable statement
sFdfMergeAppl = sFdfMerge + " -r " + sFdfMergeRegNum;
sFdfMergeParms = " -s -p -l " + sLogFile + " -o " + sOutPDFFile;
sFdfMergeParms = sFdfMergeParms + " " + InPdfFile + " " + sInFdfFile;

//Add "cmd /c" if you are running on Windows (Leave out if running on Unix)
sFdfMergeCmd = "cmd /c " + sFdfMergeAppl + " " + sFdfMergeParms;

//Create the process to run the FDFMerge command line.
Process cmdlProcess;

//Execute the FDFMerge command line and get the return code.
cmdlProcess = Runtime.getRuntime().exec ( sFdfMergeCmd );
cmdlProcess.waitFor ();
iReturn = cmdlProcess.exitValue();

Visual Basic Download complete example.

'Built the Executable statement
sFdfMergeAppl = sFdfMerge & " -r " & sFdfMergeRegNum
sFdfMergeParms = " -s -p -l " & sLogFile & " -o " & sOutPDFFile
sFdfMergeParms = sFdfMergeParms & " " &InPdfFile & " " & sInFdfFile
sFdfMergeCmd = sFdfMergeAppl & " " & sFdfMergeParms

'Execute the FDFMerge command line and get the return code.
iReturn= Shell(sFdfMergeCmd)