diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-04-10 07:45:06 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-06-01 08:59:16 +0200 |
commit | 5ae0e3c02878835942c0f3563295e473f0e8d329 (patch) | |
tree | 832d34f8ee7c65a5cad5e2a3543146ebbfb2896a /svx | |
parent | d77dc320738894ce22c31e5463325994af77436d (diff) |
svx: support PDF text color
Change-Id: I7fa675c6560504e4fc7917e19cac3cceb2700d8e
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdpdf.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdpdf.cxx b/svx/source/svdraw/svdpdf.cxx index 60b81b71c999..cc124a6b4265 100644 --- a/svx/source/svdraw/svdpdf.cxx +++ b/svx/source/svdraw/svdpdf.cxx @@ -229,8 +229,6 @@ void ImpSdrPdfImport::DoLoopActions(SvdProgressInfo* pProgrInfo, sal_uInt32* pAc if (pPageObject == nullptr) continue; - SAL_WARN("sd.filter", "Got page object number: "); - const int nPageObjectType = FPDFPageObj_GetType(pPageObject); switch (nPageObjectType) { @@ -1050,6 +1048,11 @@ void ImpSdrPdfImport::ImportText(FPDF_PAGEOBJECT pPageObject, int nPageObjectInd SAL_WARN("sd.filter", "Got Font Pixel Size: " << dFontSize); dFontSize = lcl_ToLogic(dFontSize); SAL_WARN("sd.filter", "Got Font Logic Size: " << dFontSize); + + unsigned int nR, nG, nB, nA; + if (FPDFTextObj_GetStrokeColor(pPageObject, &nR, &nG, &nB, &nA)) + mpVD->SetTextColor(Color(nR, nG, nB)); + vcl::Font aFnt = mpVD->GetFont(); aFnt.SetFontSize(Size(dFontSize, dFontSize)); mpVD->SetFont(aFnt); |