Class TextToPdfContentTransformer

  • All Implemented Interfaces:
    ContentWorker, ContentTransformer, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

    @Deprecated
    public class TextToPdfContentTransformer
    extends AbstractContentTransformer2
    Deprecated.
    The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.
    Makes use of the PDFBox library's TextToPDF utility.
    Since:
    2.1.0
    Author:
    Derek Hulley
    • Constructor Detail

      • TextToPdfContentTransformer

        public TextToPdfContentTransformer()
        Deprecated.
    • Method Detail

      • setStandardFont

        public void setStandardFont​(java.lang.String fontName)
        Deprecated.
      • setFontSize

        public void setFontSize​(int fontSize)
        Deprecated.
      • transformInternal

        protected void transformInternal​(org.alfresco.service.cmr.repository.ContentReader reader,
                                         org.alfresco.service.cmr.repository.ContentWriter writer,
                                         TransformationOptions options)
                                  throws java.lang.Exception
        Deprecated.
        Description copied from class: AbstractContentTransformer2
        Method to be implemented by subclasses wishing to make use of the common infrastructural code provided by this class.
        Specified by:
        transformInternal in class AbstractContentTransformer2
        Parameters:
        reader - the source of the content to transform
        writer - the target to which to write the transformed content
        options - a map of options to use when performing the transformation. The map will never be null.
        Throws:
        java.lang.Exception - exceptions will be handled by this class - subclasses can throw anything
      • buildReader

        protected java.io.InputStreamReader buildReader​(java.io.InputStream is,
                                                        java.lang.String encoding,
                                                        java.lang.String node)
        Deprecated.