add comment regarding rotation direction

This commit is contained in:
Richard Schreiber
2022-10-04 13:27:37 +02:00
parent 37cfc8eb62
commit 3a1eca7d9c
+1
View File
@@ -929,6 +929,7 @@ class Renderer:
bg_page = copy.copy(self.bg_pdf.pages[i])
bg_rotation = bg_page.get('/Rotate')
if bg_rotation:
# /Rotate is clockwise, transformation.rotate is counter-clockwise
t = Transformation().rotate(bg_rotation)
w = float(page.mediabox.getWidth())
h = float(page.mediabox.getHeight())