Convert single page from PDF to JPEG and getting error: `no matches found: Binder3.pdf[12]`












1














I want to convert single page from 333 PDF pages file.



I have tried with this command: convert Binder3.pdf[12] image.jpg, but for some reason I am getting this error:




zsh: no matches found: Binder3.pdf[12]




The name of the file is correct. I double check it. Why is it not working? I am using ImageMagick 6.9.10-8 Q16 x86_64 20180723










share|improve this question
























  • it worked. can u post it as an answer?
    – Dimitar
    Dec 27 '18 at 14:18










  • yes I am using zsh thanks it worked this way as well!
    – Dimitar
    Dec 27 '18 at 14:20






  • 1




    Please see answer below
    – steeldriver
    Dec 27 '18 at 14:25
















1














I want to convert single page from 333 PDF pages file.



I have tried with this command: convert Binder3.pdf[12] image.jpg, but for some reason I am getting this error:




zsh: no matches found: Binder3.pdf[12]




The name of the file is correct. I double check it. Why is it not working? I am using ImageMagick 6.9.10-8 Q16 x86_64 20180723










share|improve this question
























  • it worked. can u post it as an answer?
    – Dimitar
    Dec 27 '18 at 14:18










  • yes I am using zsh thanks it worked this way as well!
    – Dimitar
    Dec 27 '18 at 14:20






  • 1




    Please see answer below
    – steeldriver
    Dec 27 '18 at 14:25














1












1








1


1





I want to convert single page from 333 PDF pages file.



I have tried with this command: convert Binder3.pdf[12] image.jpg, but for some reason I am getting this error:




zsh: no matches found: Binder3.pdf[12]




The name of the file is correct. I double check it. Why is it not working? I am using ImageMagick 6.9.10-8 Q16 x86_64 20180723










share|improve this question















I want to convert single page from 333 PDF pages file.



I have tried with this command: convert Binder3.pdf[12] image.jpg, but for some reason I am getting this error:




zsh: no matches found: Binder3.pdf[12]




The name of the file is correct. I double check it. Why is it not working? I am using ImageMagick 6.9.10-8 Q16 x86_64 20180723







pdf convert zsh imagemagick






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 31 '18 at 19:53









Kurt Pfeifle

1,050711




1,050711










asked Dec 27 '18 at 13:38









DimitarDimitar

210111




210111












  • it worked. can u post it as an answer?
    – Dimitar
    Dec 27 '18 at 14:18










  • yes I am using zsh thanks it worked this way as well!
    – Dimitar
    Dec 27 '18 at 14:20






  • 1




    Please see answer below
    – steeldriver
    Dec 27 '18 at 14:25


















  • it worked. can u post it as an answer?
    – Dimitar
    Dec 27 '18 at 14:18










  • yes I am using zsh thanks it worked this way as well!
    – Dimitar
    Dec 27 '18 at 14:20






  • 1




    Please see answer below
    – steeldriver
    Dec 27 '18 at 14:25
















it worked. can u post it as an answer?
– Dimitar
Dec 27 '18 at 14:18




it worked. can u post it as an answer?
– Dimitar
Dec 27 '18 at 14:18












yes I am using zsh thanks it worked this way as well!
– Dimitar
Dec 27 '18 at 14:20




yes I am using zsh thanks it worked this way as well!
– Dimitar
Dec 27 '18 at 14:20




1




1




Please see answer below
– steeldriver
Dec 27 '18 at 14:25




Please see answer below
– steeldriver
Dec 27 '18 at 14:25










1 Answer
1






active

oldest

votes


















4














[12] is a shell glob expression - in the default bash shell, if it doesn't match anything in the current directory, then the string Binder3.pdf[12] will be passed unmolested to the convert program, however in zsh the default is to error out on nomatch (equivalent to the bash failglob shell option).



You can get bash-like behavior in zsh by setting setopt +o nomatch however this may result in unexpected behavior if there is a glob match - it's better to force the shell (whichever one) to treat the characters literally e.g.



convert Binder3.pdf[12] image.jpg


or



convert "Binder3.pdf[12]" image.jpg





