Class PdfThumbnailBuilder

All Implemented Interfaces:
ThumbnailBuilder

public class PdfThumbnailBuilder extends ImageThumbnailBuilder
This builder generates the thumbnail for a Pdf document.
Since:
4.5
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • PdfThumbnailBuilder

      public PdfThumbnailBuilder()
  • Method Details

    • buildThumbnail

      public void buildThumbnail(String sid, Document document, String fileVersion, File src, File dest, int size, int compression) throws IOException
      Description copied from interface: ThumbnailBuilder
      Produce the thumbnail
      Specified by:
      buildThumbnail in interface ThumbnailBuilder
      Overrides:
      buildThumbnail in class ImageThumbnailBuilder
      Parameters:
      sid - The session identifier (optional)
      document - The document
      fileVersion - Optional file version spec
      src - The source file
      dest - The destination thumbnail file
      size - The thumbnail size
      compression - Compression quality(0..100, 100 is maximum quality)
      Throws:
      IOException - raised when the image cannot be written