Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 05-13-2009, 06:06 PM   #256
Bilbo1967
Not scared!
Bilbo1967 ought to be getting tired of karma fortunes by now.Bilbo1967 ought to be getting tired of karma fortunes by now.Bilbo1967 ought to be getting tired of karma fortunes by now.Bilbo1967 ought to be getting tired of karma fortunes by now.Bilbo1967 ought to be getting tired of karma fortunes by now.Bilbo1967 ought to be getting tired of karma fortunes by now.Bilbo1967 ought to be getting tired of karma fortunes by now.Bilbo1967 ought to be getting tired of karma fortunes by now.Bilbo1967 ought to be getting tired of karma fortunes by now.Bilbo1967 ought to be getting tired of karma fortunes by now.Bilbo1967 ought to be getting tired of karma fortunes by now.
 
Bilbo1967's Avatar
 
Posts: 13,424
Karma: 81011643
Join Date: Mar 2009
Location: Midlands, UK
Device: Kindle Paperwhite 10, Huawei M5 10
Quote:
Originally Posted by JSWolf View Post
Message deleted
What?
Bilbo1967 is offline   Reply With Quote
Old 05-14-2009, 08:36 AM   #257
london365
Junior Member
london365 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2009
Device: none
i have just read ur artical and it is excellent..i have also download it..but do i have to buy it??i m not understanding....plz help me
london365 is offline   Reply With Quote
Old 05-14-2009, 11:29 AM   #258
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by london365 View Post
i have just read ur artical and it is excellent..i have also download it..but do i have to buy it??i m not understanding....plz help me
The software is freely distributed, but remains copyrighted by the creator:
Quote:
## Copyright (c) 2007 Ashish Kulkarni
##
## Permission is hereby granted, free of charge, to any person obtaining a
## copy of this software and associated documentation files (the "Software"),
## to deal in the Software without restriction, including without limitation
## the rights to use, copy, modify, merge, publish, distribute, sublicense,
## and/or sell copies of the Software, and to permit persons to whom the
## Software is furnished to do so, subject to the following conditions:
Just download, unzip and install the PDFRead Installer program in post #1 of this thread. No need to "buy" it!

Enjoy!
nrapallo is offline   Reply With Quote
Old 05-15-2009, 12:52 PM   #259
yellow1912
Junior Member
yellow1912 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2009
Device: kindle
Is there anyway I can make the converted text read-able or at least "sizeable" on my kindle2? I used Savory and it could convert some pdf books that way, the problem with it is that it is too slow and often hang up on me.

Regards
yellow1912 is offline   Reply With Quote
Old 05-15-2009, 03:34 PM   #260
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by yellow1912 View Post
Is there anyway I can make the converted text read-able or at least "sizeable" on my kindle2? I used Savory and it could convert some pdf books that way, the problem with it is that it is too slow and often hang up on me.

Regards
Unfortunately not.

PDFRead results in just images; no text to be found. To enlarge those images to fit smaller ebook screens, you really need to cut up the .pdf page into halves or quarters and display horizontally (landscape) each of those sequentially.

This works best when there is a large white margin that can be removed, in which case, even vertical (portrait) images can be readable (but just barely).
nrapallo is offline   Reply With Quote
Old 05-26-2009, 10:21 PM   #261
rachat024
Banned
rachat024 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2009
Device: none
Well, nrapallo, your posts are great. They're very informative and helpful. You must be very good at this area. Many thanks for you.
rachat024 is offline   Reply With Quote
Old 05-26-2009, 10:23 PM   #262
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by rachat024 View Post
Well, nrapallo, your posts are great. They're very informative and helpful. You must be very good at this area. Many thanks for you.
With over a hundred posts in this thread alone, you would think I do have something to say on this subject matter....

Thanks for the kind words and welcome to MobileRead.com! Do you have any particular ebook reader in mind?
nrapallo is offline   Reply With Quote
Old 06-18-2009, 09:55 AM   #263
projectxz2005
Junior Member
projectxz2005 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2009
Device: Kindle2
I'm just wondering whether it's possible to add minfilter5 to the source for pdfread when using the script on a Mac? The program is working but the output is different (and inferior) to when I run it on windows.
Also I'm wondering what method is used to chop out whitespace in PDFRead? Is there a way to do it in imagemagick for example?
And I'm using kindle2. Thanks for your work on this cool app.

