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

Free Support Forum - aspose.com

MarkupParagraph Ordering

Hello, I’m using Aspose 20.2 for C#

My issue is that the reading order for MarkupParagraphs isn’t correct in very trivial cases (scientific document in a 2 columns style). I don’t believe this to be the intended behavior of your solution. Attached picture and sample code for example.

reading_order.PNG (91.4 KB)
14699080.pdf (419.8 KB)

public static void showReadingOrder(List paths)
string pdfPath = paths[0];
string jsonPath = paths[1];
string pmid = paths[2];
JsonPdfHandler jsonPdfHandler = new JsonPdfHandler(pdfPath, jsonPath);
int paragraphIdx = 0;
foreach(MarkupParagraph markupParagraph in jsonPdfHandler.paragraphs)
jsonPdfHandler.AddAnnotation(paragraphIdx, "Paragraph: " + paragraphIdx);


We were able to notice the issue in our environment while testing the scenario with Aspose.PDF for .NET 20.6. We have logged it as PDFNET-48385 in our issue tracking system for the sake of correction. We will further look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.