PHP Classes

Spaces not extracted

Recommend this page to a friend!

      PHP PDF to Text  >  All threads  >  Spaces not extracted  >  (Un) Subscribe thread alerts  
Subject:Spaces not extracted
Summary:Extracted content contains no spaces
Messages:2
Author:John Kelley
Date:2021-10-15 20:24:57
 

  1. Spaces not extracted   Reply   Report abuse  
Picture of John Kelley John Kelley - 2021-10-15 20:24:57
Is there some method/parameter I can use to get the spacing included with the extracted text? I am getting no spaces currently. Thanks

  2. Re: Spaces not extracted   Reply   Report abuse  
Picture of Alex Gui Alex Gui - 2023-03-27 12:09:27 - In reply to message 1 from John Kelley
Like the example line 19 :
$pdf = new PdfToText ( ) ;
// Modify any property here before loading the file ; for example :
// $pdf -> BlockSeparator = " " ;
$pdf -> Load ( 'sample.pdf' ) ;
echo $pdf -> Text ;

Uncomment $pdf -> BlockSeparator = " " ;