PDF pagesizes

You have to admit it; you started reading this blog and fully expected a new years greeting. But HAH; I won't do that in a blog. Find me in real life and I'll add a hug or handshake to match. You know you want one!

Ok, with that out of the way, I want to talk about something that I find pretty darn exciting. Honestly, I think that a lot with KDE4 apps, they all have such very smart ideas. Well, this one is a bit different. I blogged about page sizes some 8 months ago, in that blog I said that I finished a feature that allows you to have a different page size for each page. There was just one tiny little detail that I forgot (for various definitions of forgetting); you need to be able to actually print those pages for this feature to come to its fullest potential.

I already blogged about me adding a method to QPrinter set a custom page size for printing. And that works great; but after implementing this stuff in KWord I found that it was not enough. I got the funny result that the page sizes for all pages were equal to the last set page size. Close, but no sigar.
So, over the holdays I spent some time reading up on the PDF spec and figured it was a simple bug that I could fix with some effort. The bugfix is in 4.4 and KWord can now honestly create proper PDFs with the pagesizes as you expect them. Some testing also showed that portrait/landscape *just works*. So I'm confident that a lot of new users are going to be happy with these capabilities.

While reading the PDF spec I noted that we can use some extra pdf tags to do things like bleeding better. We already do bleeding and it and probably *just* works for the majority of the printshops, but software can always get better. I'll reserve that for Qt4.5 though.

As talking about graphics kind of makes a screenshot mandatory; here you go:

Page size pdf

For the printer or printshop owners; here is the PDF itself (its uncompressed for debugging purposes) The pdf (pagesizes).

Blog Topics: