Create JAVA HTML to PDF Apps in minutes
Use the best Java HTML to PDF SDK to create PDF Apps. With easy PDF SDK’s Action Center you can generate Java code that customizes HTML to PDF Creation. You can use this code for creating a Java App or include it in your Java program. You don’t need to consult any manual or documentation to start.
Here’s some sample code to show how easy it is to develop Java HTML to PDF Apps with easy PDF SDK:
...
File inputFile = new File(args[0]);
String inputFileName = inputFile.getCanonicalPath();
File outputFile = new File(args[1]);
String outputFileName = outputFile.getCanonicalPath();
Printer printer = new Printer();
printer.useLoader = false;
try
{
IEPrintJob printjob = printer.getIEPrintJob();
printjob.PrintOut(inputFileName, outputFileName);
}
catch(PrinterException ex)
{
System.out.println(ex.getMessage());
}
finally
{
printer.dispose();
}
...