public class PSRenderingContext extends AbstractRenderingContext
Constructor and Description |
---|
PSRenderingContext(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.
|
Modifier and Type | Method and Description |
---|---|
FontInfo |
getFontInfo()
Returns the font list.
|
org.apache.xmlgraphics.ps.PSGenerator |
getGenerator()
Returns the PostScript generator.
|
java.lang.String |
getMimeType()
Returns the MIME type associated with the current output format.
|
boolean |
isCreateForms()
Indicates whether PS forms should be created for the images instead of inline images.
|
PSRenderingContext |
toFormContext()
Create a copy of this rendering context and activate form mode.
|
getHint, getHints, getUserAgent, putHint, putHints
public PSRenderingContext(FOUserAgent userAgent, org.apache.xmlgraphics.ps.PSGenerator gen, FontInfo fontInfo)
userAgent
- the user agentgen
- the PostScript generatorfontInfo
- the font listpublic PSRenderingContext(FOUserAgent userAgent, org.apache.xmlgraphics.ps.PSGenerator gen, FontInfo fontInfo, boolean createForms)
userAgent
- the user agentgen
- the PostScript generatorfontInfo
- the font listcreateForms
- true if form generation mode should be enabledpublic java.lang.String getMimeType()
public org.apache.xmlgraphics.ps.PSGenerator getGenerator()
public FontInfo getFontInfo()
public boolean isCreateForms()
public PSRenderingContext toFormContext()
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.