CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-pdf2pic

A utility for converting pdf to image formats with support for different outputs: directly to file, base64 or buffer.

97

0.97x
Quality

Pending

Does it follow best practices?

Impact

97%

0.97x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-7/

{
  "context": "This criteria evaluates the engineer's ability to use pdf2pic's format option to convert PDFs to different image formats. The focus is on understanding how to configure and use the format parameter correctly for multiple output formats.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses pdf2pic import",
      "description": "Code imports pdf2pic using fromPath, fromBuffer, or fromBase64 function",
      "max_score": 15
    },
    {
      "name": "PNG format conversion",
      "description": "Successfully converts PDF to PNG format by specifying format: 'png' in the options object",
      "max_score": 25
    },
    {
      "name": "JPEG format conversion",
      "description": "Successfully converts PDF to JPEG format by specifying format: 'jpeg' or format: 'jpg' in the options object",
      "max_score": 25
    },
    {
      "name": "WebP format conversion",
      "description": "Successfully converts PDF to WebP format by specifying format: 'webp' in the options object",
      "max_score": 25
    },
    {
      "name": "Output directory configuration",
      "description": "Uses savePath option to specify the output directory for saving converted images",
      "max_score": 10
    }
  ]
}

tile.json