<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<div style="16px" text-align="left">Dear mpsuzuki,<br /></div><div style="16px" text-align="left"><br /></div><div style="16px" text-align="left">Thank you for quoting the source file regarding numbering scheme. When you say<br /></div><div style="16px" text-align="left"><br /></div><div style="16px" text-align="left">"good syntax to specify numbering format, if possible, which is already used by poppler'suser interfaces."<br /></div><div style="16px" text-align="left"><br /></div><div style="16px" text-align="left">does that mean there is a way to specify numbering format already?<br /></div><div style="16px" text-align="left"><br /></div><div style="16px" text-align="left">Thanks,<br /></div><div style="16px" text-align="left">Abi<br /></div><div style="16px" text-align="left"><br /></div><div style="16px" text-align="left">Jan 10, 2019, 12:49 AM by mpsuzuki@hiroshima-u.ac.jp:<br /></div><blockquote class="tutanota_quote" style="border-left: 1px solid #93A3B8; padding-left: 10px; margin-left: 5px;"><div style="16px" text-align="left">Dear Abigaile,<br /></div><div style="16px" text-align="left"><br /></div><div style="16px" text-align="left">At present, 3-digit-numbering is hardwired, like, this<br /></div><div style="16px" text-align="left"><br /></div><div style="16px" text-align="left"><a rel="noopener noreferrer" target="_blank" href="https://gitlab.freedesktop.org/poppler/poppler/blob/master/utils/ImageOutputDev.cc#L83">https://gitlab.freedesktop.org/poppler/poppler/blob/master/utils/ImageOutputDev.cc#L83</a><br /></div><div style="16px" text-align="left"><br /></div><div style="16px" text-align="left">void ImageOutputDev::setFilename(const char *fileExt) {<br /></div><div style="16px" text-align="left"> if (pageNames) {<br /></div><div style="16px" text-align="left"> sprintf(fileName, "%s-%03d-%03d.%s", fileRoot, pageNum, imgNum, fileExt);<br /></div><div style="16px" text-align="left"> } else {<br /></div><div style="16px" text-align="left"> sprintf(fileName, "%s-%03d.%s", fileRoot, imgNum, fileExt);<br /></div><div style="16px" text-align="left"> }<br /></div><div style="16px" text-align="left">}<br /></div><div style="16px" text-align="left"><br /></div><div style="16px" text-align="left">I want to know whether good syntax to specify numbering<br /></div><div style="16px" text-align="left">format, if possible, which is already used by poppler's<br /></div><div style="16px" text-align="left">user interfaces.<br /></div><div style="16px" text-align="left"><br /></div><div style="16px" text-align="left">Regards,<br /></div><div style="16px" text-align="left">mpsuzuki<br /></div><div style="16px" text-align="left"><br /></div><div style="16px" text-align="left">Abigaile Johannesburg wrote:<br /></div><blockquote><div style="16px" text-align="left">Hello,<br /></div><div style="16px" text-align="left"><br /></div><div style="16px" text-align="left">The default output numbering of pdfimages is 3 digit, e.g, image-root-nnn.xxx. But if there are more than 1,000 ouput images, there will be files image-root-nnn.xxx (3 digit number sequence) and image-root-nnnn.xxx (4 digit number sequence). When processing book images in bash, the ordering needs a fix. At the moment I use rename<br /></div><div style="16px" text-align="left"><br /></div><div style="16px" text-align="left">rename 's/img-([0-9]{3}).pbm/img-0$1.pbm/' *.pbm<br /></div><div style="16px" text-align="left"><br /></div><div style="16px" text-align="left">Therefore I was wondering if there is a way to specify the format of output numbering directly in pdfimages.<br /></div><div style="16px" text-align="left"><br /></div><div style="16px" text-align="left">Thanks,<br /></div><div style="16px" text-align="left">Abi<br /></div></blockquote></blockquote><div style="16px" text-align="left"><br /></div> </body>
</html>