|Anonymous | Login | Signup for a new account||06-18-2013 07:06 CEST|
|Main | My View | View Issues | Docs|
|Viewing Issue Simple Details [ Jump to Notes ]||[ View Advanced ] [ Issue History ] [ Print ]|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0000367||[GUI] =Other (GUI)=||minor||always||01-20-11 18:09||01-24-11 00:13|
|Summary||0000367: edit page metrics doesn't work correctly for rotated documents|
If a document has rotation applied to a page, page metrics hints are not correct.
In fact the hints are not correct even if rotation is 0 we need to switch bottom and upper corners (e.g. zadani.pdf).
I have posted a patch to fix this (will attach it here as well) but even this doesn't work correctly for rotated pages because rotation is applied after page metrics.
|Attached Files||gui-edit_page_matrics-fix-coord-desc.patch [^] (2,250 bytes) 01-20-11 18:10|
I think the patch is fine, though after rotation, the media box is still relative to original unrotated coordinates (well, the rotation works by setting one parameter of the page to a multiple of 90, which is then interpreted by viewers). I think adding extra line of text like
"The coordinates are based on bottom left corner of the page, before applying page rotation specified for the page" to the dialog may clarify the things a bit more.
I think that we should be more user friendly than that. Top resp. bottom should refer to what you are seeing at the moment (after rotation is applied).
I am just not sure what is the proper level where to do it. We have basically 2 options
- do it in the gui
- update the kernel interface
None of them is really hard because you have the whole information. I am more and more inclined to the second choice. CPage.setMediabox would get a new bool parameter afterRotation and if true it would rotate the given parameters according to the current Rotation. I like it more because it will make tools programming little bit easier. I will come up with a patch