From 82ae3bc0db78aba000fde07426a5349b90869897 Mon Sep 17 00:00:00 2001 From: Andrik Albuquerque Date: Tue, 31 Dec 2019 23:14:03 -0300 Subject: [PATCH] cpdf: applying tokens and fix more information label (#3720) --- pages/common/cpdf.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/common/cpdf.md b/pages/common/cpdf.md index 6ac6109edf..d9d65683b8 100644 --- a/pages/common/cpdf.md +++ b/pages/common/cpdf.md @@ -1,11 +1,11 @@ # cpdf > CLI to manipulate existing PDF files in a variety of ways. -> Homepage: . +> More information: . -- Select pages 1, 2, 3 and 6 from source document and write those to a destination document: +- Select pages 1, 2, 3 and 6 from a source document and write those to a destination document: -`cpdf {{path/to/source_document.pdf}} 1-3,6 -o {{path/to/destination_document.pdf}}` +`cpdf {{path/to/source_document.pdf}} {{1-3,6}} -o {{path/to/destination_document.pdf}}` - Merge two documents into a new one: @@ -17,20 +17,20 @@ - Split a document into ten-page chunks, writing them to chunk001.pdf, chunk002.pdf, etc: -`cpdf -split {{path/to/document.pdf}} -o {{path/to/chunk%%%.pdf}} -chunk 10` +`cpdf -split {{path/to/document.pdf}} -o {{path/to/chunk%%%.pdf}} -chunk {{10}}` - Encrypt a document using 128bit encryption, providing `fred` as owner password and `joe` as user password: -`cpdf -encrypt 128bit fred joe {{path/to/source_document.pdf}} -o {{path/to/encrypted_document.pdf}}` +`cpdf -encrypt {{128bit}} {{fred}} {{joe}} {{path/to/source_document.pdf}} -o {{path/to/encrypted_document.pdf}}` - Decrypt a document using the owner password `fred`: -`cpdf -decrypt {{path/to/encrypted_document.pdf}} owner=fred -o {{path/to/decrypted_document.pdf}}` +`cpdf -decrypt {{path/to/encrypted_document.pdf}} owner={{fred}} -o {{path/to/decrypted_document.pdf}}` - Show the annotations of a document: `cpdf -list-annotations {{path/to/document.pdf}}` -- Create a new document, with metadata, based on an existing one: +- Create a new document from an existing one with additional metadata: `cpdf -set-metadata {{path/to/metadata.xml}} {{path/to/source_document.pdf}} -o {{path/to/destination_document.pdf}}`