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

Wrong PageInfo for landscape ?

$
0
0
The pages of my Pdf actually are in landscape mode... But how can I detect this. My goal is simply to initialize a PngDevice in order to export Pages with their original ratio. Below is the PageInfo I obtain... According to http://stackoverflow.com/questions/12050743/how-to-find-whether-pdf-has-landscape-orientation-or-portrait, the IsLandscape property (and IMO the PageInfo.Width/Height) seems not to be correctly infered by Aspose... I understand that all those Rects are not simple to "integrate" into one "simple final Rect for the Page". I thought that the PageInfo SHOULD hold the result of this subtle computation... PageInfo: Height 842.0 IsLandscape false Margin {Aspose.Pdf.MarginInfo} Width 595.0 Rect: {0,0,841,595} TrimBox: {0,0,841,595} MediaBox: {0,0,841,595} ArtBox: {0,0,841,595} BleedBox: {0,0,841,595} CropBox: {0,0,841,595} Which properties should I consider to correctly obtain the Rect to use to configure the PngDevice? Regards, Olivier

Viewing all articles
Browse latest Browse all 3131

Trending Articles