Créer un pdf et le protéger contre les modifications par VBA
Bonjour à tous
Est-il possible de protéger un fichier pdf contre sa modification durant sa création via VBA :
j'ai adobe acrobat creator
j'ai mis les référence :
- Adobe Acrobat 10.0 typpe Library
- Adobe Access 3.0 type Library
voici la macro que j'utilise pour la création du pdf :
Code:
1 2 3 4 5 6 7 8 9 10 11
|
Sub PDF()
' PDF Macro
Range("H4:J50").Select
Range("J2").Activate
ActiveSheet.PageSetup.PrintArea = "$H$4:$J$50"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=NFC, Quality:=xlQualityStandard, _
IncludeDocProperties:=False, IgnorePrintAreas:=False, OpenAfterPublish:=True
End Sub |
merci d'avance pour votre aide