mirror of
https://forge.soutade.fr/soutade/libgourou.git
synced 2026-07-14 02:56:59 +00:00
Compare commits
No commits in common. "324c566756fa612347d79696ad4fed879d33961a" and "d7bd98e719b88673cd59edb694153c1e34207a26" have entirely different histories.
324c566756
...
d7bd98e719
3 changed files with 7 additions and 14 deletions
|
|
@ -34,10 +34,10 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ACS_SERVER
|
#ifndef ACS_SERVER
|
||||||
#define ACS_SERVER "https://adeactivate.adobe.com/adept"
|
#define ACS_SERVER "http://adeactivate.adobe.com/adept"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LIBGOUROU_VERSION "0.8.9"
|
#define LIBGOUROU_VERSION "0.8.8"
|
||||||
|
|
||||||
namespace gourou
|
namespace gourou
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1513,8 +1513,7 @@ namespace gourou
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Delete objects that reference EBX objects,
|
/* Delete objects that reference EBX objects, except in trailer */
|
||||||
except in trailer and objects that references Info */
|
|
||||||
for(it = objects.begin(); it != objects.end(); it++)
|
for(it = objects.begin(); it != objects.end(); it++)
|
||||||
{
|
{
|
||||||
uPDFParser::Object* object = *it;
|
uPDFParser::Object* object = *it;
|
||||||
|
|
@ -1523,18 +1522,12 @@ namespace gourou
|
||||||
{
|
{
|
||||||
uPDFParser::Reference* encrypt = (uPDFParser::Reference*)(*object)["Encrypt"];
|
uPDFParser::Reference* encrypt = (uPDFParser::Reference*)(*object)["Encrypt"];
|
||||||
|
|
||||||
if (object->hasKey("Info"))
|
|
||||||
{
|
|
||||||
object->deleteKey("Encrypt");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Delete EBX objects */
|
/* Delete EBX objects */
|
||||||
for(ebxIt = ebxObjects.begin(); ebxIt != ebxObjects.end(); ebxIt++)
|
for(ebxIt = ebxObjects.begin(); ebxIt != ebxObjects.end(); ebxIt++)
|
||||||
{
|
{
|
||||||
if (encrypt->value() == (*ebxIt)->objectId())
|
if (encrypt->value() == (*ebxIt)->objectId())
|
||||||
{
|
{
|
||||||
GOUROU_LOG(DEBUG, "Delete stream id " << object->objectId());
|
GOUROU_LOG(ERROR, "Delete stream id " << object->objectId());
|
||||||
|
|
||||||
parser.removeObject(object);
|
parser.removeObject(object);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -355,7 +355,7 @@ static void usage(const char* cmd)
|
||||||
std::cout << " " << "-l|--list" << "\t\t" << "List all loaned books" << std::endl;
|
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 << " " << "-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 << " " << "-d|--delete" << "\t\t" << "Delete a loan entry without returning it" << std::endl;
|
||||||
std::cout << " " << "-N|--no-notify" << "\t" << "Don't notify server, even if requested" << std::endl;
|
std::cout << " " << "-N|--no-notify" << "\t\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|--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 << " " << "-V|--version" << "\t\t" << "Display libgourou version" << std::endl;
|
||||||
std::cout << " " << "-h|--help" << "\t\t" << "This help" << 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 }
|
{0, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
c = getopt_long(argc, argv, "d:lr:D:NvVh",
|
c = getopt_long(argc, argv, "d:lr:D:vVh",
|
||||||
long_options, &option_index);
|
long_options, &option_index);
|
||||||
if (c == -1)
|
if (c == -1)
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue