Précédent   Forum des professionnels en informatique > Logiciels > Solutions d'entreprise > Business Intelligence > Jasper > iReport
iReport Forum d'entraide sur iReport
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 26/04/2011, 10h38   #1
Invité de passage
 
Inscription : mars 2010
Messages : 6
Détails du profil
Informations forums :
Inscription : mars 2010
Messages : 6
Points : 0
Points : 0
Par défaut generer un pdf proteger en ecriture

Bonjour,

Travaillant actuellement sur ireport, je génère des fichiers pdf via eclipse, en java.

Je voudrais savoir par quel moyen je pourrais générer des pdf protégés en écriture ?

Merci.
lachik est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/04/2011, 17h08   #2
Invité de passage
 
Inscription : mars 2010
Messages : 6
Détails du profil
Informations forums :
Inscription : mars 2010
Messages : 6
Points : 0
Points : 0
J'ai bien vu ca sur la FAQ jasper/ireport, mais je vous avouerais que je ne comprend pas tout

http://jaub.developpez.com/faq/jaspe...E_JASPERREPORT
lachik est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/04/2011, 17h21   #3
Invité de passage
 
Inscription : mars 2010
Messages : 6
Détails du profil
Informations forums :
Inscription : mars 2010
Messages : 6
Points : 0
Points : 0
j'ai trouvé ce morceau de code :

Code :
1
2
3
4
5
6
7
8
9
pdfExporter.setParameter (JRPdfExporterParameter.IS_ENCRYPTED, Boolean.TRUE);
pdfExporter.setParameter(JRPdfExporterParameter.IS_128_BIT_KEY, Boolean.TRUE); 
pdfExporter.setParameter (JRPdfExporterParameter.IS_128_BIT_KEY, Boolean.TRUE);
pdfExporter.setParameter(JRPdfExporterParameter.USER_PASSWORD, "jasper"); 
pdfExporter.setParameter (JRPdfExporterParameter.USER_PASSWORD, "jaspe");
pdfExporter.setParameter(JRPdfExporterParameter.OWNER_PASSWORD, "reports"); 
pdfExporter.setParameter (JRPdfExporterParameter.OWNER_PASSWORD, des «rapports»);
pdfExporter.setParameter(JRPdfExporterParameter.PERMISSIONS new Integer(PdfWriter.AllowModifyContents)); 
pdfExporter.setParameter (JRPdfExporterParameter.PERMISSIONS new Integer (PdfWriter.AllowModifyContents));
mais toujours pas ....

[Edit]
Plutôt:

Code :
1
2
3
4
pdfExporter.setParameter (JRPdfExporterParameter.IS_ENCRYPTED, Boolean.TRUE);
pdfExporter.setParameter(JRPdfExporterParameter.USER_PASSWORD, "jasper"); 
pdfExporter.setParameter(JRPdfExporterParameter.OWNER_PASSWORD, "reports"); 
pdfExporter.setParameter(JRPdfExporterParameter.PERMISSIONS new Integer(PdfWriter.AllowModifyContents));
lachik est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 06h59.


 
 
 
 
Partenaires

Hébergement Web