You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Khaled Hassen <kh...@in-rgy.com> on 2016/07/22 19:22:02 UTC

Encrypt pd file

Hello,

I have a request from my client to generate employee payslip on pdf file from SAP, encrypt it and send it by mail to the employee.
For the encryption part I used the JAR file (PDFBox 1.8.12) that I downloaded from your website. I created SAP ABAP programme to call the JAR file. The testing were fine, the files were encrypted successfully and we were able to enter PWD when opening the files.
We have a problem with the EE using iPhone and iPad, when they tried to open the file they were not asked to enter a password, the file was opened automatically.
Please do you have an idea how to fix this issue.

Thanks a lot.



[cid:image002.jpg@01D1E429.FE68AD00]

Khaled HASSEN
SAP HR consultant

T 514 906-7767 x 734
C 438 936-5696
khaled.hassen@in-rgy.com<ma...@in-rgy.com>

474 Rue McGill - suite 333        T 1-855-906-7767
Montréal (Québec) H2Y 2H2     F 1-514-906-7677

[cid:image001.jpg@01D1E42C.9CBC38D0][cid:image007.png@01D1E42C.9CBC38D0]







Ce courrier électronique et les fichiers qui y sont annexés peuvent renfermer des renseignements privilégiés et confidentiels à l'intention exclusive du destinataire. Si vous n'êtes pas le destinataire, vous n'êtes pas autorisée) à utiliser, à copier ou à divulguer à un tiers le contenu de ce courrier électronique ni des fichiers joints. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur immédiatement par courrier électronique et détruire ce message ainsi que les fichiers en annexes.


This electronic mail message, and any attachments, may contain privileged or confidential information, intended only for the use of the addressee. If you are not the addressee, you may not use, copy or disclose to a third party the content of this message or its attachments. If you have received this message by mistake, please notify us immediately by email and destroy this message, along with all attachments.




RE: Encrypt pd file

Posted by Marc Kaufman <ma...@adobe.com>.
FWIW: Acrobat will set the owner password to the user password if no owner password is specified.

-----Original Message-----
From: Tilman Hausherr [mailto:THausherr@t-online.de] 
Sent: Friday, July 22, 2016 1:36 PM
To: users@pdfbox.apache.org
Subject: Re: Encrypt pd file

Khaled, can you confirm that this was the cause?

I remember something similar not long ago, either here or on stackoverflow. Some user had an empty owner password, and wondered why he/she had all the rights after opening the file.

I'd like to get feedback, because maybe we should change the javadoc or the code itself.

Tilman

Am 22.07.2016 um 21:29 schrieb Marc Kaufman:
> You probably encrypted the file with a user password, but left the owner password as NULL. You should set the owner password to be the same as the user password when only one password is needed.
>
> PDF Viewers other than Adobe's will open a file with a NULL password in either location.
>
> From: Khaled Hassen [mailto:khaled.hassen@in-rgy.com]
> Sent: Friday, July 22, 2016 12:22 PM
> To: users@pdfbox.apache.org
> Subject: Encrypt pd file
>
> Hello,
>
> I have a request from my client to generate employee payslip on pdf file from SAP, encrypt it and send it by mail to the employee.
> For the encryption part I used the JAR file (PDFBox 1.8.12) that I downloaded from your website. I created SAP ABAP programme to call the JAR file. The testing were fine, the files were encrypted successfully and we were able to enter PWD when opening the files.
> We have a problem with the EE using iPhone and iPad, when they tried to open the file they were not asked to enter a password, the file was opened automatically.
> Please do you have an idea how to fix this issue.
>
> Thanks a lot.
>
>
>
> [cid:image002.jpg@01D1E429.FE68AD00]
>
> Khaled HASSEN
> SAP HR consultant
>
> T 514 906-7767 x 734
> C 438 936-5696
> khaled.hassen@in-rgy.com<ma...@in-rgy.com>
>
> 474 Rue McGill - suite 333        T 1-855-906-7767
> Montréal (Québec) H2Y 2H2     F 1-514-906-7677
>
> [cid:image001.jpg@01D1E42C.9CBC38D0][cid:image007.png@01D1E42C.9CBC38D
> 0]
>
>
>
>
>
>
>
> Ce courrier électronique et les fichiers qui y sont annexés peuvent renfermer des renseignements privilégiés et confidentiels à l'intention exclusive du destinataire. Si vous n'êtes pas le destinataire, vous n'êtes pas autorisée) à utiliser, à copier ou à divulguer à un tiers le contenu de ce courrier électronique ni des fichiers joints. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur immédiatement par courrier électronique et détruire ce message ainsi que les fichiers en annexes.
>
>
> This electronic mail message, and any attachments, may contain privileged or confidential information, intended only for the use of the addressee. If you are not the addressee, you may not use, copy or disclose to a third party the content of this message or its attachments. If you have received this message by mistake, please notify us immediately by email and destroy this message, along with all attachments.
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Re: Encrypt pd file

