[jira] [Commented] (OFBIZ-6504) how to Create PDF with password Protected in Ofbiz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-6504) how to Create PDF with password Protected in Ofbiz

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-6504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14623984#comment-14623984 ]

Shi Jinghai commented on OFBIZ-6504:
------------------------------------

Sachin,

The function you required is in trunk rev. 1690515. Please be aware, there are two passwords for a PDF, owner password and user password.

When visiting https://localhost:8443/example/control/EditExample?exampleId=EX01, there's a new button called "PDF With Password", click it and then you can input your password to a PDF generated by FOP and PDFBox.

There's a new examplepdf.properties under specialpurpose/example/config/. You can use it to config what the passwords will be.

The password in encrypted by PDFBox, it is a project in Apache foundation. The bcprov-jdk15-1.44.jar is a runtime library required by PDFBox 1.7.1 to encrypt a PDF.


> how to Create PDF with password Protected in Ofbiz
> --------------------------------------------------
>
>                 Key: OFBIZ-6504
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6504
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL APPLICATIONS
>         Environment: linux
>            Reporter: Sachin Manjule
>            Assignee: Shi Jinghai
>
> We can create PDF using FTL that is OK, but how to generate PDF with Encryption password protected?
> itext is best option for this. but can we emmber in ftl or other places?
> pleas Help us.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)