@@ -542,6 +542,13 @@ void ReadInteractiveForms(BYTE* pWidgets, int& i)
542
542
std::cout << " Font button " << std::string ((char *)(pWidgets + i), nPathLength) << " , " ;
543
543
i += nPathLength;
544
544
}
545
+ if (nFlags & (1 << 20 ))
546
+ {
547
+ nPathLength = READ_INT (pWidgets + i);
548
+ i += 4 ;
549
+ std::cout << " OMetadata " << std::string ((char *)(pWidgets + i), nPathLength) << " , " ;
550
+ i += nPathLength;
551
+ }
545
552
546
553
// Action
547
554
@@ -807,6 +814,16 @@ void ReadAnnotAP(BYTE* pWidgetsAP, int& i)
807
814
std::string arrBlendMode[] = { " Normal" , " Multiply" , " Screen" , " Overlay" , " Darken" , " Lighten" , " ColorDodge" , " ColorBurn" , " HardLight" ,
808
815
" SoftLight" , " Difference" , " Exclusion" , " Hue" , " Saturation" , " Color" , " Luminosity" };
809
816
std::cout << " Type " << arrBlendMode[nPathLength] << " , " ;
817
+
818
+ int bText = READ_BYTE (pWidgetsAP + i);
819
+ i += 1 ;
820
+ if (bText != 0 )
821
+ {
822
+ nPathLength = READ_INT (pWidgetsAP + i);
823
+ i += 4 ;
824
+ std::cout << " Text " << std::string ((char *)(pWidgetsAP + i), nPathLength) << " , " ;
825
+ i += nPathLength;
826
+ }
810
827
}
811
828
std::cout << std::endl;
812
829
}
@@ -1090,7 +1107,7 @@ int main(int argc, char* argv[])
1090
1107
}
1091
1108
1092
1109
// GLYPHS
1093
- if (true && nPagesCount > 0 )
1110
+ if (false && nPagesCount > 0 )
1094
1111
{
1095
1112
BYTE* pGlyphs = GetGlyphs (pGrFile, nTestPage);
1096
1113
nLength = READ_INT (pGlyphs);
@@ -1165,7 +1182,7 @@ int main(int argc, char* argv[])
1165
1182
}
1166
1183
1167
1184
// INTERACTIVE FORMS
1168
- if (false )
1185
+ if (true )
1169
1186
{
1170
1187
ReadInteractiveFormsFonts (pGrFile, 1 );
1171
1188
ReadInteractiveFormsFonts (pGrFile, 2 );
0 commit comments