diff -Naur libreoffice-26.2.0.3.orig/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx libreoffice-26.2.0.3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
|
old
|
new
|
|
| 712 | 712 | } |
| 713 | 713 | |
| 714 | 714 | #if POPPLER_CHECK_VERSION(0, 71, 0) |
| 715 | | void PDFOutDev::setDefaultCTM(const double *pMat) |
| | 715 | void PDFOutDev::setDefaultCTM(const std::array<double, 6> & pMat) |
| 716 | 716 | #else |
| 717 | 717 | void PDFOutDev::setDefaultCTM(double *pMat) |
| 718 | 718 | #endif |
| … |
… |
|
| 737 | 737 | { |
| 738 | 738 | assert(state); |
| 739 | 739 | |
| 740 | | const double* const pMat = state->getCTM(); |
| 741 | | assert(pMat); |
| | 740 | const std::array<double, 6> pMat = state->getCTM(); |
| 742 | 741 | |
| 743 | 742 | printf( "updateCtm %f %f %f %f %f %f\n", |
| 744 | 743 | normalize(pMat[0]), |
| … |
… |
|
| 1044 | 1043 | |
| 1045 | 1044 | double csdx = 0.0; |
| 1046 | 1045 | double csdy = 0.0; |
| 1047 | | if (!state->getFont() || !state->getFont()->getWMode()) |
| | 1046 | if (!state->getFont() || state->getFont()->getWMode() == GfxFont::WritingMode::Horizontal) |
| 1048 | 1047 | { |
| 1049 | 1048 | csdx = state->getCharSpace(); |
| 1050 | 1049 | if (*u == ' ') |
| … |
… |
|
| 1067 | 1066 | const double aPositionX(x-originX); |
| 1068 | 1067 | const double aPositionY(y-originY); |
| 1069 | 1068 | |
| 1070 | | const double* pTextMat=state->getTextMat(); |
| | 1069 | const std::array<double, 6> pTextMat=state->getTextMat(); |
| 1071 | 1070 | printf( "drawChar %f %f %f %f %f %f %f %f %f ", |
| 1072 | 1071 | normalize(aPositionX), |
| 1073 | 1072 | normalize(aPositionY), |
| … |
… |
|
| 1348 | 1347 | |
| 1349 | 1348 | const int nDPI = 72; // GfxState seems to have 72.0 as magic for some reason |
| 1350 | 1349 | auto pSplashGfxState = new GfxState(nDPI, nDPI, &aBox, 0, false); |
| 1351 | | auto pSplashOut = new SplashOutputDev(splashModeRGB8, 1, false, nullptr); |
| | 1350 | auto pSplashOut = new SplashOutputDev(splashModeRGB8, 1, nullptr); |
| 1352 | 1351 | pSplashOut->setEnableFreeType(false); |
| 1353 | 1352 | pSplashOut->startDoc(m_pDoc); |
| 1354 | 1353 | pSplashOut->startPage(0 /* pageNum */, pSplashGfxState, nullptr /* xref */); |
diff -Naur libreoffice-26.2.0.3.orig/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx libreoffice-26.2.0.3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
|
old
|
new
|
|
| 84 | 84 | isUnderline(rSrc.isUnderline), |
| 85 | 85 | size(rSrc.size) |
| 86 | 86 | { |
| 87 | | familyName.append(&rSrc.getFamilyName()); |
| | 87 | familyName.append(rSrc.getFamilyName()); |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | FontAttributes& operator=( const FontAttributes& rSrc ) |
| 91 | 91 | { |
| 92 | 92 | familyName.clear(); |
| 93 | | familyName.append(&rSrc.getFamilyName()); |
| | 93 | familyName.append(rSrc.getFamilyName()); |
| 94 | 94 | |
| 95 | 95 | isEmbedded = rSrc.isEmbedded; |
| 96 | 96 | maFontWeight= rSrc.maFontWeight; |
| … |
… |
|
| 103 | 103 | |
| 104 | 104 | bool operator==(const FontAttributes& rFont) const |
| 105 | 105 | { |
| 106 | | return getFamilyName().cmp(&rFont.getFamilyName())==0 && |
| | 106 | return getFamilyName().compare(rFont.getFamilyName())==0 && |
| 107 | 107 | isEmbedded == rFont.isEmbedded && |
| 108 | 108 | maFontWeight == rFont.maFontWeight && |
| 109 | 109 | isItalic == rFont.isItalic && |
| … |
… |
|
| 172 | 172 | |
| 173 | 173 | // Set default transform matrix. |
| 174 | 174 | #if POPPLER_CHECK_VERSION(0, 71, 0) |
| 175 | | virtual void setDefaultCTM(const double *ctm) override; |
| | 175 | virtual void setDefaultCTM(const std::array<double, 6> & ctm) override; |
| 176 | 176 | #else |
| 177 | 177 | virtual void setDefaultCTM(double *ctm) override; |
| 178 | 178 | #endif |