forked from soutade/libgourou
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0d77cf55e1 | |||
| 86a79cc381 |
+1
-1
@@ -37,7 +37,7 @@
|
||||
#define ACS_SERVER "http://adeactivate.adobe.com/adept"
|
||||
#endif
|
||||
|
||||
#define LIBGOUROU_VERSION "0.8.5"
|
||||
#define LIBGOUROU_VERSION "0.8.6"
|
||||
|
||||
namespace gourou
|
||||
{
|
||||
|
||||
+5
-1
@@ -1317,6 +1317,7 @@ namespace gourou
|
||||
std::vector<uPDFParser::Object*> objects = parser.objects();
|
||||
std::vector<uPDFParser::Object*>::iterator it;
|
||||
std::vector<uPDFParser::Object*>::reverse_iterator rIt;
|
||||
std::vector<uPDFParser::Object*> ebxObjects;
|
||||
unsigned char decryptedKey[16];
|
||||
int ebxId;
|
||||
|
||||
@@ -1375,7 +1376,7 @@ namespace gourou
|
||||
|
||||
if (object->objectId() == ebxId)
|
||||
{
|
||||
// object->deleteKey("Filter");
|
||||
ebxObjects.push_back(object);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -1485,6 +1486,9 @@ namespace gourou
|
||||
}
|
||||
}
|
||||
|
||||
for(it = ebxObjects.begin(); it != ebxObjects.end(); it++)
|
||||
parser.removeObject(*it);
|
||||
|
||||
uPDFParser::Object& trailer = parser.getTrailer();
|
||||
trailer.deleteKey("Encrypt");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user