Last edited by projectxz2005; 06-18-2009 at 10:19 AM.
projectxz2005 is offline   Reply With Quote
Old 06-18-2009, 10:28 AM   #264
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by projectxz2005 View Post
I'm just wondering whether it's possible to add minfilter5 to the source for pdfread when using the script on a Mac? The program is working but the output is different (and inferior) to when I run it on windows
It should be very easy to do so, as the attachment pdfread-MinFilter5-mod-bin.zip contains both the modified python scripts and windows executable. You can disregard the windows binaries and library.zip and just copy over the .py python scripts.

This attachment can be found at the bottom of post #1 of this thread. Even though it says the EDIT: 14 Oct 2008 - for Sony users, it also is for all those that want to try the new minfilter5.

Just unzip that attachment and overwrite the files in the respective directories in your PDFRead install folder.

I keep the minfilter3 and minfilter5 files in two folders and overwrite the main files so as to switch between the two as necessary.

Have a go at it!
nrapallo is offline   Reply With Quote
Old 06-19-2009, 02:56 PM   #265
sungeng1
Junior Member
sungeng1 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2009
Device: Kindle DX
Hello,
Has somebody come up with a Kindle DX profile?

Thank you.

Last edited by sungeng1; 06-19-2009 at 03:54 PM.
sungeng1 is offline   Reply With Quote
Old 06-19-2009, 04:47 PM   #266
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by sungeng1 View Post
Hello,
Has somebody come up with a Kindle DX profile?

Thank you.
Ya, good question!

Any ideas about an optimal Kindle DX profile...

p.s. the Kindle 2 profile has already been discussed here:
- https://www.mobileread.com/forums/sho...736#post419736
- https://www.mobileread.com/forums/sho...011#post428011
nrapallo is offline   Reply With Quote
Old 06-19-2009, 05:24 PM   #267
projectxz2005
Junior Member
projectxz2005 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2009
Device: Kindle2
Quote:
Originally Posted by nrapallo View Post
It should be very easy to do so, as the attachment pdfread-MinFilter5-mod-bin.zip contains both the modified python scripts and windows executable. You can disregard the windows binaries and library.zip and just copy over the .py python scripts.....
Cool. Thanks man! Alas I woke up this morning to a kindle 2 that doesn't turn on. Returning it tomorrow Just wondering about the whitespace removal feature of pdfread...Could you tell me some more about it? i gather it's native to the script as opposed to imagemagick?
projectxz2005 is offline   Reply With Quote
Old 06-19-2009, 09:43 PM   #268
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by projectxz2005 View Post
Cool. Thanks man! Alas I woke up this morning to a kindle 2 that doesn't turn on. Returning it tomorrow Just wondering about the whitespace removal feature of pdfread...Could you tell me some more about it? i gather it's native to the script as opposed to imagemagick?
Not much to tell, as I didn't write the code myself. It basically is a cropping mechanism which stops at the (almost) first non-white "dot" vertically and horizontally. The "almost" part recognizes that the crop percentage can move that cropping line a bit.

The python script, process.py, has two functions that accomplish it, namely:

crop
Code:
""" perform image cropping via whitespace detection """
def crop(input, percent=DEFAULT_CROP_PERCENT):
  p('CROP ')
  w, h = input.size
  img  = ImageChops.invert(input)
  box  = img.getbbox()
  if box is None:
    return None

  l, t, r, b = box

  # crop horizontal blank areas
  temp = crop_axis(input, img, t, b, percent,
                   lambda s, e: (0, s, w, e),
                   lambda s   : (w, s),
                   lambda s   : (0, s))

  w, h = temp.size
  img  = ImageChops.invert(temp)

  # crop vertical blank areas
  return crop_axis(temp, img, l, r, percent,
                   lambda s, e: (s, 0, e, h),
                   lambda s   : (s, h),
                   lambda s   : (s, 0))