Posted by Tilman Hausherr <TH...@t-online.de>.
Khaled, can you confirm that this was the cause?

I remember something similar not long ago, either here or on 
stackoverflow. Some user had an empty owner password, and wondered why 
he/she had all the rights after opening the file.

I'd like to get feedback, because maybe we should change the javadoc or 
the code itself.

Tilman

Am 22.07.2016 um 21:29 schrieb Marc Kaufman:
> You probably encrypted the file with a user password, but left the owner password as NULL. You should set the owner password to be the same as the user password when only one password is needed.
>
> PDF Viewers other than Adobe's will open a file with a NULL password in either location.
>
> From: Khaled Hassen [mailto:khaled.hassen@in-rgy.com]
> Sent: Friday, July 22, 2016 12:22 PM
> To: users@pdfbox.apache.org
> Subject: Encrypt pd file
>
> Hello,
>
> I have a request from my client to generate employee payslip on pdf file from SAP, encrypt it and send it by mail to the employee.
> For the encryption part I used the JAR file (PDFBox 1.8.12) that I downloaded from your website. I created SAP ABAP programme to call the JAR file. The testing were fine, the files were encrypted successfully and we were able to enter PWD when opening the files.
> We have a problem with the EE using iPhone and iPad, when they tried to open the file they were not asked to enter a password, the file was opened automatically.
> Please do you have an idea how to fix this issue.
>
> Thanks a lot.
>
>
>
> [cid:image002.jpg@01D1E429.FE68AD00]
>
> Khaled HASSEN
> SAP HR consultant
>
> T 514 906-7767 x 734
> C 438 936-5696
> khaled.hassen@in-rgy.com<ma...@in-rgy.com>
>
> 474 Rue McGill - suite 333        T 1-855-906-7767
> Montral (Qubec) H2Y 2H2     F 1-514-906-7677
>
> [cid:image001.jpg@01D1E42C.9CBC38D0][cid:image007.png@01D1E42C.9CBC38D0]
>
>
>
>
>
>
>
> Ce courrier lectronique et les fichiers qui y sont annexs peuvent renfermer des renseignements privilgis et confidentiels  l'intention exclusive du destinataire. Si vous n'tes pas le destinataire, vous n'tes pas autorise)  utiliser,  copier ou  divulguer  un tiers le contenu de ce courrier lectronique ni des fichiers joints. Si vous avez reu ce courrier lectronique par erreur, veuillez en aviser l'expditeur immdiatement par courrier lectronique et dtruire ce message ainsi que les fichiers en annexes.
>
>
> This electronic mail message, and any attachments, may contain privileged or confidential information, intended only for the use of the addressee. If you are not the addressee, you may not use, copy or disclose to a third party the content of this message or its attachments. If you have received this message by mistake, please notify us immediately by email and destroy this message, along with all attachments.
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


RE: Encrypt pd file

Posted by Marc Kaufman <ma...@adobe.com>.
You probably encrypted the file with a user password, but left the owner password as NULL. You should set the owner password to be the same as the user password when only one password is needed.

PDF Viewers other than Adobe's will open a file with a NULL password in either location.

From: Khaled Hassen [mailto:khaled.hassen@in-rgy.com]
Sent: Friday, July 22, 2016 12:22 PM
To: users@pdfbox.apache.org
Subject: Encrypt pd file

Hello,

I have a request from my client to generate employee payslip on pdf file from SAP, encrypt it and send it by mail to the employee.
For the encryption part I used the JAR file (PDFBox 1.8.12) that I downloaded from your website. I created SAP ABAP programme to call the JAR file. The testing were fine, the files were encrypted successfully and we were able to enter PWD when opening the files.
We have a problem with the EE using iPhone and iPad, when they tried to open the file they were not asked to enter a password, the file was opened automatically.
Please do you have an idea how to fix this issue.

Thanks a lot.



[cid:image002.jpg@01D1E429.FE68AD00]

Khaled HASSEN
SAP HR consultant

T 514 906-7767 x 734
C 438 936-5696
khaled.hassen@in-rgy.com<ma...@in-rgy.com>

474 Rue McGill - suite 333        T 1-855-906-7767
Montréal (Québec) H2Y 2H2     F 1-514-906-7677

[cid:image001.jpg@01D1E42C.9CBC38D0][cid:image007.png@01D1E42C.9CBC38D0]







Ce courrier électronique et les fichiers qui y sont annexés peuvent renfermer des renseignements privilégiés et confidentiels à l'intention exclusive du destinataire. Si vous n'êtes pas le destinataire, vous n'êtes pas autorisée) à utiliser, à copier ou à divulguer à un tiers le contenu de ce courrier électronique ni des fichiers joints. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur immédiatement par courrier électronique et détruire ce message ainsi que les fichiers en annexes.


This electronic mail message, and any attachments, may contain privileged or confidential information, intended only for the use of the addressee. If you are not the addressee, you may not use, copy or disclose to a third party the content of this message or its attachments. If you have received this message by mistake, please notify us immediately by email and destroy this message, along with all attachments.




Re: Encrypt pd file

Posted by Tilman Hausherr <TH...@t-online.de>.
Am 22.07.2016 um 21:22 schrieb Khaled Hassen:
>
> Hello,
>
> I have a request from my client to generate employee payslip on pdf 
> file from SAP, encrypt it and send it by mail to the employee.
>
> For the encryption part I used the JAR file (PDFBox 1.8.12) that I 
> downloaded from your website. I created SAP ABAP programme to call the 
> JAR file. The testing were fine, the files were encrypted successfully 
> and we were able to enter PWD when opening the files.
>
> We have a problem with the EE using iPhone and iPad, when they tried 
> to open the file they were not asked to enter a password, the file was 
> opened automatically.
>

What was the exact command line that you used?

Can you repeat whatever you did with a non confidential file, and upload 
that one somewhere?

TIlman


> Please do you have an idea how to fix this issue.
>
> Thanks a lot.
>
> 	
>
> *Khaled HASSEN*
>
> SAP HR consultant
>
> T 514 906-7767 x 734
> C 438 936-5696
>
> khaled.hassen@in-rgy.com <ma...@in-rgy.com>__
>
> __
>
> 474 Rue McGill - suite 333        T 1-855-906-7767
>
> Montral (Qubec) H2Y 2H2     F 1-514-906-7677
>
> 	
>
> image008
>
> 	
>
> 	
>
> Ce courrier lectronique et les fichiers qui y sont annexs peuvent 
> renfermer des renseignements privilgis et confidentiels  
> l'intention exclusive du destinataire. Si vous n'tes pas le 
> destinataire, vous n'tes pas autorise)  utiliser,  copier ou 
>  divulguer  un tiers le contenu de ce courrier lectronique ni des 
> fichiers joints. Si vous avez reu ce courrier lectronique par 
> erreur, veuillez en aviser l'expditeur immdiatement par courrier 
> lectronique et dtruire ce message ainsi que les fichiers en annexes.
>
> This electronic mail message, and any attachments, may contain 
> privileged or confidential information, intended only for the use of 
> the addressee. If you are not the addressee, you may not use, copy or 
> disclose to a third party the content of this message or its 
> attachments. If you have received this message by mistake, please 
> notify us immediately by email and destroy this message, along with 
> all attachments.
>