const specPdfs = [
"https://intuned-docs-public-images.s3.amazonaws.com/27UP600_27UP650_ENG_US.pdf",
"https://intuned-docs-public-images.s3.amazonaws.com/32UP83A_ENG_US.pdf"
];
for (const url of specPdfs) {
const specs = await extractStructuredDataFromFile({
type: "pdf",
source: {
type: "url",
"data": url,
},
}, {
label: "spec files",
dataSchema: {
type: "object",
properties: {
"models": {
description: "models number included in this spec sheet",
type: "array",
items: {
type: "string"
}
},
"color_depth": {
type: "string",
description: "color depth of the monitor"
},
"max_resolution": {
type: "string",
description: "max rolustion of the screen and at what hz"
},
},
required: ["models", "color_depth", "max_resolution"],
}
})
}
// {
// models: [ '27UP600', '27UP650' ],
// color_depth: '8-bit / 10-bit color is supported.',
// max_resolution: '3840 x 2160 @ 60 Hz'
// }
// {
// models: [ '32UP83A' ],
// color_depth: '8-bit / 10-bit color is supported.',
// max_resolution: '3840 x 2160 @ 60 Hz'
// }