pyxpdf icon indicating copy to clipboard operation
pyxpdf copied to clipboard

Config.load_file() removes encodings from pyxpdf_data

Open ashutoshvarma opened this issue 5 years ago • 0 comments

Config.load_file() removes the xpdfrc settings from pyxpdf_data. As pyxpdf_data introduce new encodings with the help of automatic generated xpdfrc and loading another xpdfrc will discard them.

It can be solved by appending the user provided xpdfrc to the pyxpdf_data's xpdfrc.

image

Config file loading function can be found here:- https://github.com/ashutoshvarma/pyxpdf/blob/40e296979111378fed464e70c10f0d98336fec69/src/pyxpdf/globalconfig.pxi#L35

ashutoshvarma avatar Jul 02 '20 06:07 ashutoshvarma