|
Server : LiteSpeed System : Linux terra.hostitbro.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : outerorb ( 1091) PHP Version : 8.1.34 Disable Function : mail Directory : /home2/outerorb/emp.outerorbittech.in/scripts/ | |
|
Path: /home2/outerorb/emp.outerorbittech.in/scripts/extract_pdf2.php
Size: 599 B
Permissions: 0666
<?php
$content = file_get_contents('C:/Users/hp/Downloads/amit kumar verma.pdf');
preg_match_all('/stream\r?\n(.*?)\r?\nendstream/s', $content, $matches);
foreach ($matches[1] as $i => $stream) {
$decoded = @gzuncompress($stream);
if ($decoded === false) $decoded = @gzinflate($stream);
if ($decoded === false) $decoded = @gzinflate(substr($stream, 2));
if ($decoded) {
echo "=== Stream $i ===\n";
// Print printable characters
$out = preg_replace('/[^\x09\x0A\x0D\x20-\x7E]/', '.', $decoded);
echo substr($out, 0, 5000) . "\n";
}
}