![](/img/trans.png)
[英]How can I find out in Java if a PDF file contains a JBIG2 image?
[英]How to read out the properties of the Symbol Dictionary used by the JBIG2 algorithm in my pdf?
這與 PDF 無關,PDF 只是 JBIG2 格式及其符號字典的容器,這是您真正感興趣的。
但是,作為第一步,您需要從PDF 中獲取 JBIG2 圖像:
SO提到了poppler,並且poppler確實有一個Python綁定/包裝器:
https://pypi.org/project/python-poppler/
一旦你得到那些 JBIG2 文件,也許這會有所幫助:
更大的項目有一個命令行工具,它有一個“轉儲”選項,但消息來源說它沒有實現^1 :
case dump:
fprintf(stderr, "Sorry, segment dump not yet implemented\n");
break;
所以如果你只是好奇/這是一個學術問題,答案看起來像“不是真的”。 如果您需要閱讀文本,OCR 怎么樣?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.