GitHub user argv-minus-one opened a pull request:

    https://github.com/apache/fop/pull/2

    Add methods ‘setPageWidth’ and ‘setPageHeight’ to class FOUserAgent.

    It used to be possible to provide default page dimensions on a per-UA 
basis. This was useful because the needed page dimensions may change for 
different runs (i.e. `Fop` instances) in the same application (i.e. same 
`FopFactory` instance). An application I am currently shipping needs this: the 
page dimensions are set to whatever the user previously entered in the Page 
Setup dialog.
    
    In FOP 2.0, however, this is no longer possible, because there is no 
`public` or `protected` constructor to the `FOUserAgent` class. Hence, there is 
no way to override the `getPageWidth` and `getPageHeight` methods.
    
    This PR serves the aforementioned use case by adding `setPageWidth` and 
`setPageHeight` methods to the `FOUserAgent` class.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/argv-minus-one/fop 
feature/FOUserAgent-set-page-dimensions

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/fop/pull/2.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2
    
----
commit 3bcc087daf6c7fc190226fe81078f92195854fc2
Author: Alex Hvostov <a...@valuadder.com>
Date:   2015-09-30T06:19:42Z

    Add methods ‘setPageWidth’ and ‘setPageHeight’ to class FOUserAgent.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to