summaryrefslogtreecommitdiff
path: root/public/fpdf_edit.h
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-06-19 15:45:42 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-19 15:45:42 +0000
commitc765d2ac867611935cff6b5c5a2ff8575fe85162 (patch)
tree607fbc0d819dfb4101b7b03210f0545d9b1eb754 /public/fpdf_edit.h
parenta700b851c31a67ce4034731e8c06808498a9903b (diff)
downloadpdfium-c765d2ac867611935cff6b5c5a2ff8575fe85162.tar.xz
Add FPDFText_GetMatrix() API
This is similar to FPDFPath_GetMatrix(), but works on text, not path objects. Change-Id: If268362b7fa4398124b953e0e2225074523f5f65 Reviewed-on: https://pdfium-review.googlesource.com/35434 Reviewed-by: dsinclair <dsinclair@chromium.org> Reviewed-by: Nicolás Peña Moreno <npm@chromium.org> Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Diffstat (limited to 'public/fpdf_edit.h')
-rw-r--r--public/fpdf_edit.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h
index d3d7c4b277..6df5e32370 100644
--- a/public/fpdf_edit.h
+++ b/public/fpdf_edit.h
@@ -1065,6 +1065,31 @@ FPDFText_SetFillColor(FPDF_PAGEOBJECT text_object,
unsigned int B,
unsigned int A);
+// Experimental API.
+// Get the transform matrix of a text object.
+//
+// text - handle to a text.
+// a - matrix value.
+// b - matrix value.
+// c - matrix value.
+// d - matrix value.
+// e - matrix value.
+// f - matrix value.
+//
+// The matrix is composed as:
+// |a c e|
+// |b d f|
+// and used to scale, rotate, shear and translate the text.
+//
+// Returns TRUE on success.
+FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFText_GetMatrix(FPDF_PAGEOBJECT text,
+ double* a,
+ double* b,
+ double* c,
+ double* d,
+ double* e,
+ double* f);
+
// Close a loaded PDF font.
//
// font - Handle to the loaded font.