share|improve this answer





















  • and if i set setopt +o nomatch to unset it i need to execute setopt -o nomatch?
    – Dimitar
    Dec 27 '18 at 14:29






  • 1




    @Dimitar yes that's correct
    – steeldriver
    Dec 27 '18 at 14:35











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1104907%2fconvert-single-page-from-pdf-to-jpeg-and-getting-error-no-matches-found-binde%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














[12] is a shell glob expression - in the default bash shell, if it doesn't match anything in the current directory, then the string Binder3.pdf[12] will be passed unmolested to the convert program, however in zsh the default is to error out on nomatch (equivalent to the bash failglob shell option).



You can get bash-like behavior in zsh by setting setopt +o nomatch however this may result in unexpected behavior if there is a glob match - it's better to force the shell (whichever one) to treat the characters literally e.g.



convert Binder3.pdf[12] image.jpg


or



convert "Binder3.pdf[12]" image.jpg





share|improve this answer





















  • and if i set setopt +o nomatch to unset it i need to execute setopt -o nomatch?
    – Dimitar
    Dec 27 '18 at 14:29






  • 1




    @Dimitar yes that's correct
    – steeldriver
    Dec 27 '18 at 14:35
















4














[12] is a shell glob expression - in the default bash shell, if it doesn't match anything in the current directory, then the string Binder3.pdf[12] will be passed unmolested to the convert program, however in zsh the default is to error out on nomatch (equivalent to the bash failglob shell option).



You can get bash-like behavior in zsh by setting setopt +o nomatch however this may result in unexpected behavior if there is a glob match - it's better to force the shell (whichever one) to treat the characters literally e.g.



convert Binder3.pdf[12] image.jpg


or



convert "Binder3.pdf[12]" image.jpg





share|improve this answer





















  • and if i set setopt +o nomatch to unset it i need to execute setopt -o nomatch?
    – Dimitar
    Dec 27 '18 at 14:29






  • 1




    @Dimitar yes that's correct
    – steeldriver
    Dec 27 '18 at 14:35














4












4








4






[12] is a shell glob expression - in the default bash shell, if it doesn't match anything in the current directory, then the string Binder3.pdf[12] will be passed unmolested to the convert program, however in zsh the default is to error out on nomatch (equivalent to the bash failglob shell option).



You can get bash-like behavior in zsh by setting setopt +o nomatch however this may result in unexpected behavior if there is a glob match - it's better to force the shell (whichever one) to treat the characters literally e.g.



convert Binder3.pdf[12] image.jpg


or



convert "Binder3.pdf[12]" image.jpg





share|improve this answer












[12] is a shell glob expression - in the default bash shell, if it doesn't match anything in the current directory, then the string Binder3.pdf[12] will be passed unmolested to the convert program, however in zsh the default is to error out on nomatch (equivalent to the bash failglob shell option).



You can get bash-like behavior in zsh by setting setopt +o nomatch however this may result in unexpected behavior if there is a glob match - it's better to force the shell (whichever one) to treat the characters literally e.g.



convert Binder3.pdf[12] image.jpg


or



convert "Binder3.pdf[12]" image.jpg






share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 27 '18 at 14:25









steeldriversteeldriver

66k11105178




66k11105178












  • and if i set setopt +o nomatch to unset it i need to execute setopt -o nomatch?
    – Dimitar
    Dec 27 '18 at 14:29






  • 1




    @Dimitar yes that's correct
    – steeldriver
    Dec 27 '18 at 14:35


















  • and if i set setopt +o nomatch to unset it i need to execute setopt -o nomatch?
    – Dimitar
    Dec 27 '18 at 14:29






  • 1




    @Dimitar yes that's correct
    – steeldriver
    Dec 27 '18 at 14:35
















and if i set setopt +o nomatch to unset it i need to execute setopt -o nomatch?
– Dimitar
Dec 27 '18 at 14:29




and if i set setopt +o nomatch to unset it i need to execute setopt -o nomatch?
– Dimitar
Dec 27 '18 at 14:29




1




1




@Dimitar yes that's correct
– steeldriver
Dec 27 '18 at 14:35




@Dimitar yes that's correct
– steeldriver
Dec 27 '18 at 14:35


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1104907%2fconvert-single-page-from-pdf-to-jpeg-and-getting-error-no-matches-found-binde%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

張江高科駅