lib/hexapdf/parser.rb in hexapdf-0.20.4 vs lib/hexapdf/parser.rb in hexapdf-0.21.0
- old
+ new
@@ -69,9 +69,14 @@
# Returns +true+ if the PDF file contains cross-reference streams.
def contains_xref_streams?
@contains_xref_streams
end
+ # Returns +true+ if the PDF file was damaged and could be reconstructed.
+ def reconstructed?
+ !@reconstructed_revision.nil?
+ end
+
# Loads the indirect (potentially compressed) object specified by the given cross-reference
# entry.
#
# For information about the +xref_entry+ argument, have a look at HexaPDF::XRefSection and
# HexaPDF::XRefSection::Entry.