From 92f7744165f8b09a164ab2f9b7ada61d6485b0a5 Mon Sep 17 00:00:00 2001 From: Wiktor Perskawiec Date: Fri, 11 Oct 2024 19:35:45 +0200 Subject: [PATCH] pdfdetach: add page (#14112) Co-authored-by: K.B.Dharun Krishna --- pages/linux/pdfdetach.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pages/linux/pdfdetach.md diff --git a/pages/linux/pdfdetach.md b/pages/linux/pdfdetach.md new file mode 100644 index 0000000000..bd4104f27b --- /dev/null +++ b/pages/linux/pdfdetach.md @@ -0,0 +1,25 @@ +# pdfdetach + +> List or extract attachments (embedded files) from a PDF file. +> See also: `pdfattach`, `pdfimages`, `pdfinfo`. +> More information: . + +- List all attachments in a file with a specific text encoding: + +`pdfdetach list -enc {{UTF-8}} {{path/to/input.pdf}}` + +- Save specific embedded file by specifying its number: + +`pdfdetach -save {{number}} {{path/to/input.pdf}}` + +- Save specific embedded file by specifying its name: + +`pdfdetach -savefile {{name}} {{path/to/input.pdf}}` + +- Save the embedded file with a custom output filename: + +`pdfdetach -save {{number}} -o {{path/to/output}} {{path/to/input.pdf}}` + +- Save the attachment from a file secured by owner/user password: + +`pdfdetach -save {{number}} {{-opw|-upw}} {{password}} {{path/to/input.pdf}}`