Class AddImagesToAttachmentsProcessor

  • All Implemented Interfaces:
    HTMLPostReadProcessor

    public class AddImagesToAttachmentsProcessor
    extends Object
    implements HTMLPostReadProcessor
    This processor takes care of replacing all the image html nodes with a <span>{placeholderText}</span> placeholder. The original image streams are added to the unused Streams of the html document's StreamResolver and therefore to the attachments part of the resulting PDF document.
    • Constructor Detail

      • AddImagesToAttachmentsProcessor

        public AddImagesToAttachmentsProcessor()
    • Method Detail

      • postRead

        public void postRead​(ProcessingContext context)
        Replaces all html image elements with a <span>{placeholderText}</span> element.
        Specified by:
        postRead in interface HTMLPostReadProcessor
        Parameters:
        context - contains the general processing context that is needed to process HTML documents.