Hi,
Hi Wolfgang,
// load the source PDF file<o:p></o:p>
Aspose.Pdf.Document sourcefile= new Aspose.Pdf.Document("input.pdf");
// determine if source PDF is Landscape
Console.WriteLine("Is
Landscape = " + sourcefile.PageInfo.IsLandscape);
Hi,
Hi Wolfgang,
Thanks for sharing the details.
I am afraid Aspose.Pdf for .NET cannot determine the orientation of image present inside the PDF file. As the contents inside the PDF will appear as Image, so I am afraid it’s difficult to determine the upper or lower end of the image.
However as a workaround, you may consider extracting the image from PDF file, perform OCR over the Image and search for particular text string (may be page Header/Footer) and the text coordinates may help in determining the orientation of image inside the PDF. For further details, please visit