Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: PDF Report Password  (Read 14981 times)
Abdulrahman A.
Posts: 4


« on: February 24, 2016, 07:17:07 am »

To create PDF output I'm using the following reporting API functions:

  • CALL fgl_report_SelectDevice("PDF")
  • LET l_handler = fgl_report_commitCurrentSettings()

Is there any way to create PDF files contains a chosen password? Same as the shown photo, and by entering the correct password it will open the document.


* PDF Password Example.png (90.89 KB, 638x994 - viewed 4038 times.)
Alex G.
Four Js
Posts: 155


« Reply #1 on: February 24, 2016, 09:26:17 am »

Hi,
a Goggle search turned up a tool called pdftk which seems to do the job. I tried the following:
$sudo aptitude install pdftk
$pdftk report.pdf output report_pw.128.pdf owner_pw robinson user_pw friday
$pdfinfo -upw friday report_pw.128.pdf
Title:         
Subject:       
Keywords:       
Author:         
Creator:       
Producer:       iText 2.1.5 (by lowagie.com)
CreationDate:   Thu Feb  4 15:33:40 2016
ModDate:        Thu Feb  4 15:33:40 2016
Tagged:         no
UserProperties: no
Suspects:       no
Form:           none
JavaScript:     no
Pages:          3
Encrypted:      yes (print:no copy:no change:no addNotes:no algorithm:RC4)
Page size:      595.28 x 841.89 pts (A4)
Page rot:       0
File size:      68573 bytes
Optimized:      no
PDF version:    1.4

Kind Regards,
Alex
Abdulrahman A.
Posts: 4


« Reply #2 on: June 28, 2018, 08:16:29 am »

Thank you Alex,

I would appreciate if you could provide us with a full explanation with an example as this will help us.

Best Regards
Alex G.
Four Js
Posts: 155


« Reply #3 on: June 28, 2018, 09:07:05 am »

Hi,
>I would appreciate if you could provide us with a full explanation with an example as this will help us.
sure, with pleasure. First I would like to know if you were able to create a password protected PDF document using pdftk as I described in my previous post?
Best regards,

Alex
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines