christian-vigh-phpclasses/PdfToText

No coordinates when using PDFOPT_DEBUG_SHOW_COORDINATES

TeisybeLT opened this issue · 2 comments

Hey,
I'm trying to do a text area capture on one of my pdf files, using the provided example, but on sample-reports.txt, I'm not getting any coordinate data, just plain text. By using PDFOPT_DEBUG_SHOW_COORDINATES I'm also seeing lots of PHP "non-numeric value encountered" warnings. They appear in "PdfToText.phpclass" on lines 1719, 1735, 1739, 1743, 1790, 1799, 2831, 2013, etc..

I have also applied the fix discussed in issue #20, to get text output.
I'm running PHP version 7.1.7

Please help me solve this issue.
Thank you

Could you display your full function code, would help with support.

`

include("PdfToText/PdfToText.phpclass");
$pdf = new PdfToText ('test.pdf', PDFOPT_DEBUG_SHOW_COORDINATES) ;
echo $pdf -> Text;
`
Here you go