You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2013/06/21 08:37:20 UTC

[jira] [Commented] (PDFBOX-1647) Not able to parse PDF files using PHP and Linux

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

Maruan Sahyoun commented on PDFBOX-1647:
----------------------------------------

Hi,

if you run java -jar pdfbox-app-1.8.2.jar ExtractText for you PDF directly from the command line do you get any output? If yes it's how PDFBox is called from the PHP program which is a PHP related question. 

BR
Maruan
                
> Not able to parse PDF files using PHP and Linux
> -----------------------------------------------
>
>                 Key: PDFBOX-1647
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1647
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>    Affects Versions: 1.8.2
>         Environment: PHP and Linux Platform
>            Reporter: Rajiv Maity
>   Original Estimate: 96h
>  Remaining Estimate: 96h
>
> Hi, I am trying to extract texts using pdfbox-app1.0.8.jar, I am able to extract it in windows xp pc but when I am trying to execute the same program in Go Daddy Linux server, the program is not working i.e not extracting the texts from the pdf. Below is the program, that I am using to extract texts from pdf files.
>         require_once 'pdf_lib/pdf_box/PDFBox/ExtractText.php';
> 	$jar = "pdf_lib/pdf_box/lib/pdfbox-app-1.8.2.jar";
> 	$pdf_box = new PDFBox\PDFBox($jar);
> 	$extract_text = new PDFBox\ExtractText($pdf_box);
> 	$extract_text->parse($pdfLocation);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira