On Sun, Dec 05, 2010 at 05:40:30PM -0500, Roger Burrows wrote:
> Hi!
Hi,
> I'm using the "Edit page metrics" dialogue to crop pages. The box says
> something like:
> Left upper corner, x position
> Left upper corner, y position
> Right bottom corner, x position
> Right bottom corner, y position
> This, together with the values that are displayed for the current page,
> implies
> that the origin of the co-ordinate system is at the upper left of the page.
>
> However, by trial and error I have discovered that it is actually at the
> BOTTOM
> left of the page. So the descriptions should be:
> Left bottom corner, x position
> Left bottom corner, y position
> Right upper corner, x position
> Right upper corner, y position
Yes, you are right. I can see the same issue on many of my documents (I
wasn't able to find any which would have the base of coord system at top
left corner).
The attached patch fixes this but please note that this might be not
correct as the coord system depends also on rotation and other things. I
will post the patch to our devel mailing list. Let's see what other guys
say.
You can apply the patch in two ways. Either you apply it in the source
tree and then run make install or apply it directly to the installed
file (which is in $PREFIX/share/pdfedit/ directory - where PREFIX is
/usr/local/ by default).
>
> Roger
Thanks
--
Michal Hocko
gui: Edit page metrics coordinates fix
Roger Burrows has reported that "Edit page metrics" labels expect that the
coordinate system is based on the left top corner which doesn't seem to be
the case for his documents (as well as my randomly picked up ones) where
the base seems to be at left bottom corner. In this case we have to change
the labels
Index: pdfedit-patches/src/gui/dialogs.qs
===================================================================
--- pdfedit-patches.orig/src/gui/dialogs.qs 2010-12-07 15:40:20.000000000 +0100
+++ pdfedit-patches/src/gui/dialogs.qs 2010-12-07 15:41:35.000000000 +0100
@@ -64,13 +64,13 @@ function editPageMediaBox() {
var dialog = createDialog (tr("Change page rectangle"), tr("Change"), tr("Cancel"), tr("Page metrics"));
var gb = createGroupBoxAndDisplay (tr("Page metrics"), dialog);
- var exl = createNumberEditAndDisplay(tr("Left upper corner")+", "+tr("x position")+"( "+PageSpace.getDefaultUnits()+" ): ",
+ var exl = createNumberEditAndDisplay(tr("Left bottom corner")+", "+tr("x position")+"( "+PageSpace.getDefaultUnits()+" ): ",
PageSpace.convertUnits(xleft,"pt"), gb);
- var eyl = createNumberEditAndDisplay(tr("Left upper corner")+", "+tr("y position")+"( "+PageSpace.getDefaultUnits()+" ): ",
+ var eyl = createNumberEditAndDisplay(tr("Left bottom corner")+", "+tr("y position")+"( "+PageSpace.getDefaultUnits()+" ): ",
PageSpace.convertUnits(yleft,"pt"), gb);
- var exr = createNumberEditAndDisplay(tr("Right bottom corner")+", "+tr("x position")+"( "+PageSpace.getDefaultUnits()+" ): ",
+ var exr = createNumberEditAndDisplay(tr("Right upper corner")+", "+tr("x position")+"( "+PageSpace.getDefaultUnits()+" ): ",
PageSpace.convertUnits(xright,"pt"), gb);
- var eyr = createNumberEditAndDisplay(tr("Right bottom corner")+", "+tr("y position")+"( "+PageSpace.getDefaultUnits()+" ): ",
+ var eyr = createNumberEditAndDisplay(tr("Right upper corner")+", "+tr("y position")+"( "+PageSpace.getDefaultUnits()+" ): ",
PageSpace.convertUnits(yright,"pt"), gb);
var pagePos = createNumberEditAndDisplay(tr("Apply from page"), document.getPagePosition(page()), dialog);
var pageCount = createNumberEditAndDisplay(tr("How many pages"), 1, dialog);
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Pdfedit-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdfedit-support