Example usage for org.apache.pdfbox.cos COSDocument getVersion

List of usage examples for org.apache.pdfbox.cos COSDocument getVersion

Introduction

In this page you can find the example usage for org.apache.pdfbox.cos COSDocument getVersion.

Prototype

public float getVersion() 

Source Link

Document

This will get the version extracted from the header of this PDF document.

Usage

From source file:de.oio.jpdfunit.document.pdflibimpl.PdfBoxAnalyser.java

License:Open Source License

/**
 * The method gets the version of the COSDocument of the PDDocument.
 *
 * @return The version of the tested pdf file.
 *//*from   ww w  .ja  v a  2 s .c om*/
public float getVersion() {
    final COSDocument cosDoc = pdDocument.getDocument();
    return cosDoc.getVersion();
}