Fix NM field for pdf annot Writer

This commit is contained in:
Svetlana Kulikova
2023-09-27 17:43:55 +03:00
parent e322c6585d
commit 3d8782e616
5 changed files with 16 additions and 0 deletions

View File

@ -1741,6 +1741,8 @@ HRESULT CPdfWriter::AddAnnotField(NSFonts::IApplicationFonts* pAppFonts, CAnnotF
pAnnot->SetRect(oRect);
int nFlags = oInfo.GetFlag();
if (nFlags & (1 << 0))
pAnnot->SetNM(oInfo.GetNM());
if (nFlags & (1 << 1))
pAnnot->SetContents(oInfo.GetContents());
if (nFlags & (1 << 2))