Michael Goddard created PDFBOX-3055:
---------------------------------------
Summary: Change visibility of ExtractText constructor to public
Key: PDFBOX-3055
URL: https://issues.apache.org/jira/browse/PDFBOX-3055
Project: PDFBox
Issue Type: Improvement
Components: Text extraction
Affects Versions: 1.8.10
Environment: (any)
Reporter: Michael Goddard
Priority: Minor
I was just hoping to do a simple extension, using this class but, due to the
private constructor, can't:
import org.apache.pdfbox.ExtractText;
public class MultiPDFtoText
{
public static void main (String[] args)
{
for (String pdf : args)
{
String txt = pdf.replaceFirst("\\.pdf$", ".txt");
System.out.println("PDF: " + pdf + ", TXT: " + txt);
ExtractText extractor = new ExtractText();
extractor.startExtraction(new String[] { pdf, txt });
}
}
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]