I have a use case where I needed the functionality provided by a PdfMemDocument 
but also needed to know what the key length was. There is no easy way to do 
this. I could
1) Re-implement my solution using PdfParser
2) Open the document with both a PdfParser and a PdfMemDocument
3) Copy the implementation of PdfMemDocument and add an extra function to my 
version
4) Update PdfMemDocument and rebuild PoDoFo - which is what I ended up doing

But that means I need to do that for every release of PoDoFo. Not really that 
inviting.

My suggesting is that PdfMemDocument has a new function similar to PdfParser:
const PdfEncrypt* GetEncrypt();
Which returns the internal PdfEncrypt member.

Then you can drop all the Is*Allowed() functions.

In fact the user could simply:
my_doc->GetEncrypt()->IsPrintAllowed();
or
const PdfEncrypt* encrypt = my_doc->GetEncrypt();
encrypt->IsPrintAllowed();

Anyway that's my request - nice library BTW.

Peter.
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to