// Path: pdfparse-lib/src/main/java/org/pdfparse/cos/COSReference.java
// public class COSReference extends COSId implements COSObject {
//     public COSReference(int id, int gen) {
//         super(id, gen);
//     }
// 
//     public COSReference(IdGenPair from) {
//         super(from.id, from.gen);
//     }
// 
//     @Override
//     public void parse(PDFRawData src, PDFParser pdfFile) throws EParseError {
//         if (!tryReadId(src, this, Token.R)) {
//             throw new EParseError("Failed to read object reference");
//         }
//     }
// 
//     @Override
//     public void produce(OutputStream dst, PDFParser pdfFile) throws IOException {
//         String s = String.format("%d %d R", id, gen);
//         dst.write(s.getBytes(Charset.defaultCharset()));
//     }
// 
//     @Override
//     public String toString() {
//         return String.format("%d %d R", id, gen);
//     }
// 
// }


import org.pdfparse.cos.COSReference;
/*
 * Copyright (c) 2013 Anton Golinko
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 */

package org.pdfparse.parser;


public interface ParsingEvent {
    void onDocumentVersionFound(int majorVersion, int minorVersion);

// Path: pdfparse-lib/src/main/java/org/pdfparse/cos/COSReference.java
// public class COSReference extends COSId implements COSObject {
//     public COSReference(int id, int gen) {
//         super(id, gen);
//     }
// 
//     public COSReference(IdGenPair from) {
//         super(from.id, from.gen);
//     }
// 
//     @Override
//     public void parse(PDFRawData src, PDFParser pdfFile) throws EParseError {
//         if (!tryReadId(src, this, Token.R)) {
//             throw new EParseError("Failed to read object reference");
//         }
//     }
// 
//     @Override
//     public void produce(OutputStream dst, PDFParser pdfFile) throws IOException {
//         String s = String.format("%d %d R", id, gen);
//         dst.write(s.getBytes(Charset.defaultCharset()));
//     }
// 
//     @Override
//     public String toString() {
//         return String.format("%d %d R", id, gen);
//     }
// 
// }


// Path: pdfparse-lib/src/main/java/org/pdfparse/parser/ParsingEvent.java
import org.pdfparse.cos.COSReference;

/*
 * Copyright (c) 2013 Anton Golinko
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 */

package org.pdfparse.parser;


public interface ParsingEvent {
    void onDocumentVersionFound(int majorVersion, int minorVersion);

    void onDocumentLoaded(COSReference rootId, COSReference infoId, COSReference encryptionId);