From: Michal H. <ms...@gm...> - 2008-07-07 16:08:13
|
On Mon, Jul 07, 2008 at 11:59:54AM +0300, Igor Stirbu wrote: > Hello, > > Inspired by the patch for multiple page metrics > transformation I've created a patch for multiple > pages transformation matrix. Thanks, I will forward this patch to devel mailing list. I am in favor for it, let's see what the rest of team think. > > Best regards, > Igor > > -- > :wq > --- /usr/share/pdfedit/dialogs.qs 2008-02-25 08:34:16.000000000 +0200 > +++ dialogs.qs 2008-07-07 11:57:10.000000000 +0300 > @@ -363,6 +373,8 @@ > rbtran = createCheckBoxAndDisplay (tr("Translate (shift) page"),gb); > rbscal = createCheckBoxAndDisplay (tr("Scale page"),gb); > rbskew = createCheckBoxAndDisplay (tr("Skew page"),gb); > + var pagePos = createNumberEditAndDisplay("Page", document.getPagePosition(page()), dialog); > + var pageCount = createNumberEditAndDisplay("Page count", 1, dialog); > > > /* == Second tab */ > @@ -420,7 +432,11 @@ > } > } > > - page().setTransformMatrix(tm); > + for (;pageCount.value > 0 && pagePos.value <= document.getPageCount(); --pageCount.value) > + { > + var page = document.getPage(pagePos.value++); > + page.setTransformMatrix(tm); > + } > > print (tr("Page transformation matrix changed to ")+tm); > go(); > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Pdfedit-support mailing list > Pdf...@li... > https://lists.sourceforge.net/lists/listinfo/pdfedit-support -- Michal Hocko |