Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Absorber - How to get the rows without spaces (formatting) left?

$
0
0
Hello I am using Aspose.Pdf (9.4.0) and after using the command "pdfDocument.Pages [page] Accept (textAbsorber);"
I get the rows from the page with their respective spaces at the beginning of each line. 

Is there any parameter to automatically remove this "formatting" of spaces at the beginning of each paragraph? 

The code snippet that I use is this (page 1 of attachment): 
for (int page = PaginaInicial; page <= PaginaFinal; page++)
{
textAbsorber = new TextAbsorber();
textAbsorber.TextSearchOptions.LimitToPageBounds = true;
textAbsorber.TextSearchOptions.Rectangle = new Aspose.Pdf.Rectangle(0, 20, 300, 672);
pdfDocument.Pages[page].Accept(textAbsorber);
linha = textAbsorber.Text;
}

Following figure for clarity.

Viewing all articles
Browse latest Browse all 3131

Trending Articles