Ich habe das Problem, dass die Verschlüsselung der erzeugten PDF Datei einwandfrei funktioniert. Wenn ich allerdings den Modus auf PDF/A umstelle, dann wird das Passwort nicht mehr abgefragt - PDF wird sofort lesbar geöffnet. Das ist ein echtes Problem, weil die erzeugte PDF besonders schützenswerte Daten enthält. Ich benötige also eine Passwortabfrage. Das erzeugte PDF darf auch nicht verändert werden können. Soweit ich es verstanden habe, sind nur PDF/A Dateien nicht veränderlich und sicher.
Die Parameter werden vom Programm aus gesetzt:
Startformular.LL23.LlXSetParameter LL_LLX_EXTENSIONTYPE_EXPORT, _
"PDF", "PDF.Encryption.EncryptFile", 1
Startformular.LL23.LlXSetParameter LL_LLX_EXTENSIONTYPE_EXPORT, _
"PDF", "PDF.Title", "Rechnung"
Startformular.LL23.LlXSetParameter LL_LLX_EXTENSIONTYPE_EXPORT, _
"PDF", "PDF.UserPassword", "123"
Startformular.LL23.LlXSetParameter LL_LLX_EXTENSIONTYPE_EXPORT, _
"PDF", "PDF.OwnerPassword", "123"
Startformular.LL23.LlXSetParameter LL_LLX_EXTENSIONTYPE_EXPORT, _
"PDF", "PDF.Encryption.EnablePrinting", 1
Startformular.LL23.LlXSetParameter LL_LLX_EXTENSIONTYPE_EXPORT, _
"PDF", "PDF.Encryption.EnableChanging", "0"
Startformular.LL23.LlXSetParameter LL_LLX_EXTENSIONTYPE_EXPORT, _
"PDF", "PDF.Encryption.EnableCopying", "0"
Startformular.LL23.LlXSetParameter LL_LLX_EXTENSIONTYPE_EXPORT, _
"PDF", "PDF.Encryption.Level", "1"
Startformular.LL23.LlXSetParameter LL_LLX_EXTENSIONTYPE_EXPORT, _
"PDF", "PDF.CompressStreamMethod", "3"
Startformular.LL23.LlXSetParameter LL_LLX_EXTENSIONTYPE_EXPORT, _
"PDF", "PDF.PDFAMode", "1"
Startformular.LL23.LlXSetParameter LL_LLX_EXTENSIONTYPE_EXPORT, _
"PDF", "PDF.FontMode", "8"
Startformular.LL23.LlXSetParameter LL_LLX_EXTENSIONTYPE_EXPORT, _
"PDF", "Export.File", strPDFDatei
Startformular.LL23.LlXSetParameter LL_LLX_EXTENSIONTYPE_EXPORT, _
"PDF", "Export.Path", strPDFVerzeichnis
Startformular.LL23.LlXSetParameter LL_LLX_EXTENSIONTYPE_EXPORT, _
"PDF", "Export.Quiet", "1"
Habe ich die Parameter vielleicht in der falschen Reihenfolge gesetzt? Oder habe ich etwas anders nicht bedacht? Danke für die Unterstützung.