public class PDFParser extends BaseWatchable
| Modifier and Type | Field and Description |
|---|---|
static String |
DEBUG_DCTDECODE_DATA
emit a file of DCT stream data.
|
static int |
debuglevel |
COMPLETED, ERROR, NEEDS_DATA, NOT_STARTED, PAUSED, RUNNING, STOPPED, UNKNOWN| Constructor and Description |
|---|
PDFParser(PDFPage cmds,
byte[] stream,
HashMap<String,PDFObject> resources)
Don't call this constructor directly.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Cleanup when iteration is done
|
static void |
debug(String msg,
int level) |
String |
dumpStream() |
void |
dumpStreamToError() |
static void |
emitDataFile(byte[] ary,
String name)
take a byte array and write a temporary file with it's data.
|
static String |
escape(String msg) |
int |
iterate()
parse the stream.
|
static void |
setDebugLevel(int level) |
void |
setup()
Called to prepare for some iterations
|
execute, getStatus, go, go, go, go, isExecutable, isFinished, isSuppressSetErrorStackTrace, run, setError, setStatus, setSuppressSetErrorStackTrace, stop, waitForFinishpublic static final String DEBUG_DCTDECODE_DATA
public static int debuglevel
public static void debug(String msg, int level)
public static void setDebugLevel(int level)
public void setup()
setup in class BaseWatchablepublic int iterate()
throws Exception
Page numbers in comments refer to the Adobe PDF specification.
commands are listed in PDF spec 32000-1:2008 in Table A.1
iterate in class BaseWatchableExceptionpublic void cleanup()
cleanup in class BaseWatchablepublic void dumpStreamToError()
public String dumpStream()
public static void emitDataFile(byte[] ary,
String name)
ary - name - Copyright © 2024. All rights reserved.