and
crop_axis
Code:
""" internal function for cropping a single axis """
def crop_axis(input, img, start, end, percent,
              func_crop, func_size, func_pos):

  # compute optimal step and size for given axis percentage
  size = min(MAX_CROP_SIZE,  max(1, int((end-start)*percent/100)))
  step = min(MAX_CROP_STEP,  max(1, int(size/10)))

  content    = []
  begin      = start
  blank_area = False
  for i in range(start, end, step):
    test = img.crop( func_crop(i, i+size) )
    if test.getbbox() is None:
      if not blank_area:
        # we've hit a blank area, so save content area
        content.append( (begin, i) )
        blank_area = True
    else:
      if blank_area:
        # we've moved out of a blank area, mark beginning
        begin = i
        blank_area = False

  # handle the last leftover area
  if not blank_area and end > begin:
    content.append( (begin, end) )

  # create image with shrunken axis
  newI   = sum([last-first for first, last in content])
  output = Image.new(input.mode, func_size(newI), None)

  # append the content parts
  i = 0
  for first, last in content:
    output.paste( input.crop(func_crop(first, last)), func_pos(i) )
    i += (last - first)

  # return output
  return output
nrapallo is offline   Reply With Quote
Old 06-21-2009, 03:53 PM   #269
dsip
Connoisseur
dsip ought to be getting tired of karma fortunes by now.dsip ought to be getting tired of karma fortunes by now.dsip ought to be getting tired of karma fortunes by now.dsip ought to be getting tired of karma fortunes by now.dsip ought to be getting tired of karma fortunes by now.dsip ought to be getting tired of karma fortunes by now.dsip ought to be getting tired of karma fortunes by now.dsip ought to be getting tired of karma fortunes by now.dsip ought to be getting tired of karma fortunes by now.dsip ought to be getting tired of karma fortunes by now.dsip ought to be getting tired of karma fortunes by now.
 
Posts: 73
Karma: 495694
Join Date: Feb 2009
Device: Between Devices..
Hello!

I have stumpled upon a pdf where I get little squares at certain positions (in the output), which are not displayed in the original pdf.

It looks like this:
https://www.mobileread.com/forums/att...1&d=1245613602

The pdf in question is this one:
http://linguistics.buffalo.edu/peopl...G_overview.pdf


I guess ghostscript lacks a sign here or something like that? Any recommendations on how to get rid of those? Because in some cases they seem to be at the same position as the following letter and the two kind of "merge", which is quite annoying.. (see the "General" in the attached image).
Attached Thumbnails
Click image for larger version

Name:	Clipboard02.jpg
Views:	779
Size:	136.8 KB
ID:	31028  
dsip is offline   Reply With Quote
Old 06-22-2009, 01:57 PM   #270
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by dsip View Post
Hello!

I have stumpled upon a pdf where I get little squares at certain positions (in the output), which are not displayed in the original pdf.

It looks like this:
https://www.mobileread.com/forums/att...1&d=1245613602

The pdf in question is this one:
http://linguistics.buffalo.edu/peopl...G_overview.pdf


I guess ghostscript lacks a sign here or something like that? Any recommendations on how to get rid of those? Because in some cases they seem to be at the same position as the following letter and the two kind of "merge", which is quite annoying.. (see the "General" in the attached image).
They look like a tab character. It may be that Ghostscript doesn't handle a tab correctly or recognize it, although that would be a stupid bug. Typically a square means that the character is not recognized. Often that is because it is missing from the font set being used and can be fixed by changing fonts but this looks like changing fonts won't help. I suspect you are stuck with it unless you can get the Ghostscript guys to fix their code or perhaps there is a later version. What does it look like in Adobe?

Dale
DaleDe is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help using PDFRead daithi81 Workshop 8 10-16-2009 09:33 AM
Need help with PDFRead pfisterfarm PDF 8 03-23-2009 09:19 AM
pdfread cybook x3oo Cybook 2 03-09-2009 11:49 AM
PDFRead 1.7 released ashkulz PDF 87 03-12-2008 10:29 AM
PDFRead v5 available on Sourceforge Alexander Turcic PDF 3 04-08-2007 06:31 AM


All times are GMT -4. The time now is 10:21 AM.


MobileRead.com is a privately owned, operated and funded community.