Hi,

It is possible to set these attributes now.

You can check permissions using the PdfDocument methods:

    virtual bool IsPrintAllowed() const = 0; 
    virtual bool IsEditAllowed() const = 0;
    virtual bool IsCopyAllowed() const = 0;
    virtual bool IsEditNotesAllowed() const = 0;
    virtual bool IsFillAndSignAllowed() const = 0;
    virtual bool IsAccessibilityAllowed() const = 0;
    virtual bool IsDocAssemblyAllowed() const = 0;
    virtual bool IsHighPrintAllowed() const = 0;

You can set them using the PdfEncrypt constructor (enum 
PdfEncrypt::EPdfPermissions) or PdfMemDocument::SetEncrypted. If you only 
supply an owner password but no user password, you can encrypt the document, 
set security attributes and the user can open the PDF without having to add a 
password.

Hope this is what you need. For a example code look in podofoencrypt!

regards,
        Dom

PS: Thanks for your patch, I will integrate it as soon as time allows!


Am Montag, 9. Juni 2008 schrieb EXTERNAL Loch Sebastian (Firma Ferchau; 
BhP/TEF17):
> Hello list,
>
> I need to set some security attributes.
>
> I already searched the mailing list archive and found
> an similar question from last July and a reply from Dom
> that it isn't possible right now but that's planned.
>
> Therefore again, is it possible to set security attibutes (printing,
> copying, signing, extraction, changing, text export)?
> If not when this will eventually be added to the library?
>
> Thanks.
>
> Regards.
> Sebastian
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Podofo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/podofo-users



-- 
**********************************************************************
Dominik Seichter - [EMAIL PROTECTED]
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to