PDF: Windows vs Linux File Size
I’ve recently switched to Linux (Ubuntu 8.10) as my main operating system. I find it’s a more effective workspace for most of my tasks. Check it out if you haven’t already; Linux really is growing up. I do keep Windows around for a couple tasks, mainly gaming, but Linux is closing the gap on that, too, through the latest implementations of Wine.
One thing I’ve noticed, though, that I haven’t been able to pin down a reason for, is that PDF file sizes in Linux seem high compared to those generated in Windows. I know, this is a somewhat generic statement given the fact that, Linux or Windows, the process is dependent on the software doing the compression. Yet there seems to be a consistent discrepancy between the two operating systems when it comes to PDF file sizes. Looking around online, my observations seem to be somewhat validated. A popular solution on forums is to use the DjVu compression scheme, but I’d prefer sticking with the fairly universal PDF file format. To its credit, DjVu seems to match or better PDF when it comes to black-and-white documents, but it falls behind in grayscale.
So I ran a little test, scanning the front page of my offer letter for my new job. It consists of a company logo at the top and a full page of text. It is somewhat indicative of what I archive. All scans were done in black-and-white or grayscale. Results (file size in bytes):
In order of size:
Make note of the file extensions; there are actually three different file types in those listings. The file names lead with resolution, with the exception of the two starting with “CNN.” Those two were PDF’s created by printing cnn.com’s cover page to PDF in Linux and Windows (using PDF Creator). The cover page contained slightly different content but not enough to explain the file size difference. After the resolution in the file name comes the operating system, followed by compression algorithm where applicable. Immediately after the hyphen is the grayscale/black-and-white indicactor and in those cases where there is a second hyphen, it indicates the file was post-processed with a PDF printer at the stated resolution.
For Windows, where a compression algorithm is not listed, I used the software included with my Canon LiDE 50 scanner, which saves directly to PDF. In Linux, I used the popular gscan2pdf GUI. Having OCR on or off did not seem to make much of a difference, as far as file size. For gscan2pdf, the file was also processed with Unpaper, which should optimize the file further (it also creates blockiness in the document’s whitespace that is undesirable to me, but it’s fine for archiving documents).
So there you go. The difference is significant. One would have to dig into the underpinnings of the software, I think, to expose the reason for this, but I’m definitely curious. Again, DjVu pulls close and surpasses PDF when it comes to black-and-white scanning, but even it falls short when using grayscale (which happens to by my method of choice). I’ll admit I don’t relish the idea of booting into Windows simply to archive documents.
…why I have this compulsion to wash an old pair of boxers after wearing them for the last time, before throwing them out. Why can’t I approach the event with a “one last time for old time’s sake” mentality, then toss them? On some level, do I value the opinion of anyone who happens to go through my trash? Is it simple consideration for those downstream of me in the chain of garbage collection? I…just…don’t…know.
…you were right. As much as I enjoy disagreeing with you, the atmosphere after you left tonight shaped up to be pretty much what you predicted. I was surrounded by fairly unintelligible, inebriated patrons whose slurred speech surely must have been the only obstacle between me and the philosophical epiphanies they espoused.
For lack of a better target, I found my gaze drifting toward the mirror on the back wall of the bar, where I locked on to my own eyes. I am familiar enough with social decorum to realize the air of narcissism commonly associated with staring at one’s own image, but as I proceeded to casually, spuriously, redirect my attention, I came to an equal counter-realization: perhaps we do not stare ourselves down quite often enough.
And so I sat at the bar those next few minutes, looking myself in the eye, wondering what I was still doing there. I never did come up with a very good reason. At that moment I came to understand that what mattered to me had walked out the door several minutes before, and that I should have followed.
Leave it to me.
Fire Prevention Week
I just returned from a morning trip to Cleveland Metro’s burn unit, where an attractive nurse-type figure redressed the upper-second-degree burns on my left hand.
“At least the basket of puppies is okay.”
Something tells me she wasn’t going to fall for that line. And let’s be honest: neither are you. I can claim no such honorable deed.
You know it was a decent Friday night when you find yourself in the ER during the wee hours of the next morning. Evidently, I had to relearn what most must know as obvious fire safety. So the following list of nuggets will come as nothing new, but here they are:
See? All pretty simple notions, right? Keep them in mind and you may very well lead a more comfortable life. As for me, aside from some momentary discomfort, a bruised ego, and perhaps a jeopardized future in hand modeling, I’m going to be just fine.
I just do not have tolerance for it anymore. It could be that time has eroded my patience or altered my perspective or simply made me angrier, I don’t know; but I can feel within me that silent objection is no objection at all and instead stinks outwardly of implied condonation. And I’m not okay with that.
I anticipate exciting things to come since the intolerant often don’t respond well to…umm…not being tolerated.
What are yours? How long have you had them? When was the last time you gave them an honest reassessment?
I wonder how faithfully the priorities upon which the average person acts reflect what he or she actually wants in life. I think it’s tempting to simply adopt a set of priorities and use them as an intractable architecture upon which to base our life’s pursuits, neglecting to evolve them according to how we want to live; the cart leads the horse. Imposing such stability on one’s goals can be enticing at first, hasty glance.
What if you are deceiving yourself? How much time – how many years – have you wasted?
It should go without saying that we ought exercise vigilant scrutiny of our so-called life priorities, and yet I think that is easy to forget. Once begun, the lure of a chase can be perpetual and deceptively gratifying, however misguided.
Is it too late?
I see little nobility in the blind pursuit of empty priorities – I fear many are – and I pity those of us who lack the timely, vital discernment required to see.
On my drive home today, I was scanning the airwaves and stumbled upon “Hollaback Girl” by Gwen Stefani. I’m not a huge fan of the song so I continued searching stations, but it got me thinking: what was the meaning of these lyrics? If you’re not a “hollaback girl,” as Gwen so craftily phrases it, does this mean you will not return my phone calls? It strikes me as kind of strange. I mean, I’m a nice enough guy, I think, and I thought we really hit things off. I have a genuine desire to see you again, and it’s pretty conventional for a guy to coordinate with a romantic interest via telephone, possibly even leaving a voice message which common courtesy would suggest returning. Why does this somehow make me bananas?
Once in a while I am presented with empirical evidence that suggests, at least to a degree, I must be maturing. I know, I know…I think it’s strange, too.
Last week I was at Fitworks in Rocky River performing the mindless exercises that remind me of my mediocre physical condition. In the middle of four sets of straight-legged dead lifts (Romanian dead lifts – RDL’s – if you’re an OU wrestler…sounds more exotic that way, I guess…adding “Romanian” in front of anything makes it better), I stepped away for a drink. As I returned I saw a couple of guys eyeing my workout cage. I’m always pretty cordial when I see this happen. I asked, “You guys want to work in?”
“No, I don’t do *that* kind of weight,” the one replied smugly. This was by no means a hat-tipping to the amount of weight I had on the bar.
Restraint Demonstration #1: Resisting the urge to say “What, want me to peel some off for you?”
By that, I mean that’s what I DIDN’T say, and I’m not sure why; I normally have few reservations about running my mouth. Maybe it was a combination of the facts that a) this guy had about 50 lbs. on me; and b) I was within arm’s reach. Yeah, maybe that’s it, but even those two factors would be powerless to alter my behavior without receiving some acknowledgment by me, acknowledgment in the form of restraint. This is where I begin to arrive at the somewhat unsettling notion of impending maturity.
At any rate, in my mind I was facetiously thanking him for the moral support as he and his friend found a spot nearby in which to work. The talker of the duo was visually a fairly typical specimen one expects to see in a weight room: meticulous year-round tan, bravado more than compensating for any thinning hair, donning square pieces of fabric held together by shoulder straps. Imagine my surprise when I see him set up a few feet away from me and begin working out with the same exact amount of weight I was using.
Restraint Demonstration #2: “Whew. Good thing you don’t do *this* kind of weight.”
Again, a comment I did NOT make. And again, I lack explanation for my reservedness. I’m as appalled as you are. Maybe it was something I ate that day, maybe it was something in the air, but for whatever reason I just chuckled, kept my mouth shut, and went on my merry way.
When You Have No Business Running
A half marathon, that is.
And I use the term “running” loosely because for me it was more like shuffling. Or maybe plodding.
I partook in such an event in Cleveland this past May after implementing an innovative training method. The crux of this method: run the distance of the half marathon (13.1 miles) in the weeks leading up to it. By that, I mean in the weeks leading up to it run a TOTAL of 13.1 miles. In my case, I did so in 3-4 mile increments.
The results: I may want to revisit this particular training technique. Let me elaborate by providing a summary of the “race.”
Pre-Race: I discovered that there *is* a 7:00 AM on Sundays. This particular one found me standing in the rain in 50-degree temperatures prior to start time. I’m pretty sure the $80 registration fee relinquished the previous day was the only thing that kept me from yanking my bib off and going back to bed, where a person belongs at 7:00 AM on a Sunday.
I knew enough to be nowhere near the front of this masochistic bunch. I made my way backward between race participants until I met a veritable wall of runners who must have also realized that they, too, had no business toward the front of the pack. I figured the spot would have to do.
Mile 1: The opening of the race was fantastic, mainly because it took about a minute and a half for everyone in front of me to start moving. People around me began to slowly move toward the starting line ahead; as I walked comfortably along I noticed a few people begin to run, almost in place, at this incredibly slow pace. What in the world is their hurry?
Mile 2: Breathing easy as I trotted along, I took note of the people around me. I was amazed at the variety of body types represented in the crowd; not exactly what you might picture as ideal. I gained a newfound respect for the effort it must take some people. Don’t get me wrong, I don’t consider myself poetry in motion, but I saw in many individuals so much movement outside the direction of travel that it must take them twice the effort it would otherwise to move the same distance. And, of course, I have to go the bathroom…two miles in.
Miles 3-4: Very comfortable, heading across the West Shoreway. Got behind a young lady whose out-of-direction-of-travel movement I didn’t mind one bit. Thanks to whoever you are; miles 3 and 4 flew by.
Mile 5: Still feeling good, and also approaching unchartered waters. Up to that point, I had never run more than 5 miles at once. I was pretty sure I would learn something about myself that day.
Mile 6: Breathing hard but striding easy. I was surprised I was doing so well.
Mile 7: I realized the error of my ways. I had run miles 3-6 too fast. What I knew would happen began to hit me in Mile 7: my legs began to tighten up. They were simply not used to the abuse (as if any other part of my body is). I slowed way up in order to achieve my goal that day: run the entire race.
Mile 8: Systems began to redline as we looped back around the west side of Cleveland and headed back downtown. I no longer had to go the bathroom. My body had realized its rashness in delivering that fluid for excretion and renigged on its offer. I was passed by many of the body types I had noted earlier that seemed ill-fit for running.
Miles 9-10: Sensory anomalies as I ran east down Detroit Rd. I began to hear noises and my vision was hemmed with red spots. Unlike the start of the race, I was eagerly grabbing cups of water/powerade as I passed by refreshment tables. I did not stop running as I latched onto them; I know myself well enough to know the urge to simply not START again would be too great. My legs were nearly spent, the muscles urging me to stop. Makes sense to me. There was nothing controlled about my breathing.
Miles 11-12 (the finish): It felt as if my body was shutting down certain systems in order to deliver for me. I am grateful to it. My legs had pretty much checked out. The last two miles consisted of delirium, interspersed with the nagging question of why I didn’t just stop. I did not “finish strong,” as I typically like to do when running. It seemed daunting enough just to continue my perpetual plod across the finish line. The second my stride went from “running” to walking, I teetered. I righted myself as I locked eyes with a worker donning latex gloves. With machismo typical of a male, I mustered enough wherewithal to convey to her the message that I was alright. Given the various sensations in my body at that point, I am not sure if the message was accurate or not.
The first few post-race minutes had my mind trying to reattach itself to its physical domain, taking stock of the situation. Some diagnostics were run and it came to the conclusion that, yes, I was going to live. I spotted the bananas. Now, I normally think bananas are okay, I guess, but at that moment they looked irresistible. Inexplicably (I don’t know if this a typical craving of a spent body or what), well before I would have thought my body would want food, I had slammed three of them. They tasted delicious.
Take a Pitch
When life throws you the proverbial curve, there’s nothing wrong with taking a pitch…or two.
Sometimes I feel as if I always swing.