Class NoOpConverter

java.lang.Object
org.frankframework.extensions.aspose.converters.NoOpConverter
All Implemented Interfaces:
Converter

public class NoOpConverter extends Object
The No-Op converter (no conversion required). Opens the PDF to verify it can be read (not signed or password-protected).
  • Field Details

    • PDF_MIMETYPE

      protected static final org.springframework.util.MimeType PDF_MIMETYPE
    • configuration

      protected CisConfiguration configuration
  • Constructor Details

  • Method Details

    • convert

      public Message convert(org.springframework.http.MediaType mediaType, Message message) throws IOException
      Read the PDF to ensure it's validity and get the amount of pages.
      Throws:
      IOException
    • isPasswordException

      protected boolean isPasswordException(Exception e)
    • getSupportedMediaTypes

      public Set<org.springframework.http.MediaType> getSupportedMediaTypes()
      Returns the supported media types.
      Specified by:
      getSupportedMediaTypes in interface Converter
    • convertToPdf

      public void convertToPdf(CisConversionResult result, org.springframework.http.MediaType mediaType, Message message) throws Exception
      Should not be overloaded by the concrete classes.
      Specified by:
      convertToPdf in interface Converter
      Throws:
      Exception