pdfminer.six/pdfminer
Jeremy Singer-Vine ad6587c697
Fix to set color space from color convenience ops (#794)
Section 4.5 of the PDF reference says: "Color values are interpreted
according to the current color space, another parameter of the graphics
state. A PDF content stream first selects a color space by invoking the
CS operator (for the stroking color) or the cs operator (for the
non-stroking color). It then selects color values within that color
space with the SC operator (stroking) or the sc operator (nonstroking).
There are also convenience operators—G, g, RG, rg, K, and k—that select
both a color space and a color value within it in a single step."

Previously, those convenience operators did *not* set the color space.
This commit, following on filed issue #779, fixes this. It also adds a
test to demonstrate that, at least for the do_rg method, the fix works
as intended.
2022-08-18 20:38:51 +02:00
..
cmap Include compiled cmap resources to simplify installation for CJK languages 2015-12-27 13:32:29 +09:00
__init__.py Add github action for releasing to pypi if git tag is added. (#727) 2022-03-19 20:46:00 +01:00
_saslprep.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
arcfour.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
ascii85.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
ccitt.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
cmapdb.py Deprecate usage of `if __name__ == "__main__"` in scripts that are not documented. Also deprecate usage of scripts that are only there for testing purposes. (#756) 2022-06-25 23:11:10 +02:00
converter.py Add HOCRConverter (fixes #650) (#651) 2022-08-14 11:52:50 +02:00
data_structures.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
encodingdb.py Raise KeyError when name in name2unicode is not of type str (#733) 2022-03-21 19:25:28 +01:00
fontmetrics.py Added font name aliases for Arial, Courier New and Times New Roman (#790) 2022-08-14 12:12:02 +02:00
glyphlist.py Deprecate usage of `if __name__ == "__main__"` in scripts that are not documented. Also deprecate usage of scripts that are only there for testing purposes. (#756) 2022-06-25 23:11:10 +02:00
high_level.py Add HOCRConverter (fixes #650) (#651) 2022-08-14 11:52:50 +02:00
image.py Install typing_extensions on Python 3.6 and 3.7 (#775) 2022-06-26 17:47:28 +02:00
jbig2.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
latin_enc.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
layout.py Bump version 20220506 & fix small issue with types 2022-05-06 22:02:32 +02:00
lzw.py Fix log.debug statement in lzw.py by ensuring that self.table is always set (#732) 2022-03-21 19:27:22 +01:00
pdfcolor.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
pdfdevice.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
pdfdocument.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
pdffont.py Fix `TypeError` when getting default width of font (#772) 2022-06-25 23:16:28 +02:00
pdfinterp.py Fix to set color space from color convenience ops (#794) 2022-08-18 20:38:51 +02:00
pdfpage.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
pdfparser.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
pdftypes.py Fix `ValueError` with unencrypted metadata values (Fixes #766). (#774) 2022-06-26 17:25:30 +02:00
psparser.py Fix `TypeError` by Ignoring null characters in PSBaseParser (#768) 2022-06-26 17:46:39 +02:00
py.typed export type annotations in package (#679) 2022-01-25 22:11:17 +01:00
runlength.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
settings.py Remove webapp and other (un)helpful application references: django, cgi, and pyinstaller. (#320) 2019-10-26 19:16:37 +02:00
utils.py Fix ValueError when bmp images with 1 bit channels are decoded (fixes #773) (#784) 2022-08-08 22:35:53 +02:00