Is there a way that I can detect whether the text in a page is in Landscape or Portrait Orientation using JS or any libraries? I cannot rely on width > height, as there are pages that are rotated as well. vs
I cannot rely on comparing Width and Height, or checking if the page is rotated, because both these pages are rotated 90 degrees, but I cannot figure out how to detect the text's orientation.
I also do some preprocessing on the PDF using Node.js and pdfjs. So if that has any API/library to help me get the required information I would appreciate the help.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…