public final class PgPdfLoader extends PgAbstractLoader
| Modifier and Type | Field and Description |
|---|---|
static int |
FORMAT_A3_LANDSCAPE
ID for A4 medium in "Landscape" orientation.
|
static int |
FORMAT_A3_PORTRAIT
ID for A4 medium in "Portrait" orientation.
|
static int |
FORMAT_A4_LANDSCAPE
ID for A4 medium in "Landscape" orientation.
|
static int |
FORMAT_A4_PORTRAIT
ID for A4 medium in "Portrait" orientation.
|
GEOM_DATA_AUTHOR, GEOM_DATA_COLORS, GEOM_DATA_HEADER, GEOM_DATA_INFO, GEOM_DATA_NORMALS, GEOM_DATA_TEXTURE, GEOM_DATA_VECTORS| Constructor and Description |
|---|
PgPdfLoader() |
| Modifier and Type | Method and Description |
|---|---|
PgJvxSrc[] |
read(java.io.BufferedReader in)
Read geometry file.
|
PgJvxSrc[] |
read(java.lang.String fileName) |
void |
setContents(java.lang.String text)
Add textual contents to the PDF document.
|
void |
setHeader(java.lang.String text)
Set text of header for the PDF document.
|
void |
setMediaBox(double xMin,
double yMin,
double xMax,
double yMax)
Set size of page medium; unit: 1/72 inch.
|
void |
setMediaBox(int id)
Set size of page medium.
|
boolean |
write(java.io.DataOutputStream outWriter,
PgJvxSrc[] geomArr)
Write an array of geometries to a file.
|
boolean |
write(java.io.Writer writer,
PgJvxSrc[] geomArr)
Write an array of geometries into an output stream writer.
|
getAnimations, getDisplayOption, getGeometries, getSpecializedGeometries, isAnimation, isEnabledOptimization, load, read, setAnimation, setDisplayOption, setGeometryOptionpublic static final int FORMAT_A4_PORTRAIT
public static final int FORMAT_A4_LANDSCAPE
public static final int FORMAT_A3_PORTRAIT
public static final int FORMAT_A3_LANDSCAPE
public void setMediaBox(double xMin,
double yMin,
double xMax,
double yMax)
public void setMediaBox(int id)
public void setHeader(java.lang.String text)
public void setContents(java.lang.String text)
public PgJvxSrc[] read(java.lang.String fileName)
public PgJvxSrc[] read(java.io.BufferedReader in)
read in interface PgLoaderIfread in class PgAbstractLoaderin - BufferedReader to read textual data from.PgAbstractLoader.write(Writer, PgJvxSrc [])public boolean write(java.io.Writer writer,
PgJvxSrc[] geomArr)
throws java.io.IOException
Numbers with absolute value less than jv.vecmath.PuMath#EPS are
shown as zero. This avoids the annoying fact that double precision numbers fill
the whole text area hiding the exponent, which hides their small value.
write in interface PgLoaderIfwrite in class PgAbstractLoaderwriter - Write all data to this streamgeomArr - Array with geometries to savetrue on success.java.io.IOExceptionread(BufferedReader)public boolean write(java.io.DataOutputStream outWriter,
PgJvxSrc[] geomArr)
write in interface PgLoaderIfwrite in class PgAbstractLoaderoutWriter - Write all data to this streamgeomArr - Array with geometries to savetrue on success.PgAbstractLoader.read(BufferedReader),
PgAbstractLoader.read(DataInputStream),
PgAbstractLoader.write(Writer, PgJvxSrc [])"