forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iss...@cocoondev.org
Subject [issues] Assigned: (FOR-112) PDF page size and orientation in skinconf.xml
Date Thu, 01 Jan 1970 00:00:00 GMT
Message:

   The following issue has been re-assigned.

   Assignee: Juan Jose Pablos (mailto:cheche@che-che.com)
   Assigner: Juan Jose Pablos (mailto:cheche@che-che.com)
       Date: Wed, 11 Feb 2004 11:21 AM
    Comment:
I will investigate and I will let you know then this has been added.

Thanks
---------------------------------------------------------------------
View the issue:

  http://issues.cocoondev.org/jira//secure/ViewIssue.jspa?key=FOR-112


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: FOR-112
    Summary: PDF page size and orientation in skinconf.xml
       Type: New Feature

     Status: Assigned
   Priority: Minor

    Project: Forrest
  Component: Forrest skins
   Versions:
             HEAD

   Assignee: Juan Jose Pablos
   Reporter: Florian G. Haas

    Created: Mon, 9 Feb 2004 12:33 AM
    Updated: Wed, 11 Feb 2004 11:21 AM
Environment: Tested on Linux with JDK 1.4.2_01-b06.

Description:
Inspired by Ross Gardler's reply to my forrest-dev post titled "Tables, FOP, and page orientation",
here is a patch that allows the user to set the PDF page size and orientation in skinconf.xml.
Warning: I'm not sure if the patch isn't too disruptive to existing installations -- please
take a look.

Patch summary:
* Changes the skinconf.xml DTD and corresponding .rnc to allow an optional "pdf" element,
containing an "page" element with attributes "size" and "orientation".

* Modifies src/core/context/skins/common/xslt/fo/document2fo.xsl to read these two attributes
from skinconf.xml, and to determine page-height and page-width attributes on simple-page-master
accordingly.

* Modifies src/core/context/sitemap.xmap to actually pass the "config-file" parameter to the
FO/PDF pipeline, which it didn't do before. I'm not sure whether this actually constitutes
a bug fix, or whether passing in the parameter was previously considered unnecessary -- but
since document2fo.xsl does specify the parameter, I suspect it should be passed in.

Page sizes currently supported are ISO A0 - A5, US Legal & Letter, Executive, Folio, Ledger,
and Tabloid. Supported page orientations are portrait and landscape. Default is US Letter
portrait to match the current hardwired page setup.

I suppose the "pdf" element in skinconf.xml could (should) later be extended to allow for
custom page margins etc.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org/jira//Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message