1import{c as h}from"./pdf-rasterizer-CXotTZT5.js";import"./index-DbFRh42P.js";import"./vendor-react-C_xdI0Ng.js";const y=async({inputIds:n,fs:o,emitProgress:t})=>{if(n.length===0)throw new Error("PDF to JPG requires at least one input file");const e=await h();if(!e)throw new Error("PDF rasterizer is not supported in this environment (missing canvas support)");t==null||t(5);const i=[];for(let a=0;a<n.length;a++){const l=await(await o.read(n[a])).getBlob(),c=await e.rasterize(l);for(let r=0;r<c.length;r++){const w=await o.write(c[r]);i.push(w.id)}const p=Math.round((a+1)/n.length*100);t==null||t(p)}return{outputIds:i}};export{y as run};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.