diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-03-04 00:15:09 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-03-04 00:15:09 +0100 |
commit | 60687b77ba7082f7c554c4163c5cc31df97ea243 (patch) | |
tree | cdd467755084b1d99551f67ec1cb2f8e975be654 /tex/context/base/mkiv/lpdf-ini.lua | |
parent | 62676780b4363d25d7a247f39484b1e4a34ef7b7 (diff) | |
download | context-60687b77ba7082f7c554c4163c5cc31df97ea243.tar.gz |
2016-03-03 23:33:00
Diffstat (limited to 'tex/context/base/mkiv/lpdf-ini.lua')
-rw-r--r-- | tex/context/base/mkiv/lpdf-ini.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/lpdf-ini.lua b/tex/context/base/mkiv/lpdf-ini.lua index fabb45286..e2a85bccf 100644 --- a/tex/context/base/mkiv/lpdf-ini.lua +++ b/tex/context/base/mkiv/lpdf-ini.lua @@ -213,8 +213,15 @@ end -- funny values for tx and ty -function lpdf.rectangle(width,height,depth) +function lpdf.rectangle(width,height,depth,offset) local tx, ty = pdfgetpos() + if offset then + tx = tx - offset + ty = ty + offset + width = width + 2*offset + height = height + offset + depth = depth + offset + end if pdfhasmatrix() then local rx, sx, sy, ry = pdfgetmatrix() return |