Class CreateGradientShadingPDF
- java.lang.Object
-
- org.apache.pdfbox.examples.pdmodel.CreateGradientShadingPDF
-
public class CreateGradientShadingPDF extends java.lang.ObjectThis example creates a PDF with type 2 (axial) and type 3 (radial) shadings with a type 2 (exponential) function, and a type 4 (gouraud triangle shading) without function.
-
-
Constructor Summary
Constructors Constructor Description CreateGradientShadingPDF()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate(java.lang.String file)This will create the PDF and write the contents to a file.static voidmain(java.lang.String[] args)This will create a blank document.private static voidusage()This will print the usage of this class.
-
-
-
Method Detail
-
create
public void create(java.lang.String file) throws java.io.IOExceptionThis will create the PDF and write the contents to a file.- Parameters:
file- The name of the file to write to.- Throws:
java.io.IOException- If there is an error writing the data.
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionThis will create a blank document.- Parameters:
args- The command line arguments.- Throws:
java.io.IOException- If there is an error writing the document data.
-
usage
private static void usage()
This will print the usage of this class.
-
-