Menu

#362 no batch conversation possible?

djview
closed
None
5
2025-04-15
2024-11-13
No

hey,

I've tried to convert several files (with spaces in the filename) in the current directory with this command:

for f in *.pdf; do djvudigital "$f"; done

The conversion starts but breaks at the end like this:

csepdjvu: 27454 bytes for page 6 (from stdin)
*** [1-11711] Failed to open 'abc': No such file or directory.
*** (ByteStream.cpp:747)
*** 'DJVU::GUTF8String DJVU::ByteStream::Stdio::init(const DJVU::GURL&, const char*)'

The filenames are like this:
abc abc 001.pdf
abc abc 002.pdf
etc.

Without spaces, the conversion goes through smoothly. I'm not good with the command line and other, more knowledgeable users suggested to me that above command should suffice and the problem lies within djvudigital. Hence this bug report.

Any help is much appreciated!

Discussion

  • Havlicek stole the ball

    I've accidentally posted this in the djview section - perhaps this should be moved to the gsdjvu section?

     
  • Leon Bottou

    Leon Bottou - 2024-11-17

    I pushed into git a new version of djvudigital that works better with filenames containing spaces.

     
  • Havlicek stole the ball

    That seems to have helped. Thank you!

     
  • Leon Bottou

    Leon Bottou - 2025-04-15
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
    
     hey,
    
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB