mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 05:24:10 +08:00
Merge remote-tracking branch 'origin/release/v9.3.0' into feature/pdf-print
This commit is contained in:
@ -469,6 +469,11 @@ BYTE* CPdfFile::GetWidgets()
|
||||
return NULL;
|
||||
return m_pInternal->pReader->GetWidgets();
|
||||
}
|
||||
void CPdfFile::SetPageFonts(int nPageIndex)
|
||||
{
|
||||
if (m_pInternal->pReader)
|
||||
m_pInternal->pReader->SetFonts(nPageIndex);
|
||||
}
|
||||
BYTE* CPdfFile::GetAnnotEmbeddedFonts()
|
||||
{
|
||||
if (!m_pInternal->pReader)
|
||||
@ -481,6 +486,12 @@ BYTE* CPdfFile::GetAnnotStandardFonts()
|
||||
return NULL;
|
||||
return m_pInternal->pReader->GetFonts(true);
|
||||
}
|
||||
BYTE* CPdfFile::GetGIDByUnicode(const std::wstring& wsFontName)
|
||||
{
|
||||
if (!m_pInternal->pReader)
|
||||
return NULL;
|
||||
return m_pInternal->pReader->GetGIDByUnicode(wsFontName);
|
||||
}
|
||||
std::wstring CPdfFile::GetFontPath(const std::wstring& wsFontName)
|
||||
{
|
||||
if (!m_pInternal->pReader)
|
||||
@ -967,6 +978,30 @@ HRESULT CPdfFile::put_BrushTransform(const Aggplus::CMatrix& oMatrix)
|
||||
return S_FALSE;
|
||||
return m_pInternal->pWriter->put_BrushTransform(oMatrix);
|
||||
}
|
||||
HRESULT CPdfFile::get_BrushOffset(double& offsetX, double& offsetY) const
|
||||
{
|
||||
if (!m_pInternal->pWriter)
|
||||
return S_FALSE;
|
||||
return m_pInternal->pWriter->get_BrushOffset(offsetX, offsetY);
|
||||
}
|
||||
HRESULT CPdfFile::put_BrushOffset(const double& offsetX, const double& offsetY)
|
||||
{
|
||||
if (!m_pInternal->pWriter)
|
||||
return S_FALSE;
|
||||
return m_pInternal->pWriter->put_BrushOffset(offsetX, offsetY);
|
||||
}
|
||||
HRESULT CPdfFile::get_BrushScale(bool& isScale, double& scaleX, double& scaleY) const
|
||||
{
|
||||
if (!m_pInternal->pWriter)
|
||||
return S_FALSE;
|
||||
return m_pInternal->pWriter->get_BrushScale(isScale, scaleX, scaleY);
|
||||
}
|
||||
HRESULT CPdfFile::put_BrushScale(bool isScale, const double& scaleX, const double& scaleY)
|
||||
{
|
||||
if (!m_pInternal->pWriter)
|
||||
return S_FALSE;
|
||||
return m_pInternal->pWriter->put_BrushScale(isScale, scaleX, scaleY);
|
||||
}
|
||||
|
||||
HRESULT CPdfFile::get_FontName(std::wstring* wsName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user