Package org.pdfclown

Examples of org.pdfclown.Version


  */
  public FileInfo readInfo(
    ) throws FileFormatException
  {
//TODO:hybrid xref table/stream
    Version version = Version.get(parser.retrieveVersion());
    PdfDictionary trailer = null;
    SortedMap<Integer,XRefEntry> xrefEntries = new TreeMap<Integer,XRefEntry>();
    {
      long sectionOffset = parser.retrieveXRefOffset();
      while(sectionOffset > -1)
View Full Code Here


      for(Object featureItem : (Collection<?>)feature)
      {checkCompatibility(featureItem);}
      return;
    }

    Version featureVersion;
    if(feature instanceof VersionEnum) // Explicit version.
    {featureVersion = ((VersionEnum)feature).getVersion();}
    else // Implicit version (element annotation).
    {
      PDF annotation;
View Full Code Here

  {
    /*
      NOTE: If the header specifies a later version, or if this entry is absent,
      the document conforms to the version specified in the header.
    */
    Version fileVersion = getFile().getVersion();

    PdfName versionObject = (PdfName)getBaseDataObject().get(PdfName.Version);
    if(versionObject == null)
      return fileVersion;

    Version version = Version.get(versionObject.getRawValue());
    if(getFile().getReader() == null)
      return version;

    return (version.compareTo(fileVersion) > 0 ? version : fileVersion);
  }
View Full Code Here

TOP

Related Classes of org.pdfclown.Version

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.