Closed hi-ogawa closed 10 months ago
@hiogawa/pdf-rs-wasm-cli
@hiogawa/pdf-rs-wasm
npm deprecate @hiogawa/pdf-rs-wasm-cli "Deprecated in favor of @hiogawa/pdf-rs-wasm"
It seems it still doesn't work though...
$ node bin/cli.js ../../subtree/pdf/files/password_protected/passwords_aes_128.pdf --password userpassword ERROR Try at subtree/pdf/pdf/src/content.rs:314:36: op = Substr { slice: [180, 138, 249, 116, 15, 2, 193, 182, 71, 155, 38, 228, 80, 70, 149, 139], file_offset: 0 } op = Substr { slice: [180, 138, 249, 116, 15, 2, 193, 182, 71, 155, 38, 228, 80, 70, 149, 139], file_offset: 0 } at imports.wbg.__wbindgen_error_new (file:///home/hiroshi/code/personal/pdf-rs-wasm/packages/wasm/dist/cli.js:292:17) at wasm_bindgen::JsError::new::hc7aa8adc4fecab7d (wasm://wasm/027576c2:wasm-function[10285]:0x77b4b5) at <wasm_bindgen::JsError as core::convert::From<E>>::from::h9c64be4f7698943e (wasm://wasm/027576c2:wasm-function[8489]:0x743ac7) at <core::result::Result<T,F> as core::ops::try_trait::FromResidual<core::result::Result<core::convert::Infallible,E>>>::from_residual::hfd9df226eb71b67d (wasm://wasm/027576c2:wasm-function[4766]:0x67bd60) at pdf_rs_wasm::PdfParser::parse_trace::h28a5d82f4753c282 (wasm://wasm/027576c2:wasm-function[205]:0x2d2e83) at pdfparser_parse_trace (wasm://wasm/027576c2:wasm-function[3998]:0x63c337) at PdfParser.parse_trace (file:///home/hiroshi/code/personal/pdf-rs-wasm/packages/wasm/dist/cli.js:251:12) at TinyCliCommand.action (file:///home/hiroshi/code/personal/pdf-rs-wasm/packages/wasm/dist/cli.js:917:103) at async tinyCliMain (file:///home/hiroshi/code/personal/pdf-rs-wasm/packages/wasm/dist/cli.js:883:15)
chore
@hiogawa/pdf-rs-wasm-cli
and move cli into@hiogawa/pdf-rs-wasm
password support?
It seems it still doesn't work though...