Thread: not able to find the jar

Forum : New To Java   11 Days ago
User Image
Kapadiya

Newbie

Joined: Feb 2, 2018

Points: 100

Threads: 2

Posts: 0

not able to find the jar

| Quote Date : Feb 9, 2018    Views:92    

import com.bcl.easyconverter.excel.*;
import java.io.File;

public class TestConverter
{
public static void main(String[] args) throws Exception
{
if (args.length == 2)
{

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

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


PDF2Excel converter = new PDF2Excel();
try
{
converter.ConvertToExcel(inputFileName, outputFileName, "", -1, -1);
}
finally
{
converter.dispose();
}
}
else
{
System.out.println("Usage: java TestConverter <pdf file> <rtf file>");
System.out.println("For example:");
System.out.println("java TestConverter c:\\input\\smile.pdf c:\\output\\smile.csv");
}
}
}


tags: excel jar pdf to

Comments

User Image
Mithilesh866

Newbie

Joined : Apr 20, 2017

Points : 100

Threads: 2

Posts: 7

Re: not able to find the jar

Reply Date : Feb 13, 2018

you can use POI jar of apache then you can able to convert PDF to EXCEL.

Load More

No More Comments