Fix bug 58084

This commit is contained in:
Svetlana Kulikova
2024-08-22 15:16:55 +03:00
parent e8cf13e89d
commit 1ac4ec3b0d
3 changed files with 5 additions and 2 deletions

View File

@ -1617,7 +1617,7 @@ BYTE* CPdfReader::GetAPAnnots(int nRasterW, int nRasterH, int nBackgroundColor,
sType = oObj.getName();
oObj.free(); oAnnot.free();
if (sType == "Widget")
if (sType == "Widget" || sType == "Highlight")
{
oAnnotRef.free();
continue;

View File

@ -1846,7 +1846,10 @@ CAnnotTextMarkup::CAnnotTextMarkup(PDFDoc* pdfDoc, Object* oAnnotRef, int nPageI
oObj.free();
if (sType == "Highlight")
{
m_nSubtype = 8;
m_unAFlags &= ~(1 << 6);
}
else if (sType == "Underline")
m_nSubtype = 9;
else if (sType == "Squiggly")

View File

@ -172,6 +172,7 @@ protected:
CAnnot(PDFDoc* pdfDoc, Object* oAnnotRef, int nPageIndex);
std::string DictLookupString(Object* pObj, const char* sName, int nByte);
unsigned int m_unAFlags;
unsigned int m_unFlags;
double m_dHeight; // Высота холста, для Y трансформации
double m_dX; // Смещение по X для трансформации
@ -193,7 +194,6 @@ private:
};
CBorderType* getBorder(Object* oBorder, bool bBSorBorder);
unsigned int m_unAFlags;
unsigned int m_unAnnotFlag; // Флаг аннотации - F
unsigned int m_unRefNum; // Номер ссылки на объект
unsigned int m_unPage; // Страница