aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-02-22 22:02:47 +0100
committerJay Berkenbilt <ejb@ql.org>2021-02-23 00:42:06 +0100
commit8e8c0d8290409358488b2a04af81771989944552 (patch)
tree49b330543ab82067d256e574a6b7efea7d2df044 /include
parent61d41e2e8858d8c51e097d8f993291dc210f30a5 (diff)
downloadqpdf-8e8c0d8290409358488b2a04af81771989944552.tar.zst
Add new placeFormXObject that takes a matrix reference
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFPageObjectHelper.hh11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/qpdf/QPDFPageObjectHelper.hh b/include/qpdf/QPDFPageObjectHelper.hh
index 1e3bdb3e..2feb1199 100644
--- a/include/qpdf/QPDFPageObjectHelper.hh
+++ b/include/qpdf/QPDFPageObjectHelper.hh
@@ -309,6 +309,17 @@ class QPDFPageObjectHelper: public QPDFObjectHelper
bool allow_shrink = true,
bool allow_expand = false);
+ // Alternative version that also fills in the transformation
+ // matrix that was used.
+ QPDF_DLL
+ std::string placeFormXObject(
+ QPDFObjectHandle fo, std::string const& name,
+ QPDFObjectHandle::Rectangle rect,
+ QPDFMatrix& cm,
+ bool invert_transformations = true,
+ 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