summaryrefslogtreecommitdiff
path: root/xps/xpsdoc.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2010-04-26 21:31:16 +0000
committerTor Andersson <tor.andersson@artifex.com>2010-04-26 21:31:16 +0000
commit936e9b77dffe2173c5a0357f4bb7ce6f4d6e3bf9 (patch)
tree0ed67c578e26c3bd3c380ceb3e031d1a863e1183 /xps/xpsdoc.c
parent68ba88a4629234fdd3215c514fb79405265c7517 (diff)
Add support for parsing unzipped XPS files.
If the path is given as /path/_rels/.rels then it will parse the entire document. If the path points to a FixedPage file (/path/Documents/1/Pages/1.fpage), only that single page will be parsed. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11132 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'xps/xpsdoc.c')
-rw-r--r--xps/xpsdoc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/xps/xpsdoc.c b/xps/xpsdoc.c
index b1bb78e30..47a62a567 100644
--- a/xps/xpsdoc.c
+++ b/xps/xpsdoc.c
@@ -75,8 +75,7 @@ xps_add_fixed_document(xps_context_t *ctx, char *name)
if (!strcmp(fixdoc->name, name))
return 0;
- if (xps_doc_trace)
- dprintf1("doc: adding fixdoc %s\n", name);
+ if_debug1('|', "doc: adding fixdoc %s\n", name);
fixdoc = xps_alloc(ctx, sizeof(xps_document_t));
if (!fixdoc)
@@ -130,8 +129,7 @@ xps_add_fixed_page(xps_context_t *ctx, char *name, int width, int height)
if (!strcmp(page->name, name))
return 0;
- if (xps_doc_trace)
- dprintf1("doc: adding page %s\n", name);
+ if_debug1('|', "doc: adding page %s\n", name);
page = xps_alloc(ctx, sizeof(xps_page_t));
if (!page)