org.silverpeas.viewer.util
Class JsonPdfUtil

java.lang.Object
  extended by org.silverpeas.exec.ExternalExecution
      extended by org.silverpeas.viewer.util.JsonPdfUtil

public class JsonPdfUtil
extends ExternalExecution

Some centralization about the use of pdf2json tool.

Author:
Yohann Chastagnier

Nested Class Summary
 
Nested classes/interfaces inherited from class org.silverpeas.exec.ExternalExecution
ExternalExecution.Config
 
Field Summary
static String JSON_DOCUMENT_EXTENSION
           
 
Constructor Summary
JsonPdfUtil()
           
 
Method Summary
static void convert(File pdfFile, File destination)
          Converts a PDF file into a SWF file.
static boolean isActivated()
          Indicates if tool that permits to convert PDF into JSon data 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

JSON_DOCUMENT_EXTENSION

public static final String JSON_DOCUMENT_EXTENSION
See Also:
Constant Field Values
Constructor Detail

JsonPdfUtil

public JsonPdfUtil()
Method Detail

isActivated

public static boolean isActivated()
Indicates if tool that permits to convert PDF into JSon data is activated.

Returns:

convert

public static void convert(File pdfFile,
                           File destination)
Converts a PDF file into a SWF file.

Parameters:
pdfFile - the pdf file
destination - the destination file without include some path parts in relation to the mechanism of conversion.


Copyright © 2016 Silverpeas. All Rights Reserved.