|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.exec.ExternalExecution
org.silverpeas.viewer.util.SwfUtil
public class SwfUtil
Some centralized tools to use SwfTools API
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.silverpeas.exec.ExternalExecution |
---|
ExternalExecution.Config |
Field Summary | |
---|---|
static String |
PAGE_FILENAME_SEPARATOR
|
static String |
SWF_DOCUMENT_EXTENSION
|
Constructor Summary | |
---|---|
SwfUtil()
|
Method Summary | |
---|---|
static void |
fromPdfToImage(File fileIn,
File fileOut)
Converts a PDF file into an image file. |
static void |
fromPdfToSwf(File fileIn,
File fileOut)
Converts a PDF file into a SWF file. |
static void |
fromPdfToSwf(File fileIn,
File fileOut,
boolean oneFilePerPage)
Converts a PDF file into a SWF file. |
static void |
fromPdfToSwf(File fileIn,
File fileOut,
boolean oneFilePerPage,
String endingCommand)
Converts a PDF file into a SWF file. |
static DocumentInfo |
getPdfDocumentInfo(File pdfFile)
Return some document info from a PDF file |
static boolean |
isPdfToImageActivated()
Indicates if swfrender0 tool is activated |
static boolean |
isPdfToSwfActivated()
Indicates if pdf2swf tool is activated |
Methods inherited from class org.silverpeas.exec.ExternalExecution |
---|
exec, exec |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SWF_DOCUMENT_EXTENSION
public static final String PAGE_FILENAME_SEPARATOR
Constructor Detail |
---|
public SwfUtil()
Method Detail |
---|
public static boolean isPdfToSwfActivated()
public static boolean isPdfToImageActivated()
public static void fromPdfToImage(File fileIn, File fileOut)
fileIn
- the pdf filefileOut
- the image filepublic static void fromPdfToSwf(File fileIn, File fileOut)
fileIn
- the pdf filefileOut
- the swf filepublic static void fromPdfToSwf(File fileIn, File fileOut, boolean oneFilePerPage)
fileIn
- the pdf filefileOut
- the swf fileoneFilePerPage
- if true it activates one swf file per pagepublic static void fromPdfToSwf(File fileIn, File fileOut, boolean oneFilePerPage, String endingCommand)
fileIn
- the pdf filefileOut
- the swf fileoneFilePerPage
- if true it activates one swf file per pageendingCommand
- public static DocumentInfo getPdfDocumentInfo(File pdfFile)
pdfFile
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |