Thumbnail Generation

PDF Highlighter can generate page thumbnails as a part of document indexing process.

highlighter {
indexing {
buildPageThumbs = [
{
page = 1 # document page for which to generate the thumbnail (default is 1)
scale = 1 # scale factor (default is 1)
format = "png" # image format (default is "png")
width = 170 # max width
height = 240 # max height
filepath = "/my/thumbs/{docId}.{format}" # image path and file naming scheme
}
]
}
}

The following variables can be used in the filepath:

  • docId - Internal document identifier generated by Highlighter
  • docCachePath - Path to document cache folder
  • thumbId - Thumbnail index in buildPageThumbs
  • page
  • format
  • width
  • height
  • scale