christian-vigh-phpclasses / PdfToText

Extracts text from PDF files
Other
125 stars 93 forks source link

Preserve new lines in pdf after converting to text. #31

Open pradeep-gpost opened 6 years ago

pradeep-gpost commented 6 years ago

Hello,

How are you ? I am able to convert the pdf content to text format. I am getting the output as string dump eliminating new lines in pdf file.

I would need to preserve new lines in pdf after converting to text. How do I do that ?

I am currently calling it as below:

$pdf = new PdfToText ( 'uploads/test_protocol.pdf' ) ;
echo $pdf -> Text ;