Hello,

Inspired by the patch for multiple page metrics
transformation I've created a patch for multiple
pages transformation matrix.

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdfedit-support

Reply via email to