Hello, after having installed fop for creating some pdf documents from xml documentation, the generated document was letter size. To change it to A4, I had to make the following change: /usr/share/sgml/docbook/xsl-stylesheets-1.68.1/fo/param.xsl line 450: USletter -> A4 As I believe there might be some more programs (e.g. ghostscript etc.) which might have a default papersize set, which is not the users preferred size. So I thought whether it is possible to add the global use flags letter and a4, and adjust the configuration of affected programs accordingly. A problem could be that some people might also prefer some more uncommon papersizes, so maybe this could be also set as an option somewhere? What do you think about it? Cheers, Stefan
To have a starting point, I suggest collecting some applications that could make use of these flags. Even if this thread will not result in new use flags, the collected information could be used to create a wiki entry / howto somewhere for those interested in setting up their system accordingly. So, for a first start, the ppd files from cups have "DefaultPageSize" entries, which could be adjusted accordingly.
Debian apparently uses something called libpaper and libpaper-utils which they developed themself: http://packages.debian.org/unstable/libs/libpaper1 Besides being a lib which is controlled by the file /etc/papersize it provides paperconf and paperconfig used to read and configure the systems default paper size.
libpapersize makes sense is there still any interest in this one here?
(In reply to comment #3) > libpapersize makes sense > > is there still any interest in this one here? Sure... It is just not on the top of my priority list. Maybe I should just do the two ebuilds (libpaper and paper-utils), put them in the tree and then afterwards figure out how to incorporate it with the other packages. How about creating a papersize.eclass, that would probably be useful? That way ebuilds can set the correct paper size when they are emerged. The real problem is how to alter for instance cups config file when the paper size is changed later (or notify the user that there is a config file which needs altering). Comments?
The debian packages include patches to use libpapersize instead of pkg-specific configs. I suggest we just grab those and add them to our packages
I added libpaper to the tree, together with a depend in cups-1.2_pre + --enable-libpaper libpaper already includes the utils. Have fun playing with it :)
(In reply to comment #6) > I added libpaper to the tree, together with a depend in cups-1.2_pre + > --enable-libpaper Nice! Do you mind if I add text-markup as second (first?) herd? It seems very much related, since not only printing needs to set paper sizes (everything that generates pdf/ps/... i.e., text related needs to do that as well). Btw. are there any reason you choose the ubuntu package instead of the debian one? The ubuntu one lacks ability (or at least it is not mentioned in the man page) to notify other apps by running scripts located in /etc/libpaper.d. > libpaper already includes the utils. Have fun playing with it :) I noticed that :) Now we only need to make apps use this package (open bugs that block this one) :)
(In reply to comment #7) > Nice! > Do you mind if I add text-markup as second (first?) herd? It seems very much > related, since not only printing needs to set paper sizes (everything that > generates pdf/ps/... i.e., text related needs to do that as well). sure, no problem with me. > > Btw. are there any reason you choose the ubuntu package instead of the debian > one? The ubuntu one lacks ability (or at least it is not mentioned in the man > page) to notify other apps by running scripts located in /etc/libpaper.d. I updated it from debian now, thanks. > Now we only need to make apps use this package (open bugs that block this one) > :) > yeah. We might want to look up the rdeps from debian.
libpaper is i the tree. If you want to do more open new bugs or just do it :)