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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate FontInfoprivate org.apache.xmlgraphics.ps.PSGenerator -
Constructor Summary
ConstructorsConstructorDescriptionPSRenderingContext(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.PSGeneratorReturns the PostScript generator.Returns the MIME type associated with the current output format.booleanIndicates 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 AbstractRenderingContext
getHint, getHints, getUserAgent, putHint, putHints
-
Field Details
-
gen
private org.apache.xmlgraphics.ps.PSGenerator gen -
fontInfo
-
createForms
private boolean createForms
-
-
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
-
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
-