|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jfig.utils.PresentationPDFWriter
use the PDFWriter and PDFGraphics2D classes from the Freehep project to export a given jfig presentation (in JAR format) to PDF format. Usage: go to the base directory of the presentation, then run java jfig.utils.PresentationPDFWriter 00presentation.jpt and wait...
Field Summary | |
(package private) FigAttribs |
attributes
|
(package private) java.awt.Rectangle |
bounds
|
(package private) FigObjectList |
objectList
|
(package private) java.io.OutputStream |
outputStream
|
(package private) FigParser |
parser
|
(package private) PDFGraphics2D |
pdf2D
|
(package private) PresentationParser |
presentationParser
|
(package private) java.util.Properties |
props
|
static int |
SLEEP_MILLIS
|
(package private) FigTrafo2D |
trafo
|
Constructor Summary | |
PresentationPDFWriter()
construct a PresentationPDFWriter relying on the FreeHEP graphicsio.pdf classes. |
Method Summary | |
static void |
main(java.lang.String[] argv)
|
void |
makeBufferedImagesWithoutAlpha()
|
static void |
msg(java.lang.String s)
|
void |
openOutputStream(java.lang.String filename)
|
void |
openPresentation(java.lang.String filename)
open and parse the specified jfig presentation index file (.jpt) |
void |
parseSlide(java.lang.String resourcename)
|
void |
waitForTheImages_ASYNC()
|
void |
waitForTheImages()
use a MediaTracker to preload all images embedded in the current FIG slide. |
void |
writeHeader()
write the PDF header for our multipage PDF document using FreeHEP PDFGraphics2D (version 1.2). |
void |
writeOnePage()
|
void |
writePDF()
write a multipage PDF document consisting of header, PDF objects for each slide in the jfig presentation, and the PDF trailer. |
void |
writeTrailer()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
FigObjectList objectList
FigTrafo2D trafo
FigAttribs attributes
FigParser parser
PresentationParser presentationParser
java.io.OutputStream outputStream
PDFGraphics2D pdf2D
java.awt.Rectangle bounds
java.util.Properties props
public static final int SLEEP_MILLIS
Constructor Detail |
public PresentationPDFWriter()
Method Detail |
public void openPresentation(java.lang.String filename)
public void writePDF() throws java.lang.Exception
java.lang.Exception
public void openOutputStream(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
public void parseSlide(java.lang.String resourcename)
public void writeHeader() throws java.lang.Exception
java.lang.Exception
public void waitForTheImages() throws java.lang.Exception
java.lang.Exception
public void waitForTheImages_ASYNC() throws java.lang.Exception
java.lang.Exception
public void makeBufferedImagesWithoutAlpha()
public void writeOnePage() throws java.lang.Exception
java.lang.Exception
public void writeTrailer() throws java.lang.Exception
java.lang.Exception
public static void msg(java.lang.String s)
public static void main(java.lang.String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |