I don't often have to use that script, but I have had it available for a while, and have never had any issues with it when I do use it.
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of John Yeung
Sent: Wednesday, November 21, 2018 10:14 AM
To: RPG programming on the IBM i / System i
Subject: Re: Protect with password existing pdf documents
On Wed, Nov 21, 2018 at 2:57 AM Jose Luis Hernandez Riesgo <mac1999@xxxxxxxxx> wrote:
i Found some documentation about PyPDF2 utility library and i'll try
use it.
Did you check out the link Kevin already provided for a sample script?
Presumably he is using that script himself already. Or at least that seems to be what he used for his test, which he said was successful.
Repeated here:
Create a file with the source on this page.
http://gauravvichare.com/how-to-password-protect-pdf-file-using-pyth
on/
Then something like this works in QSH.
python3 /kevin/python/encryptpdf.py -i
/kevin/QPQXPRTF__MN207B_KEVIN_329738_1_20181116.pdf -p kevin
Note that I have not tried this myself. I just wanted to make sure that people are not rewriting things from scratch if they don't have to.
John Y.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
As an Amazon Associate we earn from qualifying purchases.