I am using the saveToFile(java.io.OutputStream stream, FileFormat fileFormat) method to generate a pdf in an OutputStream, but this method only allows to indicate that the type is a pdf. If I want to put security options on the pdf, such as encrypting it with a key, is it possible to do it? I only see the method saveToFile(java.lang.String fileName, ToPdfParameterList paramList) but it does not exist for OutputStream.
Thanks.