pdfminer.six/tests
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
..
helpers.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
tempfilepath.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
test_converter.py Fix to set color space from color convenience ops (#794) 2022-08-18 20:38:51 +02:00
test_encodingdb.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
test_font_size.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
test_highlevel_extracttext.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
test_layout.py Ignore empty characters when analyzing layout (#689) 2022-02-22 21:20:26 +01:00
test_pdfdocument.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
test_pdfencoding.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
test_pdffont.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
test_pdfminer_ccitt.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
test_pdfminer_crypto.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
test_pdfminer_psparser.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
test_pdfpage.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
test_tools_dumppdf.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00
test_tools_pdf2txt.py Add HOCRConverter (fixes #650) (#651) 2022-08-14 11:52:50 +02:00
test_utils.py Check blackness in github actions (#711) 2022-02-11 22:46:51 +01:00