PageSourceSearch

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

js localpdf.online collected 2026-10-02 01:08:35 UTC 864 bytes, 1 lines download raw bytes

1import{c as h}from"./qpdf-engine--OFF57Gq.js";import{Q as P}from"./worker-entrypoint-Cpi_3YOf.js";function i(t,n){const r=t==null?void 0:t[n];return typeof r=="string"?r:""}function E(t){return Number(t==null?void 0:t.keyLength)===128?128:256}async function I(t,n){const{inputIds:r,fs:c,options:s,emitProgress:o}=t;if(r.length===0)throw new Error("Encrypt PDF requires at least one input file");const a=i(s,"userPassword"),w=i(s,"ownerPassword"),d=E(s);if(!a)throw new P("PROTECT_INVALID_OPTIONS","Encryption password is required.");const f=await n(),u=[];for(let e=0;e<r.length;e+=1){const p=await(await c.read(r[e])).getBlob(),g=await f.encrypt(p,{userPassword:a,ownerPassword:w||a,keyLength:d}),y=await c.write(g);u.push(y.id);const l=Math.round((e+1)/r.length*100);o==null||o(l)}return{outputIds:u}}const O=async t=>I(t,h);export{O as run,I as runEncryptPdf};

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.