shackzuloo.blogg.se

Itext pdfwriter setencryption
Itext pdfwriter setencryption












itext pdfwriter setencryption

(API) PDFWriter.ALLOW_PRINTING (MX7 iText) PDFWriter.AllowPrinting (API) PDFWriter.ALLOW_COPY (MX7 iText) PDFWriter.AllowCopy At least for the version of iText that ships with MX7 anyway. Here are the corrected names of the three variables used in the java example. Perhaps earlier versions of iText used different variable names? The dump showed the class did have similar constants, but the names were different than what was listed in the API. Writer = createObject("java", ".PdfWriter")> Puzzled I created a PDFWriter object and dumped it so I could view its properties. So I started coding the translation.īut trying to use PDFWriter.ALLOW_COPY generated an error.Įlement ALLOW_COPY is undefined in WRITER. It turned up the BitOr function which can be used on a 32-bit signed integer. The next stop was checking the CF documentation for bitwise functions. It confirmed that PDFWriter.ALLOW_COPY and PDFWriter.ALLOW_PRINTING are primitive int values. Not having used bitwise operators in CF before I hit the documentation.

Itext pdfwriter setencryption how to#

It demonstrates how to encrypt the top secret "Hello World" document )ĭocumentation: See Step 3 for more informationįirst thing I noticed about the java example was that it used a bitwise OR.

itext pdfwriter setencryption

The next installation in Getting started with iText translates the HelloEncrypted.java example.














Itext pdfwriter setencryption