Skip to Content

Creating PDF from code with FOP

View this article in Belorussian provided by fatcow. [ Translated by Uta Bayer ]

I recently had a project that needed to do a whole lot of number crunching, and then create a PDF to present those numbers and a line chart as well. This presented two problems for me - how to create a PDF from code, and how to create a chart for use within that PDF. I can say that I have had some success and wish to share with you the process. I'll talk about the PDF side of things in this article, and post another soon with details on how I handled the chart. But an overview of the chart solution is included below.

Hints of the future

The Internet has changed the world. There are people who MUST have Internet access every day. There are businesses that would not exist without it. News and information is disseminated faster over the net than over traditional channels like Television or Newspapers. People increasingly use the Internet to communicate with friends and family, do their jobs, shop, or even learn.

Thoughts of servers and maintenance

This weekend my web server was suddenly not accessible. But not just the webserver - I couldn't connect to the box directly at all, so all the other services (like the virtual machine that was running email) were also down. The culprit turns out to be the hard drive. After a couple of forced reboots, the box came back, but reported some SATA errors. It's running right now, though I no longer trust that drive. I have a replacement drive ready to go, but decided this was THE opportunity to do up my server the way I've been meaning to.

Microsoft Submits Windows 7 for Antitrust Review

SlashDot and ComputerWorld are reporting that Microsoft has submitted the next version of Windows to the AntiTrust regulators for review. There will be lots of commenting on this action - and Microsoft is hoping to help "prove" that it is sincere in embracing this whole "competition" thing, and "Open Source" community.

Sometimes I think too much

I'm having a restless night and felt the urge to jot down some of what was going through my mind. For a change, this is a non-technical post. I tried to be brief, but well, here:

I am sitting here restless
feeling the need to be doing something,
lacking the focus to determine what.

Thoughts of reflection flowing through my mind
As I try to find something to distract me
long enough to fall asleep again.

Regrets of the past and present,
wondering if the right choices were made,
where I would be if another path were followed.

Lost or abandoned loves,
what could have been,

Your own Internet Radio on Linux - Updated

I have recently met a new friend who happens to be a DJ for The World Net Radio. I had the opportunity to see this friend set up for a DJ session and what it took to make the radio station work. But my friend is not a Linux user (yet), so I was seeing things from the Windows perspective. Tonight I decided to see if this could be done from a Linux perspective. I've had moderate success, so will detail what I've found seeing as the documents out there are a little sparse on details.

Frustrations with IE and JSON code

I write a fair bit of JavaScript. I also run into situations frequently where I need to pass data to or from a server to the web page via Ajax. jQuery helps a lot with this, but there I keep running into one tiny little snag with JSON that frustrates me no end.

Internet Explorer (6 or 7) doesn't like this JSON code:

 { "name": "bob", "phone" : "555-5555", "age" : 55, }

Updated Drupal CCK Import script

I've been receiving mail regarding my CCK node import script. So far it's been positive feedback. In particular, I received an email from Esteban Acosta Villafañe in Argentina today. He passed on some changes he made to my script that allow files to be attached to the imported nodes, and determines the mimetype as well. To make this happen, both the import script and the include file needs to be changed. Here are the revised files:

Import CSV files into Drupal CCK nodes

UPDATE : Esteban Acosta Villafañe from Argentina sent me an updated script that handles linking/importing files with your CSV data, and will dynamically determine the mimetype of those files. You can see his modified script here in the blog posting I made when he sent this to me.

Back online - er, was I offline at all?

Well, that was lots of planning for what turned out to be a non issue. The server moved, but we only had a 3 hour window without Internet. We were close enough to our old location that we ended up with the same static IP addresses even. So all the planning and warnings were well, useless. Oh well, it gave me something to do (like I don't have enough on my plate already... :)

Syndicate content