PDFEncryptionParams - documentAssembly, pageExtraction

Dave Thorn <[email protected]>
Newsgroups gmane.text.xml.fop.user
Message-ID <[email protected]>
Hi,

I'm trying to set the document restrictions for a PDF.  Most of
them seem to work, but I'm having trouble setting:

Document Assembly
Page Extraction

(see http://www.fysh.org/~davet/pdf_document_properties.png )

using:

  pdfEncryptionParams.setAllowAccessContent(true);
  pdfEncryptionParams.setAllowAssembleDocument(true);
  foUserAgent.getRendererOptions().put("encryption-params", pdfEncryptionParams);

(see
     http://www.fysh.org/~davet/SimpleFop.java.txt 
     http://www.fysh.org/~davet/fop.simple.xml
     http://www.fysh.org/~davet/myfile.pdf
  )

(I have disabled printing there just to prove that it's using the
params object at all).

Those restrictions (Document Assembly, Page Extraction) are also
not allowed if I don't use pdfEncryptionParams at all.


-- 
dave thorn

Hi, I'm from the Internet.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.