You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding font in pyxpdf with new Config.add_font_file() method if font_path is incorrect(file does not exist) no error is thrown.
Steps to Reproduce:-
frompyxpdfimportxpdfasxdoc=x.Document('samples/simple1.pdf')
iout=x.RawImageOutput(d)
iout.get(0).show() # Output: Syntax Error: Couldn't find a font for 'Helvetica'x.Config.add_font_file('Helvetica', 'asbajd')
iout.get(0).show() # Output: Syntax Error: Couldn't find a font for 'Helvetica', Still same error
xpdf error logs are not very clear, we should check whether file exists and is readable in Config.add_font_file() and throw error with appropriate message
The text was updated successfully, but these errors were encountered:
When adding font in
pyxpdf
with newConfig.add_font_file()
method iffont_path
is incorrect(file does not exist) no error is thrown.Steps to Reproduce:-
xpdf error logs are not very clear, we should check whether file exists and is readable in
Config.add_font_file()
and throw error with appropriate messageThe text was updated successfully, but these errors were encountered: