• Mail merge onto a PDF background

    Some days, I love computers.

    Days like today, where we want send a mailshot to 900 past customers. I got the address list from our MS Access database. I got a PDF of the artwork. What I wanted to do was create a mail merge using the PDF as a background.

    Libreoffice/Openoffice didn’t seem to have a neat way of adding a background so I googled the problem and instantly found the solution here.

    When I next read this, with my luck the page will be gone, so here’s the important bit just in case.

    So, solution; pdftk + background
    I had been reading the pdftk manual like the bishop reads the bible. I don’t know what that means, but I think it is bad. Anyway I only saw what I wanted to see, and that was not background.

    The merging I’ve been looking for was right there. And so the years I spent on this problem were finished! Here’s the procedure:

    Use OpenOffice to mail merge all the names just like blank pages.
    Export as PDF.
    So you’ll get this big, blank document:

    Open a terminal, and add the boat as a background to your 30.000 page PDF.
    pdftk names.pdf background boat_background.pdf output out.pdf

    And there you go. The sweet deal about this, is that the background is only saved once, and referenced on all the other pages. Nice, just like I wanted.

    I’m sure there are other ways to solve this, but this was quick and easy (more so because pdftk is open source and ready to run on Mac OS X, linux and windows).


  • What happens when you break down in France (10 things I learnt)

    364-2012-08-16 16.13.08-thumb-300x251-363.jpgWhen you go on a family holiday and your car gets a longer holiday than you do, you just know something didn’t go to plan.

    This year our camping trip to france had a little ‘incident’ that left me pushing my French skills to the limit, learning new words concerning vehicle parts, pleading with insurance companies and waiting, lots and lots and lots of waiting.

    Still, it was a great holiday! Read on to discover what happened when we broke down and what we learnt.

    (more…)


  • The joy of being a forum/newsgroup moderator

    I like to be helpful. It makes me feel good. When I post lots of technical questions to a community I’ll look to see if I can offer something in return for others. When the spree group asked for volunteer anti-spam moderators I was happy to volunteer.

    One side effect of that was being added to the spree github group which leads to seeing a variety of pull[1] requests. I don’t action any as I don’t have the code skills to validate other peoples submissions. This morning randomecho.com submitted a request which has made me start the day smiling.


    [spree-guides] Copyedits on Customization section (#59)
    Includes such tales as:

    - camel expeditions - basically just casing on JavaScript and GitHub
    - the its/it's trip - where the parents find out one sibling is wearing the other's pants
    - sentence flow - trying to make the examples in the extension versions a little easier to read

    This makes me think, can I make my own writing of neccessary technical things make others smile?

    [1] Pull Request = When someone improves or fixes code in an open source project, they ask project maintainers to ‘pull’ their fix into the project so others can benefit.


Search this site


Free apps

  • birthday.sroot.eu – Your birthday or other celebration date based on [years on other planets] / [how many seconds/days] / [how far you’ve travelled around the sun]
  • stampulator.sroot.eu – Calculates the combination and how many 1st, 2nd, large 1st and large 2nd class Royal Mail stamps you need on large envelopes and packets

Recent posts


Archives


Categories