From eed5be06c028f0ab75daded5331cded805438c72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Fri, 3 Apr 2026 14:38:34 +0200 Subject: [PATCH 1/4] fix regression in 76cab1866712105bf03f47cebdf568c0cc674a09 --- src/libgourou.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/libgourou.cpp b/src/libgourou.cpp index e34b676..80a5f78 100644 --- a/src/libgourou.cpp +++ b/src/libgourou.cpp @@ -1513,7 +1513,8 @@ namespace gourou } } - /* Delete objects that reference EBX objects, except in trailer */ + /* Delete objects that reference EBX objects, + except in trailer and objects that references Info */ for(it = objects.begin(); it != objects.end(); it++) { uPDFParser::Object* object = *it; @@ -1522,12 +1523,18 @@ namespace gourou { uPDFParser::Reference* encrypt = (uPDFParser::Reference*)(*object)["Encrypt"]; + if (object->hasKey("Info")) + { + object->deleteKey("Encrypt"); + continue; + } + /* Delete EBX objects */ for(ebxIt = ebxObjects.begin(); ebxIt != ebxObjects.end(); ebxIt++) { if (encrypt->value() == (*ebxIt)->objectId()) { - GOUROU_LOG(ERROR, "Delete stream id " << object->objectId()); + GOUROU_LOG(DEBUG, "Delete stream id " << object->objectId()); parser.removeObject(object); break; @@ -1540,7 +1547,7 @@ namespace gourou for(it = ebxObjects.begin(); it != ebxObjects.end(); it++) parser.removeObject(*it); - uPDFParser::Object& trailer = parser.getTrailer(); + uPDFParser::Object& trailer = parser.getTrailer(); trailer.deleteKey("Encrypt"); parser.write(filenameOut); From 2265b1d7106472f0ea7800b68a35c8ba9f9d1511 Mon Sep 17 00:00:00 2001 From: teymour Date: Tue, 7 Apr 2026 17:35:50 +0200 Subject: [PATCH 2/4] new working adobe's ade activate url --- include/libgourou.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libgourou.h b/include/libgourou.h index 921937b..995c64c 100644 --- a/include/libgourou.h +++ b/include/libgourou.h @@ -34,7 +34,7 @@ #endif #ifndef ACS_SERVER -#define ACS_SERVER "http://adeactivate.adobe.com/adept" +#define ACS_SERVER "https://adeactivate.adobe.com/adept" #endif #define LIBGOUROU_VERSION "0.8.8" From 334aa4dae5726f6c621efd639c84d9e16bb74355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sun, 12 Apr 2026 19:41:05 +0200 Subject: [PATCH 3/4] Update version to 0.8.9 --- include/libgourou.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libgourou.h b/include/libgourou.h index 995c64c..d506494 100644 --- a/include/libgourou.h +++ b/include/libgourou.h @@ -37,7 +37,7 @@ #define ACS_SERVER "https://adeactivate.adobe.com/adept" #endif -#define LIBGOUROU_VERSION "0.8.8" +#define LIBGOUROU_VERSION "0.8.9" namespace gourou { From 324c566756fa612347d79696ad4fed879d33961a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sun, 12 Apr 2026 19:44:11 +0200 Subject: [PATCH 4/4] Fix help of adept_load_mgt --- utils/adept_loan_mgt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/adept_loan_mgt.cpp b/utils/adept_loan_mgt.cpp index ab46d98..bb938d2 100644 --- a/utils/adept_loan_mgt.cpp +++ b/utils/adept_loan_mgt.cpp @@ -355,7 +355,7 @@ static void usage(const char* cmd) std::cout << " " << "-l|--list" << "\t\t" << "List all loaned books" << std::endl; std::cout << " " << "-r|--return" << "\t\t" << "Return a loaned book" << std::endl; std::cout << " " << "-d|--delete" << "\t\t" << "Delete a loan entry without returning it" << std::endl; - std::cout << " " << "-N|--no-notify" << "\t\t" << "Don't notify server, even if requested" << std::endl; + std::cout << " " << "-N|--no-notify" << "\t" << "Don't notify server, even if requested" << std::endl; std::cout << " " << "-v|--verbose" << "\t\t" << "Increase verbosity, can be set multiple times" << std::endl; std::cout << " " << "-V|--version" << "\t\t" << "Display libgourou version" << std::endl; std::cout << " " << "-h|--help" << "\t\t" << "This help" << std::endl; @@ -396,7 +396,7 @@ int main(int argc, char** argv) {0, 0, 0, 0 } }; - c = getopt_long(argc, argv, "d:lr:D:vVh", + c = getopt_long(argc, argv, "d:lr:D:NvVh", long_options, &option_index); if (c == -1) break;