blob: d17aa69a829a38d41ead02e75813f6fdd7fce962 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
def _get_pdf_collection_type(coll) -> str:
if len(coll) == 1 and len(coll[0]) == 1:
return "SINGLE_PDF_SINGLE_PAGE"
if len(coll) == 1 and len(coll[0]) > 1:
return "SINGLE_PDF_MULTI_PAGE"
if len(coll) > 1:
for c in coll:
if len(c) > 1:
return "MULTI_PDF_MULTI_PAGE"
return "MULTI_PDF_SINGLE_PAGE"
|