Package org.apache.fop.render.ps
Class PSRenderingContext
java.lang.Object
org.apache.fop.render.AbstractRenderingContext
org.apache.fop.render.ps.PSRenderingContext
- All Implemented Interfaces:
RenderingContext
Rendering context for PostScript production.
-
Constructor Summary
ConstructorDescriptionPSRenderingContext
(FOUserAgent userAgent, org.apache.xmlgraphics.ps.PSGenerator gen, FontInfo fontInfo) Main constructor.PSRenderingContext
(FOUserAgent userAgent, org.apache.xmlgraphics.ps.PSGenerator gen, FontInfo fontInfo, boolean createForms) Special constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the font list.org.apache.xmlgraphics.ps.PSGenerator
Returns the PostScript generator.Returns the MIME type associated with the current output format.boolean
Indicates whether PS forms should be created for the images instead of inline images.Create a copy of this rendering context and activate form mode.Methods inherited from class org.apache.fop.render.AbstractRenderingContext
getHint, getHints, getUserAgent, putHint, putHints
-
Constructor Details
-
PSRenderingContext
public PSRenderingContext(FOUserAgent userAgent, org.apache.xmlgraphics.ps.PSGenerator gen, FontInfo fontInfo) Main constructor.- Parameters:
userAgent
- the user agentgen
- the PostScript generatorfontInfo
- the font list
-
PSRenderingContext
public PSRenderingContext(FOUserAgent userAgent, org.apache.xmlgraphics.ps.PSGenerator gen, FontInfo fontInfo, boolean createForms) Special constructor.- Parameters:
userAgent
- the user agentgen
- the PostScript generatorfontInfo
- the font listcreateForms
- true if form generation mode should be enabled
-
-
Method Details
-
getMimeType
Returns the MIME type associated with the current output format.- Returns:
- the MIME type (ex. application/pdf)
-
getGenerator
public org.apache.xmlgraphics.ps.PSGenerator getGenerator()Returns the PostScript generator.- Returns:
- the PostScript generator
-
getFontInfo
Returns the font list.- Returns:
- the font list
-
isCreateForms
public boolean isCreateForms()Indicates whether PS forms should be created for the images instead of inline images. Note that not all image handlers will support this!- Returns:
- true if PS forms shall be created
-
toFormContext
Create a copy of this rendering context and activate form mode.- Returns:
- the form-enabled rendering context
-