You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2017/07/22 17:36:03 UTC

[jira] [Commented] (PDFBOX-3877) PDFParser pdfParser = new PDFParser(new RandomAccessFile(new File("bus.pdf"), "r"));

    [ https://issues.apache.org/jira/browse/PDFBOX-3877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097389#comment-16097389 ] 

Tilman Hausherr commented on PDFBOX-3877:
-----------------------------------------

You forgot commons-logging.
https://pdfbox.apache.org/2.0/dependencies.html

And getting a PDDocument object is much easier:
{code}
PDDocument doc = PDDocument.load(new File("bus.pdf");
{code}

> PDFParser pdfParser = new PDFParser(new RandomAccessFile(new File("bus.pdf"), "r"));
> ------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-3877
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3877
>             Project: PDFBox
>          Issue Type: Bug
>         Environment: JDK 8
>            Reporter: Emam Hasan
>         Attachments: pdfbox.png
>
>
> when I run my project to extract pdf data output show an error on this line "PDFParser pdfParser = new PDFParser(new RandomAccessFile(new File("bus.pdf"), "r"));" pleae help me to figure out  this problem.
> Best Regards,
> Emam Hasan



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org