This article explains how To work with spreadsheet document attachments while using GroupDocs watermarking Java API... println ( "Preview image size: " + attachment . getPreviewImageConte...previewImageBytes , // Preview image content 50 , // X-coordinate...