从pdf中读取内容并整齐地对齐细节

read the contents from pdf and neatly align the details

如何使用 php

从 pdf 中读取内容并在 html 页面中整齐对齐细节
$handle = fopen($filename, "rb");
$contents = fread($handle, filesize($filename));
fclose($handle);
print $contents;

但是一些不需要的符号即将出现

最佳使用方式PDF2TEXT

//Include here
include('class.pdf2text.php');

$var = new PDF2Text();

//Set PDF
$var->setFilename('YOUR PDF.pdf');
$var->decodePDF();

//Desired Output
echo $var->output();