其實這修改很容易,從pdftotext給你的錯誤訊息就可以找到source code的位置。在xpdf中的pdftotext.cc是這麼檢查安全設定的:// check for copy permission if (!doc->okToCopy()) { error(-1, "Copying of text from this document is not allowed."); exitCode = 3; goto err2; }所以,把這個檢查忽略掉就可以取出其中的文字。
// check for copy permission if (!doc->okToCopy()) { error(-1, "Copying of text from this document is not allowed."); exitCode = 3; goto err2; }
沒有留言:
張貼留言