-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cpdf: add page #3713
cpdf: add page #3713
Conversation
The build
Please fix the error(s) and push again. |
The build
Please fix the error(s) and push again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution @andrik . Good to know this useful command. I left a small suggestion for you to take a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after @einverne's concerns are applied.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. Please take a look at the comments.
|
||
- 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` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10 should be in tokens ({{}}
)
|
||
- 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}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
128bit, fred and joe should be in tokens ({{}}
)
|
||
- Decrypt a document using the owner password `fred`: | ||
|
||
`cpdf -decrypt {{path/to/encrypted_document.pdf}} owner=fred -o {{path/to/decrypted_document.pdf}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fred should be in tokens ({{}}
)
|
||
`cpdf -list-annotations {{path/to/document.pdf}}` | ||
|
||
- Create a new document, with metadata, based on an existing one: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change this to "Create a new document from an existing one with additional metadata"
> CLI to manipulate existing PDF files in a variety of ways. | ||
> Homepage: <https://www.coherentpdf.com/cpdfmanual/cpdfmanual.html>. | ||
|
||
- Select pages 1, 2, 3 and 6 from source document and write those to a destination document: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from a source document.
|
||
- Select pages 1, 2, 3 and 6 from source document and write those to a destination document: | ||
|
||
`cpdf {{path/to/source_document.pdf}} 1-3,6 -o {{path/to/destination_document.pdf}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1-3,6 should be in tokens ({{}}
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I translated this page to Spanish (#3717), so I reviewed it by myself.
# cpdf | ||
|
||
> CLI to manipulate existing PDF files in a variety of ways. | ||
> Homepage: <https://www.coherentpdf.com/cpdfmanual/cpdfmanual.html>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After review it again to translate it to Spanish, I think the most consistent way to put an URL for the command is "More information". Although I haven't read a guideline or a rule about it, all the pages I remember to read have "More information". Should we unify the line that provides the URL?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's right. We should use "More information"
common/
,linux/
, etc.)Hi guys, this one is from #3689 I'll try to create other ones. As the cheat project allows more examples then we do, I decided to pick up what looks like the most common ones.