Andre, Coloco o PDF dentro de um arquivo RAR com senha. https://metacpan.org/module/Archive::Rar
[]'s 2012/4/25 Hélder Máximo Botter Ribas <helderri...@gmail.com>: > Para que servia a senha mesmo, huahuahua > > > 2012/4/25 Stanislaw Pusep <creakt...@gmail.com> >> >> Sei fazer o inverso: tirar a senha que restringe a impressão: >> >> $ gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sFONTPATH=xfonts;. >> -sPDFPassword= -dPDFSETTINGS=/prepress -dPassThroughJPEGImages=true >> -sOutputFile=new.pdf old.pdf >> >> Talvez sirva como ponto de partida, ehehe! >> >> ABS() >> >> >> On Wed, Apr 25, 2012 at 19:27, Andre Carneiro >> <andregarciacarne...@gmail.com> wrote: >> > Olá Monges! >> > >> > Preciso fazer o seguinte: >> > >> > 1 - Abrir um arquivo PDF existente; >> > 2 - Salvar um password para esse arquivo >> > 3 - Salvar esse arquivo com esse usuario/password >> > >> > O único módulo que eu encontrei que em teoria faz isso com um arquivo >> > pre-existente é o CAM::PDF. Codigo no link abaixo >> > >> > http://pastebin.com/iXSftdrU >> > >> > Nenhuma mensagem de erro, mas o documento continua sendo aberto sem >> > pedir >> > senha. >> > >> > Alguma sugestão? >> > >> > >> > Obrigado! >> > >> > -- >> > André Garcia Carneiro >> > Analista/Desenvolvedor Perl >> > (11)82907780 >> > >> > =begin disclaimer >> > Sao Paulo Perl Mongers: http://sao-paulo.pm.org/ >> > SaoPaulo-pm mailing list: SaoPaulo-pm@pm.org >> > L<http://mail.pm.org/mailman/listinfo/saopaulo-pm> >> > =end disclaimer >> > >> =begin disclaimer >> Sao Paulo Perl Mongers: http://sao-paulo.pm.org/ >> SaoPaulo-pm mailing list: SaoPaulo-pm@pm.org >> L<http://mail.pm.org/mailman/listinfo/saopaulo-pm> >> =end disclaimer > > > > > -- > ------------------------------------ > Hélder Máximo Botter Ribas > ------------------------------------ > twitter: @hmbr > ------------------------------------ > > =begin disclaimer > Sao Paulo Perl Mongers: http://sao-paulo.pm.org/ > SaoPaulo-pm mailing list: SaoPaulo-pm@pm.org > L<http://mail.pm.org/mailman/listinfo/saopaulo-pm> > =end disclaimer > -- "If you’ve never written anything thoughtful, then you’ve never had any difficult, important, or interesting thoughts. That’s the secret: people who don’t write, are people who don’t think." =begin disclaimer Sao Paulo Perl Mongers: http://sao-paulo.pm.org/ SaoPaulo-pm mailing list: SaoPaulo-pm@pm.org L<http://mail.pm.org/mailman/listinfo/saopaulo-pm> =end disclaimer