Fix SaveToMemory

This commit is contained in:
Svetlana Kulikova
2025-04-28 14:12:49 +03:00
parent 109a5fe2b4
commit 9f4a145b48
14 changed files with 57 additions and 36 deletions

View File

@ -1670,6 +1670,19 @@ BYTE* CPdfReader::GetButtonIcon(int nBackgroundColor, int _nPageIndex, bool bBas
oRes.ClearWithoutAttack();
return bRes;
}
BYTE* CPdfReader::StreamToCData(BYTE* pSteam, int nLength)
{
NSWasm::CData oRes;
oRes.SkipLen();
oRes.Write(pSteam, nLength);
oRes.WriteLen();
BYTE* bRes = oRes.GetBuffer();
oRes.ClearWithoutAttack();
return bRes;
}
int GetPageAnnots(PDFDoc* pdfDoc, NSFonts::IFontManager* pFontManager, PdfReader::CPdfFontList *pFontList, NSWasm::CData& oRes, int nPageIndex, int nStartPage, int nStartRefID)
{
Page* pPage = pdfDoc->getCatalog()->getPage(nPageIndex);