If the user enters an incorrect password when reading a protected pdf via
document::load_from_raw_data() an error is printed to stdout

 error: Incorrect password

However the load_from_raw_data() does not raise an exception and returns a
valid *document. However this document segfaults when we call for
example doc->pages().

I would have expected that load_from_raw_data() raises an exception instead
of just printing "incorrect password"?

If this is intended, what property of *document should I check to see if
document::load_from_raw_data() was successful?
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to