diff --git a/coders/xps.c b/coders/xps.c
index 23e8af7..96fa3e1 100644
--- a/coders/xps.c
+++ b/coders/xps.c
@@ -252,8 +252,8 @@
     /*
       Set XPS render geometry.
     */
-    width=(size_t) (floor(bounds.x2-0.5)-ceil(bounds.x1-0.5));
-    height=(size_t) (floor(bounds.y2-0.5)-ceil(bounds.y1-0.5));
+    width=(size_t) (floor(bounds.x2+0.5)-ceil(bounds.x1-0.5));
+    height=(size_t) (floor(bounds.y2+0.5)-ceil(bounds.y1-0.5));
     if (width > page.width)
       page.width=width;
     if (height > page.height)