![]() |
#31 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
Code:
<install-dir>\pdfread-run.cmd -p eb1150 --hres 454 <pdf-file> Quote:
|
||
![]() |
![]() |
![]() |
#32 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#33 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
|
|
![]() |
![]() |
![]() |
#34 |
Reader of the Reader
![]() ![]() Posts: 103
Karma: 107
Join Date: Apr 2006
Device: Sony Reader PRS-500
|
PDFRead Errors
Ashkulz!
I am reporting back with some juicy output from PDFRead! The output is included in the attached text file. |
![]() |
![]() |
![]() |
#35 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46
Karma: 133388
Join Date: Mar 2007
Location: London, Ontario
Device: EB 1150, iLiad
|
Quote:
I run in windows this command C:\PDFRead\pdfread-run.cmd -p eb1150 --hres 454 C:\Documents and Settings\Owner\Desktop\tempo\cheyne.pdf and then the attached dos window appears. As you can see, I do not know too much about how to run a program manually. The hres specified in the command does not show up in the resulting dos window. Could you please enumerate the steps that I have to follow so that I can run the program manually and experiment with different hres values? I tried changing the value for hres in pdfread.py, but no result. Last edited by sputnik; 04-04-2007 at 04:02 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#36 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
Code:
C:\PDFRead\pdfread-run.cmd -p eb1150 --hres 454 "C:\Documents and Settings\Owner\Desktop\tempo\cheyne.pdf" |
|
![]() |
![]() |
![]() |
#37 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
Note that I am unsure that I will make this fix in the new release, as I do not know what the effect will be if I leave out this option (it treats the CropBox as the page size, removing unnecessary whitespace and/or typesetting). In general, I would recommend updating to a manually-compiled 3.01. Please let me know if it works, and document the steps you took to achieve it so everyone else who uses OS X can also benefit from it :-) |
|
![]() |
![]() |
![]() |
#38 |
Reader of the Reader
![]() ![]() Posts: 103
Karma: 107
Join Date: Apr 2006
Device: Sony Reader PRS-500
|
So close
Almost there!
There is now a PNG file in the temp directory, but I get this error: Unable to determine total number of pages in PDF Please enter total page count: 5 Temporary directory: /tmp/pdfread-6ktemb Page 1/5: EXTRACT RASTERIZE CROP DILATE RESIZE Please check that ImageMagick is installed. I can run the 'convert' command on my system, so I do not know what is up. Bummer. I hope helping me isn't too much of a problem. Sam Krupa |
![]() |
![]() |
![]() |
#39 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46
Karma: 133388
Join Date: Mar 2007
Location: London, Ontario
Device: EB 1150, iLiad
|
Quote:
Last edited by sputnik; 04-04-2007 at 06:52 PM. |
|
![]() |
![]() |
![]() |
#40 |
Enthusiast
![]() Posts: 31
Karma: 10
Join Date: Apr 2007
Device: EBW-1150
|
I agree with sputnik for hres 445 and overlap 10. With these options everything looks fine!
So, for example, the right command should be from the command prompt: pdfread-run.cmd -p eb1150 -o c:\02\kos.imp --hres 445 --overlap=10 c:\02\kos.pdf for a file named kos.pdf in the c:\02 directory. |
![]() |
![]() |
![]() |
#41 |
Addict
![]() ![]() Posts: 303
Karma: 187
Join Date: Dec 2006
Device: Sony Reader
|
ashkulz, why don't you do what I do and bundle all supporting programs with the script? Maybe python can't be bundled, but at least bundle xpdf so that "no, don't use 3.00, use manually compiled 3.01" could be avoided.
The stuff that you did with auto-adjusting autocropping sounds cool. I haven't taken apart your stuff yet. How do you do it? You do the cropping directly with xpdf or you rasterize and then use image tools? How do you make measurements/calculations? Also, i'm confused... do you use ghostcript or xpdf? Could you maybe post a quick summary of your toolchain either here or on the "pythonized pdfrasterfarian" thread? |
![]() |
![]() |
![]() |
#42 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
![]() Okay, I discovered that there are a few bugs on Linux caused by a workaround I made for Windows. Will have to see how to fix them, but in the meanwhile can you try the attached version? |
|
![]() |
![]() |
![]() |
#43 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
|
|
![]() |
![]() |
![]() |
#44 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
Quote:
I'll mention the technical details in the other thread. |
||
![]() |
![]() |
![]() |
#45 |
Reader of the Reader
![]() ![]() Posts: 103
Karma: 107
Join Date: Apr 2006
Device: Sony Reader PRS-500
|
Ashkulz,
Your magic seems to have made the ImageMagick error disappear, but that original pesky error we where getting before still exists: p$ python pdfread.py -p prs500 sample.pdf Unable to determine total number of pages in PDF Please enter total page count: 5 Temporary directory: /tmp/pdfread-tCVV7p Page 1/5: EXTRACT RASTERIZE CROP DILATE RESIZE DONE Page 2/5: EXTRACT RASTERIZE CROP DILATE RESIZE DONE Page 3/5: EXTRACT RASTERIZE CROP DILATE RESIZE DONE Page 4/5: EXTRACT RASTERIZE CROP DILATE RESIZE DONE Page 5/5: EXTRACT RASTERIZE CROP DILATE RESIZE DONE Traceback (most recent call last): File "/Users/mikekrup/Desktop/pdfread-v4-src/src/pdfread.py", line 496, in ? PdfConverter().main() File "/Users/mikekrup/Desktop/pdfread-v4-src/src/pdfread.py", line 319, in main delete = self.FORMATS[self.options.format](self) File "/Users/mikekrup/Desktop/pdfread-v4-src/src/pdfread.py", line 260, in generate_lrf from pylrs.pylrs import Book, PageStyle, BlockStyle, ImageStream, BlockSpace, ImageBlock File "/Users/mikekrup/Desktop/pdfread-v4-src/src/pylrs/pylrs.py", line 11 from elementtree.ElementTree import (Element, SubElement) ^ SyntaxError: invalid syntax I have the folder called "elmenttree" in with the pdfread.py file. Sam Krupa |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
In addition to your eBookwise 1150, how many also own different ebook readers? | nrapallo | Fictionwise eBookwise | 40 | 04-07-2009 11:13 AM |
Comparing 1150 to 1200 or 2150 | Katelyn | Fictionwise eBookwise | 1 | 04-29-2007 12:38 PM |
PDFRead - reading PDFs on eBook Readers | ashkulz | Sony Reader | 19 | 04-29-2007 12:28 PM |
eBookwise-1150 or older Palm for ebook reading | Katelyn | Fictionwise eBookwise | 5 | 11-22-2006 09:32 PM |