diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-02-18 15:14:05 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-02-18 18:25:48 +0100 |
commit | 5cec6b4c3df09b59464c9a492b60b86ffd0d5311 (patch) | |
tree | 9519935f08e1f653943821e58d6f0eba32c7a0f9 /include | |
parent | 0765872295e581ea6ae5a07e12916a552a1543ee (diff) | |
download | qpdf-5cec6b4c3df09b59464c9a492b60b86ffd0d5311.tar.zst |
Add QPDFPageObjectHelper::getMatrixForFormXObjectPlacement
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFPageObjectHelper.hh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/qpdf/QPDFPageObjectHelper.hh b/include/qpdf/QPDFPageObjectHelper.hh index 73344caf..76f42dbd 100644 --- a/include/qpdf/QPDFPageObjectHelper.hh +++ b/include/qpdf/QPDFPageObjectHelper.hh @@ -24,6 +24,7 @@ #include <qpdf/QPDFObjectHelper.hh> #include <qpdf/QPDFAnnotationObjectHelper.hh> +#include <qpdf/QPDFMatrix.hh> #include <qpdf/DLL.h> @@ -306,6 +307,16 @@ class QPDFPageObjectHelper: public QPDFObjectHelper bool allow_shrink = true, bool allow_expand = false); + // Return the transformation matrix that translates from the given + // form XObject's coordinate system into the given rectangular + // region on the page. The parameters have the same meaning as for + // placeFormXObject. + QPDF_DLL + QPDFMatrix getMatrixForFormXObjectPlacement( + QPDFObjectHandle fo, QPDFObjectHandle::Rectangle rect, + bool invert_transformations = true, + bool allow_shrink = true, bool allow_expand = false); + // If a page is rotated using /Rotate in the page's dictionary, // instead rotate the page by the same amount by altering the // contents and removing the /Rotate key. This method adjusts the |