summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-op-buffer.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2014-03-03 18:07:02 +0000
committerRobin Watts <robin.watts@artifex.com>2014-03-04 11:26:47 +0000
commitb83d0c4c1ad97c0ff68fcbfaf4aceb5fc7e4e642 (patch)
tree615cf067be3d23d06cf34533e788ba76a4e0a9d7 /source/pdf/pdf-op-buffer.c
parent484f10977e73fbafe1bfc2eda30d4426e75df265 (diff)
downloadmupdf-b83d0c4c1ad97c0ff68fcbfaf4aceb5fc7e4e642.tar.xz
Add pdf_process interface.
Currently the only processing we can do of PDF pages is to run them through an fz_device. We introduce new "pdf_process" functionality here to enable us to do more things. We define a pdf_processor structure with a set of function pointers in, one per PDF operator, together with functions for processing xobjects etc. The guts of pdf_run_page_contents and pdf_run_annot operations are then extracted to give pdf_process_page_contents and pdf_process_annot, and the originals implemented in terms of these. This commit contains just one instance of a pdf_processor, namely the "run" processor, which contains the original code refactored. The graphical state (and device pointer) is now part of private data to the run operator set, rather than being in pdf_csi.
Diffstat (limited to 'source/pdf/pdf-op-buffer.c')
0 files changed, 0 insertions, 0 deletions