0

While working this script, I see that the sample PDF supplied works great, but when I attempt to use a pdf that I created with either CutePDF or DeskPDF, I get an error. the error I tracked down is:

Warning: gzuncompress(): data error in /usr/home/ezizzi/test/pdf2text.php on line 98

I assume this is because there is a difference in the file creation methods used by CutePDF and DeskPDF compared to the maker of the pdf used in sample.pdf.

Is there a way of testing this?

Thanks,

Eric

flag

2 Answers

0

Hard to tell. Probably this sample code is not able to handle PDF created by CutePDF or DeskPDF.

As a first troubleshooting step I would try to print $input variable:

function decodeFlate($input) {
    echo $input;
    return @gzuncompress($input);
}
link|flag
0

hi,

I want to create a pdf to text tool for my university project.Will you help me the coding part and provide some guidelines.

Thank you, prem

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.