summaryrefslogtreecommitdiff
path: root/xps/xpsanalyze.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-03-22 19:42:01 +0100
committerTor Andersson <tor.andersson@artifex.com>2011-03-22 20:27:43 +0100
commitb1c3f5a602f7be8e2db87f73c1e55052b58b1c6e (patch)
tree19d13becbd97b40cc91f60a1ae2d30bdf1ceaef4 /xps/xpsanalyze.c
parentb8efb1cf3ce4c57fd4a0396c2a9102630d3d6e36 (diff)
downloadmupdf-b1c3f5a602f7be8e2db87f73c1e55052b58b1c6e.tar.xz
xps: use fitz runtime and remove ghostscript specific code so it compiles.
Diffstat (limited to 'xps/xpsanalyze.c')
-rw-r--r--xps/xpsanalyze.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/xps/xpsanalyze.c b/xps/xpsanalyze.c
index 6e2f9d3e..41dc28c6 100644
--- a/xps/xpsanalyze.c
+++ b/xps/xpsanalyze.c
@@ -1,22 +1,10 @@
-/* Copyright (C) 2006-2010 Artifex Software, Inc.
- All Rights Reserved.
-
- This software is provided AS-IS with no warranty, either express or
- implied.
-
- This software is distributed under license and may not be copied, modified
- or distributed except as expressly authorized under the terms of that
- license. Refer to licensing information at http://www.artifex.com/
- or contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134,
- San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information.
-*/
-
/* XPS interpreter - analyze page checking for transparency.
* This is a stripped down parser that looks for alpha values < 1.0 in
* any part of the page.
*/
-#include "ghostxps.h"
+#include "fitz.h"
+#include "muxps.h"
static int
xps_remote_resource_dictionary_has_transparency(xps_context_t *ctx, char *base_uri, char *source_att)
@@ -47,7 +35,7 @@ static int
xps_gradient_stops_have_transparency(xps_context_t *ctx, char *base_uri, xps_item_t *root)
{
xps_item_t *node;
- gs_color_space *colorspace;
+ fz_colorspace *colorspace;
char *color_att;
float samples[32];
@@ -111,7 +99,7 @@ xps_brush_has_transparency(xps_context_t *ctx, char *base_uri, xps_item_t *root)
char *color_att;
xps_item_t *node;
- gs_color_space *colorspace;
+ fz_colorspace *colorspace;
float samples[32];
if (!strcmp(xps_tag(root), "SolidColorBrush"))
@@ -266,7 +254,7 @@ xps_element_has_transparency(xps_context_t *ctx, char *base_uri, xps_item_t *nod
char *stroke_att;
char *fill_att;
- gs_color_space *colorspace;
+ fz_colorspace *colorspace;
float samples[32];
stroke_att = xps_att(node, "Stroke");