You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maelig Gohin (JIRA)" <ji...@apache.org> on 2016/11/23 16:38:59 UTC

[jira] [Commented] (PDFBOX-3590) AccessPermission not applied

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

Maelig Gohin commented on PDFBOX-3590:
--------------------------------------

Used acroForm.flatten(); to transform the pdf as readonly

> AccessPermission not applied
> ----------------------------
>
>                 Key: PDFBOX-3590
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3590
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.3
>            Reporter: Maelig Gohin
>
> Using PdfBox 2.0.3 from maven repository.
> I modified a PDF with Adobe Pro to add editable fields that I can edit with PdfBox in JAVA.
> Everything works well but I wanted to set the document as read-only so people downloading the generated pdf could not change values.
> So I followed https://pdfbox.apache.org/2.0/cookbook/encryption.html but it's not working.
> Here is my method https://gist.github.com/mgohin/b09fed91e7475c09326d1ae25686dcd1



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

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