-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gzuncompress(): data error #6
Comments
Hi, Thanks for submitting this issue which shows yet another way to encode Don�t worry, your code is perfectly correct ! To tell the truth, for the moment, I�ll ask you to be a little bit patient ! In fact, when I implemented image extraction, I decided to throw an I will come back to you soon when I�ll figure out what happens. De : phisu [mailto:notifications@github.com] i have some pdf-files which throw the following error when i try to extract output: gzuncompress(): data error PdfToText.phpclass 1487 what can i do to prevent this error? � L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. |
thank you for your quick answer. what do you think about to introduce a switch, with which we could avoid the image extraction. is it possible to skip the image extraction? this thoughts are maybe to simply. and honestly i have no understanding of the structure of pdf. |
Yes, this is what I did in fact with the latest version (1.2.19, but check Now, images are no more extracted by default, so it should run better in However, even with this default behavior, it seems that my class has a I agree that throwing an exception when encountering bad image data is As an example, another user got the same exception as you because his pdf But� wait� I can enable exception throwing only if debug mode is enabled, Ok so as temporary conclusion to our current exchange :
o Change my class so that no exception will be thrown upon o Investigate the problem on the first sample you sent to me In any case, I will come back to you when a new version will be available (I Christian. De : phisu [mailto:notifications@github.com] thank you for your quick answer. what do you think about to introduce a switch, with which we could avoid the this thoughts are maybe to simply. and honestly i have no understanding of � L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. |
thank you a lot for you very quick answer! i downloaded the latest version of your class ( [Version : 1.2.19] [Date : 2016/07/19] ) and made a test with the same pdf.
in the browswer i got no output but in der apache-log the following error:
` philipp. |
Hi Philipp, I thank you for this additional work and for sending me a second sample (I With this latest version of my class you�ve got a different error message This is an interesting case ; it is clearly not linked to image extraction, I thank you for the testing, since it gave me additional information. I�ll come back to you when this issue will be solved. Christian. De : phisu [mailto:notifications@github.com] thank you a lot for you very quick answer! i downloaded the latest version of your class ( [Version : 1.2.19] [Date : $filename = 'Leitfaden_Maerz07.pdf'; in the browswer i got no output but in der apache-log the following error: PHP Fatal error: Uncaught exception 'PdfToTextException' with message 'Pdf ` philipp. � L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. |
Ok I�ve progressed a little bit on this issue. The files have been generated I changed my class not to throw an exception when such an encoding method is However, my class is unable to extract anything from your samples : even the I already found such a situation in one or two samples, but it did not So what I have to do now is to find some reliable documentation about what Christian. De : phisu [mailto:notifications@github.com] thank you a lot for you very quick answer! i downloaded the latest version of your class ( [Version : 1.2.19] [Date : $filename = 'Leitfaden_Maerz07.pdf'; in the browswer i got no output but in der apache-log the following error: PHP Fatal error: Uncaught exception 'PdfToTextException' with message 'Pdf ` philipp. � L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. |
Hi again Philipp, Ok I found out what happens. Here is what I tried :
Of course, this is not acceptable : it just helped me understand what In fact I already knew that Pdf files can be password-protected (and Ok, this will require me a few days to solve this issue but it is a really Christian. De : phisu [mailto:notifications@github.com] thank you a lot for you very quick answer! i downloaded the latest version of your class ( [Version : 1.2.19] [Date : $filename = 'Leitfaden_Maerz07.pdf'; in the browswer i got no output but in der apache-log the following error: PHP Fatal error: Uncaught exception 'PdfToTextException' with message 'Pdf ` philipp. � L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. |
hi christian, thank you for your efforts. i hope you will find a solution, because i philipp Am 2016-07-25 um 00:39 schrieb christian-vigh-phpclasses:
|
i have some pdf-files which throw the following error when i try to extract the text:
$pdf = new PdfToText ($filename) ; echo $pdf->Text;
output: gzuncompress(): data error PdfToText.phpclass 1487
what can i do to prevent this error?
the pdf-file you can find here:
http://www2.ivm-rheinmain.de/wp-content/uploads/2012/02/Leitfaden_Maerz07.pdf
The text was updated successfully, but these errors were encountered: