Package com.logicaldoc.core.util
Class GhostUtil
- java.lang.Object
-
- com.logicaldoc.core.util.GhostUtil
-
public class GhostUtil extends Object
Utility method for using GhostScript- Since:
- 8.3.1
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description GhostUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<File>
print(File srcPdf, File dst, Integer page)
Prints a PDF file into a Jpeg image using 150dpi resolutionstatic List<File>
print(File srcPdf, File dst, Integer page, Integer dpi)
Prints a PDF file into a Jpeg image using 150dpi resolution
-
-
-
Method Detail
-
print
public static List<File> print(File srcPdf, File dst, Integer page, Integer dpi)
Prints a PDF file into a Jpeg image using 150dpi resolution- Parameters:
srcPdf
- The original filedst
- The output image(in case of multiple page more files are created named dstName-xxx.dstExtension)page
- The page to print or null to print all the pagesdpi
- the resolution(e.g. 75, 150, 300)- Returns:
- list of page files
-
print
public static List<File> print(File srcPdf, File dst, Integer page)
Prints a PDF file into a Jpeg image using 150dpi resolution- Parameters:
srcPdf
- The original filedst
- The output image(in case of multiple page more files are created named dstName-xxx.dstExtension)page
- The page to print or null to print all the pages.- Returns:
- list of page files
-
-