com.groupdocs.watermark

Interfaces

Classes

Exceptions

com.groupdocs.watermark

Class CellsAttachmentCollection

    • Method Detail

      • addAttachment

        public final void addAttachment(byte[] fileContent,
                         String sourceFullName,
                         byte[] previewImageContent,
                         double x,
                         double y,
                         double width,
                         double height)

        Adds an attachment to the CellsWorksheet.

        Parameters:
        fileContent - The content of the file to be attached.
        sourceFullName - The full name of the attached file (The extension is used to determine appropriate application to open the file).
        previewImageContent - The attached file preview image as a byte array.
        x - The x-coordinate of the attachment frame (in points).
        y - The y-coordinate of the attachment frame (in points).
        width - The width of the attachment frame in points.
        height - The height of the attachment frame in points.
      • addLink

        public final void addLink(String sourceFullName,
                   byte[] previewImageContent,
                   double x,
                   double y,
                   double width,
                   double height)

        Adds an attachment by a link (the document will not contain attached file content).

        Parameters:
        sourceFullName - The linked file path.
        previewImageContent - The attached file preview image as a byte array.
        x - The x-coordinate of the attachment frame (in points).
        y - The y-coordinate of the attachment frame (in points).
        width - The width of the attachment frame in points.
        height - The height of the attachment frame in points.