From 8e8c0d8290409358488b2a04af81771989944552 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Mon, 22 Feb 2021 16:02:47 -0500 Subject: Add new placeFormXObject that takes a matrix reference --- include/qpdf/QPDFPageObjectHelper.hh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') 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 -- cgit v1.2.3-70-g09d2