1import{c as w}from"./pdf-engine-DB2KmPOe.js";import"./index-DbFRh42P.js";import"./vendor-react-C_xdI0Ng.js";const g=async({inputIds:t,fs:a,emitProgress:o})=>{if(t.length===0)throw new Error("Split PDF requires at least one input file");const r=[],e=await w();for(let n=0;n<t.length;n+=1){const i=await(await a.read(t[n])).getBlob(),c=await e.split(i);for(const p of c){const s=await a.write(p);r.push(s.id)}const l=Math.round((n+1)/t.length*100);o==null||o(l)}return{outputIds:r}};export{g 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.