PHP Example

#Build the Executable statement $FDFMergeAppl = "$FdfMerge ";
  $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);

Download Complete PHP Example

ASP Example

'Build the Executable statement
sFdfMergeAppl = sFdfMerge
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

Download Complete ASP Example

Perl Example

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

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

Download Complete Perl Example

Java Example

// Build the Executable Statement
sFdfMergeAppl = sFdfMerge;
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( ).exe ( sFdfMergeCmd  );
cmdlProcess.waitFor ( );
iReturn = cmdlProcess.exitValue( );

Download complete Java Example OR alternate example

Visual Basic Example

'Build the Executable statement
 sFdfMergeAppl = sFdfMerge
 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)

Download Complete Visual Basic Example

Back to top