evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "This criteria evaluates how well the engineer uses the pdf2pic package to convert PDF documents from Buffer objects into thumbnail images. The focus is on proper usage of pdf2pic's fromBuffer method and correct configuration of conversion options.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses fromBuffer",
"description": "Uses the fromBuffer function from pdf2pic to initialize the converter with the Buffer input",
"max_score": 30
},
{
"name": "Configures width correctly",
"description": "Sets the width option to 400 pixels in the configuration options passed to fromBuffer",
"max_score": 15
},
{
"name": "Preserves aspect ratio",
"description": "Sets preserveAspectRatio option to true to maintain the original PDF page proportions",
"max_score": 15
},
{
"name": "Sets density",
"description": "Configures the density option to 150 DPI for web-quality output",
"max_score": 10
},
{
"name": "Configures output path",
"description": "Uses savePath option to specify the output directory for the generated thumbnail",
"max_score": 10
},
{
"name": "Configures filename",
"description": "Uses saveFilename option to set the base name for the output file",
"max_score": 10
},
{
"name": "Calls convert method",
"description": "Calls the convert method (or similar conversion method returned by fromBuffer) with page number 1 to convert the first page",
"max_score": 10
}
]
}