Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Docsplit images command - Added the ability to specify the page number delimiter via a command line option#110

Open
BrandonNoad wants to merge 4 commits intodocumentcloud:masterdocumentcloud/docsplit:masterfrom
BrandonNoad:masterBrandonNoad/docsplit:masterCopy head branch name to clipboard
Open

Docsplit images command - Added the ability to specify the page number delimiter via a command line option#110
BrandonNoad wants to merge 4 commits intodocumentcloud:masterdocumentcloud/docsplit:masterfrom
BrandonNoad:masterBrandonNoad/docsplit:masterCopy head branch name to clipboard

Conversation

@BrandonNoad
Copy link

When using docsplit images to split a pdf into a series of images (e.g. foo.pdf --> foo_1.jpg, foo_2.jpg, ...), the user may want the ability to specify the page number delimiter. For example, instead of always using an underscore ('_'), the user may want to use a dash ('-') or something more complicated (e.g. foo.pdf --> foo-page-1.pdf, foo-page-2, ...).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to have your delimiter start with a dash, you need to escape it with the '^' character. So, we need to strip the '^' before passing it to @options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.