PageSourceSearch

https://localpdf.online/app/assets/index-JqYZTHJA.js

js localpdf.online collected 2026-09-24 14:25:48 UTC 1,403 bytes, 1 lines download raw bytes

1import{e as I}from"./pdf-image-extractor-Kdr-7SCz.js";import"./index-BLFiW9lJ.js";import"./vendor-react-C_xdI0Ng.js";const x=async({inputIds:r,options:e,fs:u,emitProgress:d})=>{if(r.length===0)throw new Error("Extract Images requires at least one input file");const c=[],m=r.length;for(let l=0;l<r.length;l+=1){const g=r[l],b=await u.read(g),y=await b.getBlob(),t=Array.isArray(e==null?void 0:e.selectedCandidates)?e.selectedCandidates.filter(a=>!!a&&typeof a=="object"&&typeof a.fileId=="string"&&typeof a.pageNumber=="number"&&typeof a.candidateId=="string").filter(a=>a.fileId===g).map(a=>({pageNumber:a.pageNumber,candidateId:a.candidateId})):[],h=t.length>0?Array.from(new Set(t.map(a=>a.pageNumber))).sort((a,f)=>a-f):void 0;d==null||d(Math.max(1,Math.round(l/m*100)));const n=await I(y,b.getName(),{format:(e==null?void 0:e.format)==="jpeg"?"jpeg":"png",jpegQuality:typeof(e==null?void 0:e.jpegQuality)=="number"?e.jpegQuality:void 0,minWidth:typeof(e==null?void 0:e.minWidth)=="number"?e.minWidth:void 0,minHeight:typeof(e==null?void 0:e.minHeight)=="number"?e.minHeight:void 0,includeInlineImages:(e==null?void 0:e.includeInlineImages)!==!1,dedupe:(e==null?void 0:e.dedupe)!==!1,selectedCandidates:t,pageNumbers:h});for(const a of n){const f=await u.write(new File([a.blob],a.fileName,{type:a.blob.type}));c.push(f.id)}d==null||d(Math.round((l+1)/m*100))}return{outputIds:c}};export{x 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.