View Single Post
Old 04-29-2007, 04:23 AM   #26
gdxf
Enthusiast
gdxf began at the beginning.
 
Posts: 48
Karma: 27
Join Date: Oct 2006
Device: Sony Reader PRS-500
Quote:
Originally Posted by ashkulz
Did you use the new batch file and if so, did you run from both Desktop and some other place? There's no logical reason I can think of why it shouldn't run from Desktop -- did you get the same error as before or something else when you ran from there?

That happens when pdftk cannot report how many pages there are in a document. You'll have to manually open each such document and find out how many pages there are and enter it. Can you link/post a sample file? I'll have to see how to detect the page count for those files -- they look like their information dictionary is corrupt or something.
Yes, I did use the new batch file. It worked well in any other places except on desktop directories. But that doesn't matter very much for me, the point is it at least worked elsewhere.

I manually put in the page number and it encountered the decoding error. I've posted the command line error info below and also attached the zipped directory and problematic file. I think it is because the filename is non-unicode...

---------------------------------------------

Unable to determine total number of pages in document
Please enter number of pages: 2

Page 1/2: EXTRACT RASTERIZE CROP DILATE SPLIT SAVE DONE
Page 2/2: EXTRACT RASTERIZE CROP DILATE SPLIT SAVE DONE
Creating BBeB file ... Traceback (most recent call last):
File "pdfread.py", line 201, in <module>
File "pdfread.py", line 86, in main
File "output.pyo", line 212, in generate
File "pylrs\pylrs.pyo", line 472, in renderLrf
File "pylrs\pylrs.pyo", line 250, in toLrf
File "pylrs\pylrs.pyo", line 246, in toLrfDelegates
File "pylrs\pylrs.pyo", line 250, in toLrf
File "pylrs\pylrs.pyo", line 246, in toLrfDelegates
File "pylrs\pylrs.pyo", line 561, in toLrf
File "pylrs\elements.pyo", line 68, in toString
File "pylrs\elements.pyo", line 76, in write
File "pylrs\elements.pyo", line 51, in _write
File "pylrs\elements.pyo", line 51, in _write
File "pylrs\elements.pyo", line 42, in _write
File "pylrs\elements.pyo", line 25, in _writeAttribute
File "pylrs\elements.pyo", line 13, in _encodeCdata
File "encodings\utf_8.pyo", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb1 in position 0: unexpecte
d code byte
Press any key to continue . . .

Last edited by gdxf; 04-29-2007 at 06:04 PM.
gdxf is offline   Reply With Quote