The following code tests to see if any of the revisions in a
document are hybrid.
bool isHybrid = false;
using var doc = new Doc();
doc.Read("../mypics/sample.pdf");
using (var eof = new ObjectSoup.Eof()) {
eof.Load(doc.ObjectSoup);
var xref = eof.XRef;
while (xref != null) {
if (xref.Type == ObjectSoup.XRefType.Hybrid) {
isHybrid = true;
break;
}
xref = xref.Prev;
}
}
// do something with isHybrid