com.groupdocs.conversion.handler

Class DocumentInfo



  • public final class DocumentInfo
    extends Object

    Contains metadata for a document

    • Constructor Summary

      Constructors 
      Constructor and Description
      DocumentInfo() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      String getAuthor()
      Returns detected document author if applicable to the current document format
      int getBitsPerPixel()
      Returns detected bits per pixel if applicable to the current document format
      Date getCreatedDate()
      Returns detected document creation date if it's applicable to the current document format
      Charset getEncoding()
      Gets the document encoding is applicable to the current document format
      String getFileType()
      Document file type
      int getHeight()
      Returns detected height if applicable to the current document format
      int getHorizontalResolution()
      Returns detected horizontal resolution if applicable to the current document format
      String[] getLayers()
      Returns list of layer names if applicable to the current document format
      Date getModifiedDate()
      Returns detected document modification date if applicable to the current document format
      int getPageCount()
      Gets pages count if applicable to the current document format
      int getPageOrientation()
      Get page orientation
      long getSize()
      Document bytes size
      String getTitle()
      Returns document title width if applicable to the current document format
      int getVerticalResolution()
      Returns detected vertical resolution if applicable to the current document format
      int getWidth()
      Returns detected width if applicable to the current document format
      void setAuthor(String value)
      Returns detected document author if applicable to the current document format
      void setBitsPerPixel(int value)
      Returns detected bits per pixel if applicable to the current document format
      void setCreatedDate(Date value)
      Returns detected document creation date if it's applicable to the current document format
      void setCreatedDateInternal(com.aspose.ms.System.DateTime value) 
      void setEncoding(Charset value)
      Gets the document encoding is applicable to the current document format
      void setFileType(String value)
      Document file type
      void setHeight(int value)
      Returns detected height if applicable to the current document format
      void setHorizontalResolution(int value)
      Returns detected horizontal resolution if applicable to the current document format
      void setLayers(String[] value)
      Returns list of layer names if applicable to the current document format
      void setModifiedDate(Date value)
      Returns detected document modification date if applicable to the current document format
      void setModifiedDateInternal(com.aspose.ms.System.DateTime value) 
      void setPageCount(int value)
      Gets pages count if applicable to the current document format
      void setPageOrientation(int value)
      Get page orientation
      void setSize(long value)
      Document bytes size
      void setTitle(String value)
      Returns document title width if applicable to the current document format
      void setVerticalResolution(int value)
      Returns detected vertical resolution if applicable to the current document format
      void setWidth(int value)
      Returns detected width if applicable to the current document format
    • Constructor Detail

      • DocumentInfo

        public DocumentInfo()
    • Method Detail

      • getFileType

        public String getFileType()

        Document file type

        Returns:
      • setFileType

        public void setFileType(String value)

        Document file type

        Parameters:
        value -
      • getPageCount

        public int getPageCount()

        Gets pages count if applicable to the current document format

        Returns:
      • setPageCount

        public void setPageCount(int value)

        Gets pages count if applicable to the current document format

        Parameters:
        value -
      • getSize

        public long getSize()

        Document bytes size

        Returns:
      • setSize

        public void setSize(long value)

        Document bytes size

        Parameters:
        value -
      • getEncoding

        public Charset getEncoding()

        Gets the document encoding is applicable to the current document format

        Returns:
      • setEncoding

        public void setEncoding(Charset value)

        Gets the document encoding is applicable to the current document format

        Parameters:
        value -
      • getWidth

        public int getWidth()

        Returns detected width if applicable to the current document format

        Returns:
      • setWidth

        public void setWidth(int value)

        Returns detected width if applicable to the current document format

        Parameters:
        value -
      • getHeight

        public int getHeight()

        Returns detected height if applicable to the current document format

        Returns:
      • setHeight

        public void setHeight(int value)

        Returns detected height if applicable to the current document format

        Parameters:
        value -
      • getHorizontalResolution

        public int getHorizontalResolution()

        Returns detected horizontal resolution if applicable to the current document format

        Returns:
      • setHorizontalResolution

        public void setHorizontalResolution(int value)

        Returns detected horizontal resolution if applicable to the current document format

        Parameters:
        value -
      • getVerticalResolution

        public int getVerticalResolution()

        Returns detected vertical resolution if applicable to the current document format

        Returns:
      • setVerticalResolution

        public void setVerticalResolution(int value)

        Returns detected vertical resolution if applicable to the current document format

        Parameters:
        value -
      • getBitsPerPixel

        public int getBitsPerPixel()

        Returns detected bits per pixel if applicable to the current document format

        Returns:
      • setBitsPerPixel

        public void setBitsPerPixel(int value)

        Returns detected bits per pixel if applicable to the current document format

        Parameters:
        value -
      • getTitle

        public String getTitle()

        Returns document title width if applicable to the current document format

        Returns:
      • setTitle

        public void setTitle(String value)

        Returns document title width if applicable to the current document format

        Parameters:
        value -
      • getAuthor

        public String getAuthor()

        Returns detected document author if applicable to the current document format

        Returns:
      • setAuthor

        public void setAuthor(String value)

        Returns detected document author if applicable to the current document format

        Parameters:
        value -
      • getCreatedDate

        public Date getCreatedDate()

        Returns detected document creation date if it's applicable to the current document format

        Returns:
      • setCreatedDate

        public void setCreatedDate(Date value)

        Returns detected document creation date if it's applicable to the current document format

        Parameters:
        value -
      • setCreatedDateInternal

        public void setCreatedDateInternal(com.aspose.ms.System.DateTime value)
      • getModifiedDate

        public Date getModifiedDate()

        Returns detected document modification date if applicable to the current document format

        Returns:
      • setModifiedDate

        public void setModifiedDate(Date value)

        Returns detected document modification date if applicable to the current document format

        Parameters:
        value -
      • setModifiedDateInternal

        public void setModifiedDateInternal(com.aspose.ms.System.DateTime value)
      • getLayers

        public String[] getLayers()

        Returns list of layer names if applicable to the current document format

        Returns:
      • setLayers

        public void setLayers(String[] value)

        Returns list of layer names if applicable to the current document format

        Parameters:
        value -
      • getPageOrientation

        public int getPageOrientation()

        Get page orientation

        Returns:
      • setPageOrientation

        public void setPageOrientation(int value)

        Get page orientation

        Parameters:
        value -