We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to identify the amount of columns of a page / file?

I'm trying to read a PDF with Aspose.Pdf (9.4.0) using the method Absorber.
The problem is that the pages / files have different amount of columns!

How is it possible to discover the amount of columns to be able to mount the coordinates of the rectangle to the method absorber?

Following image and 2 PDFs with 2:04 columns.

In the code snippet that I am using I need to know the number of columns to properly define the areas of the rectangle to extract the absorber.

iPosColInit = 10;
textAbsorber = new TextAbsorber();
textAbsorber.TextSearchOptions.LimitToPageBounds = true;
textAbsorber.TextSearchOptions.Rectangle = new Aspose.Pdf.Rectangle(0,iPosColInit , iPosColEnd, 700);
linha = textAbsorber.Text;


Hi Maria,

Thanks for your inquiry. I am afraid currently Aspose.Pdf API does not support to find number of text columns in PDF. We have logged a new feature request PDFNEWNET-37257 in our issue tracking system for the purpose. We will notify you as soon as it is implemented.

We are sorry for the inconvenience caused.

Best Regards,