public class PjScript
extends java.lang.Object
Constructor and Description |
---|
PjScript() |
Modifier and Type | Method and Description |
---|---|
private static int |
appendPage(Pdf pdf,
java.util.Vector texts,
java.util.Hashtable vars) |
private static void |
drawText(Pdf pdf,
java.lang.String source,
int lineNumber,
java.util.Hashtable fonts,
java.util.Vector texts) |
private static java.lang.String |
getEndLine(java.lang.String line) |
private static PjRectangle |
getMediaBoxArray(java.lang.String mediaBox) |
static void |
main(java.lang.String[] args) |
private static boolean |
quoted(java.lang.String s) |
static Pdf |
script(java.lang.String source,
java.io.BufferedReader br,
java.lang.String[] args)
Creates or modifies PDF files based on a script.
|
private static float |
setMediaBox(Pdf pdf,
int pageNumber,
java.lang.String mediaBox,
java.lang.String source,
int lineNumber) |
public static void main(java.lang.String[] args)
public static Pdf script(java.lang.String source, java.io.BufferedReader br, java.lang.String[] args) throws PjScriptException
source
- the file or program name where the script
originates. This is used in printing error messages.br
- the input stream containing the script.args
- the arguments to the script.PjScriptException
- if an error occurs.private static void drawText(Pdf pdf, java.lang.String source, int lineNumber, java.util.Hashtable fonts, java.util.Vector texts) throws PjScriptException
PjScriptException
private static java.lang.String getEndLine(java.lang.String line)
private static boolean quoted(java.lang.String s)
private static int appendPage(Pdf pdf, java.util.Vector texts, java.util.Hashtable vars) throws PjException
PjException
private static float setMediaBox(Pdf pdf, int pageNumber, java.lang.String mediaBox, java.lang.String source, int lineNumber) throws PjScriptException
PjScriptException
private static PjRectangle getMediaBoxArray(java.lang.String mediaBox)