com.groupdocs.watermark.contents

Interfaces

Classes

com.groupdocs.watermark.contents

Class PdfContent

    • Method Detail

      • encrypt

        public final void encrypt(String password)

        Encrypts the document using the same password as user password and owner password.

        Parameters:
        password - User and owner password.
      • encrypt

        public final void encrypt(String userPassword,
                   String ownerPassword,
                   int permissions,
                   int cryptoAlgorithm)

        Encrypts the content.

        Parameters:
        userPassword - User password.
        ownerPassword - Owner password.
        permissions - Content permissions.
        cryptoAlgorithm - Cryptographic algorithm.
      • decrypt

        public final void decrypt()

        Decrypts the content.

      • rasterize

        public final void rasterize(int horizontalResolution,
                     int verticalResolution,
                     int imageFormat)

        Converts all content pages into images.

        Parameters:
        horizontalResolution - Horizontal image resolution.
        verticalResolution - Vertical image resolution.
        imageFormat - Image format.
      • dispose

        protected void dispose(boolean disposing)

        Releases all resources used by the PdfContent

        Overrides:
        dispose in class Content
        Parameters:
        disposing - True to release both managed and unmanaged resources; false to release only unmanaged resources.