saubhagya / pdf2text

http://drupal.org/project/pdf2text
6 stars 0 forks source link

Fatal Error in pdf.pdf2text.inc #1

Open Exadra37 opened 12 years ago

Exadra37 commented 12 years ago

This is the error i get: Fatal error: Call to a member function getDictionary() on a non-object in /home/s002003/public_html/PDF/saubhagya/pdf.pdf2text.inc on line 109

In pdf2text.php i have try to set (without sucess) $filename with different paths:

I call pdf2text.php like this:

I am doing something wrong or is a bug?

Thanks,

Paulo Silva

saubhagya commented 12 years ago

Hi Paulo,

It looks like a bug in the code as it's failing in later stage of the code. Could you please share the PDF with me so that I can verify the structure.

Exadra37 commented 12 years ago

Hello,

You can see your script run and all similar, that i have find in: http://asualojaonline.com/PDF/PDF2ALL/pdf2all.php

In this link you can download the pdf to test in your server.

If you want you can upload your pdf files that work to test your script in my server.

Thanks

saubhagya commented 12 years ago

Thanks Paulo,

I checked the file, it's a Linearized PDF (http://labs.appligent.com/pdfblog/linearization.php). Current implementation of parser doesn't support these type of files. I'll try to work on adding support for this format.