1
0
mirror of https://github.com/kanzure/pdfparanoia.git synced 2024-06-11 21:29:51 +02:00

AIP: better false-positives check

This commit is contained in:
Bryan Bishop 2013-02-05 17:20:11 -06:00
parent d276954bfa
commit f78aad78ef

View File

@ -35,7 +35,10 @@ class AmericanInstituteOfPhysics(Plugin):
if hasattr(obj, "attrs"):
# watermarks tend to be in FlateDecode elements
if obj.attrs.has_key("Filter") and str(obj.attrs["Filter"]) == "/FlateDecode":
#length = obj.attrs["Length"]
length = obj.attrs["Length"]
# the watermark is never very long
if length < 1000:
#rawdata = copy(obj.rawdata)
data = copy(obj.get_data())