08-14-2006, 05:01 PM | #16 | |
Enthusiast
Posts: 34
Karma: 10
Join Date: Aug 2006
Device: Palm Tungsten TX / Iliad
|
Quote:
I'll definitely try this method. It would be a lot nicer than the trial and error I've been doing with my Ruby script up until now. |
|
08-14-2006, 05:31 PM | #17 |
Zealot
Posts: 124
Karma: 177
Join Date: Jul 2006
Location: Bochum, Germany
Device: MP2K, iLiad
|
Just an additional idea: If the resulting pdf is too big you could define a custom colorsync filter that grayscales and compresses the images and changes the resolution. The force is strong with preview/colorsync.
Last edited by k2r; 08-15-2006 at 06:43 AM. Reason: typo |
Advert | |
|
08-15-2006, 07:12 AM | #18 | |
Guru
Posts: 607
Karma: 2157
Join Date: Oct 2005
Device: NCR3125, Nokia 770,...
|
Quote:
|
|
08-15-2006, 08:01 AM | #19 |
Connoisseur
Posts: 73
Karma: 16
Join Date: Jul 2006
Location: Zurich, Switzerland
|
Mhh, it seems MacOSX alters the complete PDF, it adds something binary as well (beside the CropBox directive) into the cropped pdf...
|
08-15-2006, 06:57 PM | #20 | |
Banned
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Quote:
I've been fooling around with this trying to see if I can get a spark or interest out of the iLiad. |
|
Advert | |
|
08-16-2006, 04:56 AM | #21 |
Connoisseur
Posts: 73
Karma: 16
Join Date: Jul 2006
Location: Zurich, Switzerland
|
What is also nice: Sometimes I have PDFs, where the text is in gray or light color, then you can use the ColorSync filters in Macosx to generate a profile to increase the contrast of the text.
|
08-18-2006, 07:41 AM | #22 |
Addict
Posts: 302
Karma: 116
Join Date: May 2006
Device: Iliad, dude!
|
For those who are still stuck with cropping by editing the MediaBox: I found that pdftk repairs pdf files where the "xref table" is broken due to tampering with the MediaBox. Just do a "pdftk broken.pdf output good.pdf".
|
09-01-2006, 10:12 AM | #23 | |
Pac-Man caught my iLiad.
Posts: 807
Karma: 3595
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: Boox Max Lumi, iRex iLiad (RIP)
|
Quote:
[OT] »Brick (expensive kind)« gallows humour in it's best form. Best wishes, hope you out of this trouble fast! |
|
09-12-2006, 07:36 AM | #24 | |
Guru
Posts: 607
Karma: 2157
Join Date: Oct 2005
Device: NCR3125, Nokia 770,...
|
Quote:
cat prueba.pdf | sed 's/MediaBox \[.*\]/MediaBox \[0 0 300 500\]/g' > prueba2b.pdf sounds elegant. I wonder if there is some utility to transform binary pdf files to text and back. |
|
09-12-2006, 11:28 AM | #25 | |
Addict
Posts: 302
Karma: 116
Join Date: May 2006
Device: Iliad, dude!
|
Quote:
Code:
perl -e 'while(<STDIN>){s/XXX/YYY/g;print;};' Are you sure that sed is your problem? Are you aware that the regexp you posted is erraneous? It matches from the first "MediaBox [" to the last "]" in a line, which might be the whole file. (sed always chooses the longest possible match of a regexp) This is better: Code:
sed 's/MediaBox *\[[^]]*\]/MediaBox [0 0 300 500]/g' |
|
10-27-2006, 06:10 AM | #26 | |
Pac-Man caught my iLiad.
Posts: 807
Karma: 3595
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: Boox Max Lumi, iRex iLiad (RIP)
|
Maybe it is worth for you to have a look here. There you can download a pdftk plug-in for Vim [an "advanced text editor"].
Quote:
You can find Vim versions for Windows, Linux, & Mac. |
|
01-09-2008, 08:43 AM | #27 |
Connoisseur
Posts: 54
Karma: 12
Join Date: Mar 2007
|
PDFCropper
PDFCropper is the application, designed to solve the problem with preparing for reading normal sized (A4, B4, C4, letter etc.) pdf's on relative small (Sony Reader PRS500/PRS505, iRex Illiad etc.) devices.
The problem is that pdf is not reformat able by nature. Yes, there is reflow mode in Acrobat Reader, but at first Acrobat Reader is not available for most e-book readers (especially for e-ink devices), and second even with reflow function reading of complex content (technical books, magazines etc.) is not comfortable. Bad formatted pdf's and wide white spaces make the situation even worse. The only way how this problem can be solved (at least based on my experience) to cut original pages into smaller pages with removing white spaces. This is exactly what program do. But comparing with similar software PDFCropper is much more flexible, that allows to prepare books with much better quality in a very short time. PDFCropper can produce text and image pdf's. PDFCropper web-site currently is under construction. But it is already available for downloading: PDFCropper v1.1 RC1 links: http://rapidshare.com/files/87491638...Setup.exe.html or http://www.filefactory.com/file/a07bc5/ or http://www.megaupload.com/?d=JI7CM0N4 Trial version of PDFCropper is fully functional, the only thing - output pages include watermark (which by the way displays registration code that you need for obtaining license). And you can download and value an example of prepared (cropped) pdf: This is original one - http://java.sun.com/docs/books/jls/d...ngspec-3.0.pdf These are links to cropped one: http://rapidshare.com/files/87301097...ation.pdf.html or http://www.filefactory.com/file/252400/ or http://www.megaupload.com/?d=8KW32DJT And these are links to the one cropped as image pages (only some pages are there, due large file size): http://rapidshare.com/files/87486857...rtly_.pdf.html or http://www.filefactory.com/file/d02ead/ or http://www.megaupload.com/?d=MJCYT8KH Also, anyone interesting in software, can send me example pdf, and I will send back resulted pdf prepared via application. License price per one computer is 20 euro. Payment can be made via PayPal or directly to bank account. You can ask any questions about using or installing software and details about purchasing the license via e-mail: vstefanyuk@gmail.com P.S. Application is implemented by using Java. You have to have installed Java environment version 1.5 or higher. Also Ghostscript has to be installed. In case if it is not, application will propose you to download. Change log: v1.1 RC1 - fixed the bug with adding table of contents (now appropriate menu item in Sony PRS 500/505 display table of contents correctly). added separate option for adding clickable table of contents pages. added displaying of table of contents in the left pane. improved auto-framing functionality - added possiblty to create frames with size proportional to device size (paper size setting in Crop Settings dialog). improved cropping funcionality - added possibility to remove empty frames in resulting pdf ("Skip empty frames" option in Crop dialog). improved dialogs input errors displaying, errorness fields are highlighted by red. fixed bug with deleting last unaccessible project reference from recent projects list. added pdf restrictions checking during opening pdf. in case if there are no enough rights for pdf manipulating - program will ask pdf user password. example pdf's are updated. simplified trial mode - removed pages shuffling! Last edited by vstefanyuk; 01-29-2008 at 05:11 AM. |
01-31-2008, 04:52 PM | #28 | |
Enthusiast
Posts: 46
Karma: 110
Join Date: Jun 2007
Location: Belfast, UK
Device: Sony Reader PRS-505, MacBook Air
|
Quote:
Ian |
|
01-31-2008, 04:59 PM | #29 | |
Enthusiast
Posts: 46
Karma: 110
Join Date: Jun 2007
Location: Belfast, UK
Device: Sony Reader PRS-505, MacBook Air
|
Quote:
Ian |
|
01-31-2008, 09:39 PM | #30 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jan 2008
Device: Probably will be Cybook Gen3
|
I've been reading this site for some time and I've found a solution for expanding pdf's by "tiling". This allows one page to be expanded to two or more pages making a zoomed in version of a pdf.
This can be done with MindCad Tiler: http://mac.softpedia.com/progDownloa...load-9560.html http://www.mindcad.com/tiler.html which is only for mac (sry) or Adobe Acrobat Professional -in Tiler open your pdf, set page setup to print in landscape mode (on side) and save as pdf. You will need to repeat this for every page... -in Adobe, select print; in the options screen that opens set page scaling to "tile all pages" then set zoom to 180% (fits one page onto two pages nicely) and then in output options select "save as file" pdf with pdf formatting Both of these options produce neatly cut pages but the text recognition is damaged in some, not all, programs. Sometimes text can be cropped a bit but the remaining text looks fine. I haven't tried this on a ebook reader yet as I am still undecided but this pdf size problem shouldn't be too bad of a turn off if you are into reading articles where pdf formatting is important. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cropping Multiple Files | SpyKiIIer | 16 | 12-07-2012 12:09 AM | |
Cropping .pdfs with Briss and converting with Calibre | mrslecavalier | Amazon Kindle | 6 | 07-13-2010 07:53 PM |
cropping pdf with preview | wang960 | Sony Reader | 2 | 05-05-2009 09:28 AM |
Yet another PDF cropping tool | sjvr767 | iRex | 7 | 02-14-2009 07:04 AM |
yet another cropping tool | moggie | 4 | 01-16-2009 04:42 AM |