You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/03/26 14:58:31 UTC
DO NOT REPLY [Bug 44678] New: FOP API does not allow using
preconfigured PrinterJob object
https://issues.apache.org/bugzilla/show_bug.cgi?id=44678
Summary: FOP API does not allow using preconfigured PrinterJob
object
Product: Fop
Version: all
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: awt renderer
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: Antti.Karanta@napa.fi
Currently it is not possible to use a custom configured
java.awt.print.PrinterJob when printing via FOP. This makes it somewhat awkward
to use for printing via its API. See the implementation of
org.apache.fop.render.print.PrintRenderer, specifically how instance variable
printerJob is initialized in method initializePrinterJob().
There should be some way to parameterize printing w/ custom PrinterJob object.
The most natural place for this (from the point of view of the caller) would be
a method in org.apache.fop.apps.Fop, since the basic interaction w/ FOP happens
via an instance of that class.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44678] [PATCH] FOP API does not allow using
preconfigured PrinterJob object
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44678
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #5 from Glenn Adams <gl...@skynav.com> 2012-04-01 06:31:19 UTC ---
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44678] FOP API does not allow using preconfigured
PrinterJob object
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44678
--- Comment #2 from Antti Karanta <An...@napa.fi> 2008-03-29 10:41:41 PST ---
Created an attachment (id=21734)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=21734)
patch for the issue
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44678] [PATCH] FOP API does not allow using
preconfigured PrinterJob object
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44678
Jeremias Maerki <je...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Keywords| |PatchAvailable
Resolution| |FIXED
Summary|FOP API does not allow using|[PATCH] FOP API does not
|preconfigured PrinterJob |allow using preconfigured
|object |PrinterJob object
--- Comment #4 from Jeremias Maerki <je...@apache.org> 2008-04-17 06:37:48 PST ---
I've applied your patch with modifications/additions. Thanks!
http://svn.apache.org/viewvc?rev=649091&view=rev
Please note that I've applied it to FOP Trunk. Since it is new functionality
I'm hesitant to put it in the 0.95 branch because that is supposed to be for
bugfixing/stabilizing only.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44678] FOP API does not allow using preconfigured
PrinterJob object
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44678
--- Comment #3 from Antti Karanta <An...@napa.fi> 2008-03-29 10:42:12 PST ---
You're right - I hadn't had the need to pass in renderer specific parameters so
I had missed that.
Here's a patch. I tried to mimic the way transformation specific parameters are
handled w/ pdf renderer. If there is something wrong w/ the patch, let me know.
Any chance of this patch making it to the 0.95 release?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44678] FOP API does not allow using preconfigured
PrinterJob object
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44678
--- Comment #1 from Jeremias Maerki <je...@apache.org> 2008-03-26 10:50:28 PST ---
Actually, the "Fop" class is not the right place. For these things, it is
suggested to use the RendererOptions Map on FOUserAgent
(FOUserAgent.getRendererOptions()). The PrintRenderer has access to this Map.
Can we ask you to help us in this area? Good patches are always welcome. It
might also make sense to investigate a move towards JPS (Java Printing System)
since we've dropped support for Java 1.3. If you need help to get started, just
yell.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.