Index: src/doc/SkDocument_PDF.cpp |
diff --git a/src/doc/SkDocument_PDF.cpp b/src/doc/SkDocument_PDF.cpp |
index 781885dc1317a74fe1ddb883d7b361d5a851968a..bc91a969e68826c5266d2e7941440902364c7648 100644 |
--- a/src/doc/SkDocument_PDF.cpp |
+++ b/src/doc/SkDocument_PDF.cpp |
@@ -44,6 +44,8 @@ protected: |
fDevice->setRasterDpi(fRasterDpi); |
} |
fCanvas = SkNEW_ARGS(SkCanvas, (fDevice)); |
+ fCanvas->translate(trimBox.x(), trimBox.y()); |
+ fCanvas->clipRect(SkRect::MakeWH(trimBox.width(), trimBox.height())); |
vandebo (ex-Chrome)
2014/11/11 15:44:53
Do headers and footers still work with this approa
|
return fCanvas; |
} |