Interface AttachmentExtractedTextService

All Known Implementing Classes:
AttachmentExtractedTextServiceImpl

public interface AttachmentExtractedTextService
Provide some api to check and get attachment extracted text
Since:
9.2.7
  • Method Details

    • extractedText

      Optional<String> extractedText(ContentId contentId, ContentId attachmentId, long limit) throws ServiceException
      Parameters:
      contentId - container id
      attachmentId - attachment id
      limit - the maximize extracted text want to get
      Returns:
      attachment extracted text
      Throws:
      ServiceException
    • hasExtractedText

      boolean hasExtractedText(ContentId contentId, ContentId attachmentId) throws ServiceException
      Parameters:
      contentId - container id
      attachmentId - attachment id
      Returns:
      if attachment has extracted text (supported and already extracted)
      Throws:
      ServiceException