We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 885923a commit 0f8e5feCopy full SHA for 0f8e5fe
src/facturx/pdf_extract.py
@@ -47,7 +47,8 @@ def extract_facturx_from_pdf(
47
raise PDFParseError(_("Cannot read PDF file: {}").format(exc)) from exc
48
try:
49
# TODO: Support /Kids nodes
50
- doc = pdf.trailer["/Root"]["/Names"]["/EmbeddedFiles"]["/Kids"][0]["/Names"] # type: ignore[index]
+ doc = pdf.trailer["/Root"]["/Names"]["/EmbeddedFiles"]\
51
+ ["/Kids"][0]["/Names"] # type: ignore[index]
52
while doc:
53
if doc[0] == FACTURX_FILENAME:
54
break
0 commit comments