Age | Commit message (Collapse) | Author | Files | Lines |
|
The XPS interpreter was still using Device color spaces for its default
color spaces. This fix has it use ICC color spaces by default which
is required by the spec. This revealed an issue with the color space
handling of the opacity masks. These were getting drawn in sRGB color
space but the transparency group is linear gray. Since we are drawing
the opacity mask as a luminosity mask that is gray we ended up
mapping through a nonlinearity.
|
|
Update the xps point reading code to use strtod rather than atof;
this returns us an updated string pointer, rather than relying
on us second-guessing where it may end up.
Change xps_get_point to return this updated pointer, and change some
calls of this to avoid having to skip whitespace (and potentially
getting it wrong) after the call.
Spotted as part of the commit to take the latest XPS changes into
MuPDF.
|
|
XPS interpreter was not very robust in its handling of white space in
many locations. I created a general function to handle this in place
of the many uses of sscanf in the interpreter.
|
|
only need have one include file to use for error reporting.
|
|
software.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12056 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
dictionaries.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11478 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
manually maintaining the bounds while parsing.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11466 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
Create individual colorspace objects for each profile,
and cache them in the colorspace hashtable in the context.
Remove the colorspace type enum for images and
use a gs_color_space object instead.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11428 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
they are not used.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11417 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
High level devices (pdfwrite basically) prefer to receive patterns as high level, rather
than pattern tiles as this is more compact. This patch checks the device capabilities
and if it can support high level patterns we emit those rather than tiles.
This is done by returning gs_error_Remap_Color from the 'remap' procedure and then
controlling the device's pattern accumulator.
Many files work better (converting to PDF) with this approach, though there are still
some problems.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11409 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
provide minor fixes to this, primarily to remove the ctx->icc object. There will be xps differences with this commit since icc profiles were previously ignored.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11379 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
we were doing a full decode into buffers to see if an alpha channel was present in the image data. Now we just check the header. Patch checked by Tor.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11354 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
gsicc_manage.c/h to fall in line with the name space of the other files that came from the icc branch. Currently working on the documentation and it is clear that this is needed (and I wish I had done it earlier).
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11346 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
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
|
|
The special mode of the XPS interpreter that parses the
ZIP file incrementally as a stream has proven to
be useless. None of the files we see in the wild make
use of the features that are required for a streaming
XPS parser to behave well. As a result, this mode was
always buffering up data and using lots of memory.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11130 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
whitespace and duplicate blank lines.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11104 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11092 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11091 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
of tabs and spaces.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11090 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
can compile against the icc_work branch.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10801 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
groups used to draw paths with opacity or opacity masks.
There are some minor single-pixel color differences in
the rendering of some gradients.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10753 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
don't consume as much memory for each page.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10356 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
To enable this mode, set the XPS_ZIP_SEEK environment variable
which will cause the interpreter to spool the data to a temp file
and then run the parser in the new mode.
This is going to change in a later patch to plmain that will enable
the interpreters to directly access the job files.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10243 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
xps_debug_item, xps_debug_path, and xps_debug_resource_dictionary
are added to ghostxps.h as public functions.
xps_parse_content_relations, xps_process_compatibility and
xps_debug_item_imp are made static since they are intended
to be used from inside the same file.
xps_debug_item_imp gets a prototype even though it is static
because it calls itself recursively, and this triggers the
gcc -Wmissing-prototypes warning.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10218 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
Fixes several warnings.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10213 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
This reverts a patch from Ray (r2812 in the old ghostpcl repository)
which was a quick hack to silence the extensive tracing output ghostxps
produced at the time. Now most of those calls have been moved to
xps_debug_foo() functions which aren't called in normal builds and
a few warnings which shouldn't particularly be silenced.
The patch worked by just defining the dpf macro to the empty string, but
that creates 'operand of comma operator has no effect' warnings on gcc
4.4 when the remaining arguments tuple is interpreted as a discarded
expression.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10170 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
specified with relative paths can be resolved in the right context. Also fixed a few warnings.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10107 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
struct, and free the parsed XML along with images and other resources at the end of a page.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10085 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
the page in XPS.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9794 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9376 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9371 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
tracing depend on a variable.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9249 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
compositor device when transparency is not used. Add header file changes.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9244 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9023 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
Bug 690008.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9011 a1074d23-0009-0410-80fe-cf8c14f379e6
|
|
from xps_find_part, resulting in overwritted font data and other mishaps.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3072 06663e23-700e-0410-b217-a244a6096597
|
|
properly uses gs_closepath when possible.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3057 06663e23-700e-0410-b217-a244a6096597
|
|
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3055 06663e23-700e-0410-b217-a244a6096597
|
|
sequence. Fixes bug #689744.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3044 06663e23-700e-0410-b217-a244a6096597
|
|
definition of __FUNCTION__ should be used. The commit in r2972
incorrectly assumed this was a magic preprocessor macro, but it
is instead a magic global variable. The symbol is supported by
gcc back at least to version 2.95.3, and MSVC versions 7 and later.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2986 06663e23-700e-0410-b217-a244a6096597
|
|
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2972 06663e23-700e-0410-b217-a244a6096597
|
|
Ubuntu 7.10 x86_64.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2946 06663e23-700e-0410-b217-a244a6096597
|
|
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2945 06663e23-700e-0410-b217-a244a6096597
|
|
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2927 06663e23-700e-0410-b217-a244a6096597
|
|
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2926 06663e23-700e-0410-b217-a244a6096597
|
|
when parsing relations from content. Periodically free cached resources.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2919 06663e23-700e-0410-b217-a244a6096597
|
|
need to be decoded each time. Use XPS_DISABLE_TRANSPARENCY environment variable to disable transparency device for debugging.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2912 06663e23-700e-0410-b217-a244a6096597
|
|
device colorspaces only. Fix font crash when using the pdfwrite device.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2911 06663e23-700e-0410-b217-a244a6096597
|
|
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2910 06663e23-700e-0410-b217-a244a6096597
|
|
box when creating transparency groups.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2879 06663e23-700e-0410-b217-a244a6096597
|