Red Hat Bugzilla – Bug 495136
Add support for setting paper sizes in Publican-created PDFs
Last modified: 2010-11-23 23:16:51 EST
Created attachment 338999 [details]
Patch to make it much easier to specify paper sizes in Publican
Description of problem:
I've always wanted to be able to set the paper size on a document-by-document basis in Publican, so I finally wrote a patch.
Version-Release number of selected component (if applicable):
My patch is against SVN trunk
I'll attach the patch as an attachment to this bug. I've only adjusted the Makefile template for the common template... obviously this would extend just as well to the fedora, o-virt, jboss templates as well.
Could I please get some feedback on this feature? I'm not trying to be pushy -- just curious on getting some feedback. I realize that there have been some changes with regards to Publican (but don't really understand what happened there), and I wanted to make sure this didn't fall through the cracks.
Is this a useful feature? If nobody else finds it useful, I'll just keep my patches for my own use.
Was it implemented correctly? If not, I'm happy to receive feedback to make it fit better within the Publican framework.
I've been editing my stylesheet which is a totally unsatisfactory solution.
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.
More information and reason for this action is here:
Saving for the print-ready QA run. Need to test with Asian and Indic languages.
I'm not sure why Asian and Indic languages would make a difference with regards to paper sizes... but that's probably just my lack of understanding.
If there is anything else I can do to help push this forward, don't hesitate to let me know.
Created attachment 348991 [details]
Patch to set both paper size and body font size for Publican
Kushal Das and I were chatting on the #fedora-docs IRC channel today, and he found this patch useful, but said that in his case, he wanted to change the body font size as well, as the default font size was too large for A5-sized paper.
I realize that the two settings (paper size and font size) aren't directly related, but since they were some similar in the way that they could be handled by Publican, I decided to post another patch.
Feel free to ignore this second patch if you don't think font size should be set the same way. (This new patch has not been tested, either.)
Patch is against SVN trunk.
Created attachment 356264 [details]
Patch to make it much easier to specify paper sizes in new Publican Beta
I've updated my paper-size patch for the new Publican beta, and I'd really like some feedback on whether or not you think it is appropriate to be added to Publican.
(I have several other XSL stylesheet parameters I'd like to expose via the publican.cfg configuration file, but I'll start out with this simple one for now.)
The beta will accept xsl of the form '^pdf*' to allow custom pdf sizes, this xsl file could be shipped with a brand package.
publican build --formats=pdfA3 --langs en-US
publican-1.2-0.fc12 has been submitted as an update for Fedora 12.
publican-1.2-0.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.
publican-1.2-0.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.