easyPDF SDK Explorer

Conversion settings:

Country (unit and paper):
Input document type:
 
Settings (click to change)

Sample code:

using BCL.easyPDF.Printer;

namespace TestPrinter
{
   class Program
   {
      static void Main(string[] args)
      {
         if(args.Length != 2)
            return;

         string inputFileName = args[0];
         string outputFileName = args[1];
         Printer printer = new Printer();
         try
         {
            PrintJob printjob = printer.PrintJob;
            printjob.PrintOut(inputFileName, outputFileName);
         }
         catch(PrinterException ex)
         {
            System.Console.WriteLine(ex.Message);
         }
         finally
         {
            printer.Dispose();
         }
      }
   }
}
Imports BCL.easyPDF.Printer

Module TestPrinter
Sub Main(Args As String())
If Args.Length <> 2 Then
Return
End If

Dim inputFileName As String = Args(0)
Dim outputFileName As String = Args(1)
Dim printer As New Printer()
Try
Dim printjob As PrintJob = printer.PrintJob
printjob.PrintOut(inputFileName, outputFileName)
Catch ex As PrinterException
System.Console.WriteLine(ex.Message)
Finally
printer.Dispose()
End Try
End Sub
End Module
import easyPDFPrinter
import sys
import os.path

if len(sys.argv) != 3:
print("Please pass input file name and output file name.")
sys.exit()
inputFileName = os.path.realpath(sys.argv[1])
outputFileName = os.path.realpath(sys.argv[2])

printer = easyPDFPrinter.Printer()
try:
printjob = printer.getPrintJob()
printjob.PrintOut(inputFileName, outputFileName)
except easyPDFPrinter.PrinterException as ex:
print(ex)
finally:
printer = None
import com.bcl.easypdf.printer.*;
import java.io.File;

public class TestPrinter
{
public static void main(String[] args) throws Exception
{
if(args.length != 2)
return;

File inputFile = new File(args[0]);
String inputFileName = inputFile.getCanonicalPath();

File outputFile = new File(args[1]);
String outputFileName = outputFile.getCanonicalPath();

Printer printer = new Printer();
try
{
PrintJob printjob = printer.getPrintJob();
printjob.PrintOut(inputFileName, outputFileName);
}
catch(PrinterException ex)
{
System.out.println(ex.getMessage());
}
finally
{
printer.dispose();
}
}
}
<?php
require("easyPDFPrinter.php");

if(count($argv) != 3)
{
echo "Please pass input file name and output file name.\n";
return;
}
$inputFileName = realpath($argv[1]);
if(!file_exists(dirname($argv[2])))
{
echo "Invalid output file name.\n";
return;
}
$outputFileName = rtrim(realpath(dirname($argv[2])), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . basename($argv[2]);

$printer = new BCL\easyPDF\Printer\Printer();
try
{
$printjob = $printer->getPrintJob();
$printjob->PrintOut($inputFileName, $outputFileName);
}
catch(BCL\easyPDF\Printer\PrinterException $ex)
{
echo $ex->getMessage(), "\n";
}
finally
{
$printer = null;
}
?>
bepprint.exe
-i input.docx -o output.pdf