|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jfig.utils.ItextPresentationPDFWriter
use the PDFWriter and PDFGraphics2D classes from the Itext project to export a given jfig presentation to PDF format. Usage: go to the base directory of the presentation, then run
java jfig.utils.ItextPresentationPDFWriter "indexfile.jpt"and wait... The output file is always called "hugo.pdf" at the moment.
Field Summary | |
(package private) FigAttribs |
attributes
|
(package private) com.lowagie.text.Rectangle |
bounds
|
(package private) com.lowagie.text.pdf.PdfContentByte |
cb
|
(package private) com.lowagie.text.Document |
document
|
(package private) com.lowagie.text.pdf.BaseFont |
font1
|
(package private) com.lowagie.text.pdf.BaseFont |
font2
|
(package private) boolean |
fourUpMode
|
(package private) ItextFontMapper |
mapper
|
(package private) FigObjectList |
objectList
|
(package private) java.io.OutputStream |
outputStream
|
(package private) int |
pagenumber
|
(package private) FigParser |
parser
|
(package private) com.lowagie.text.pdf.PdfWriter |
pdfWriter
|
(package private) PresentationParser |
presentationParser
|
static int |
SLEEP_MILLIS
|
(package private) FigTrafo2D |
trafo
|
Constructor Summary | |
ItextPresentationPDFWriter()
Create an ItextPresentationPDFWriter. |
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)
|
static void |
usage()
|
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 Itext . |
void |
writeOnePage(int _pagecount)
|
void |
writePDF()
write a multipage PDF document consisting of header, PDF objects for each slide in the jfig presentation, and the PDF trailer. |
void |
writeTestPage()
|
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
ItextFontMapper mapper
com.lowagie.text.pdf.PdfWriter pdfWriter
com.lowagie.text.pdf.PdfContentByte cb
com.lowagie.text.Document document
com.lowagie.text.Rectangle bounds
com.lowagie.text.pdf.BaseFont font1
com.lowagie.text.pdf.BaseFont font2
public static final int SLEEP_MILLIS
boolean fourUpMode
int pagenumber
Constructor Detail |
public ItextPresentationPDFWriter()
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(int _pagecount) throws java.lang.Exception
java.lang.Exception
public void writeTestPage() 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 usage()
public static void main(java.lang.String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |