Class AddImagesToAttachmentsProcessor
- java.lang.Object
-
- com.levigo.jadice.server.html2fop.internal.process.processor.impl.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 unusedStream
s of the html document'sStreamResolver
and therefore to the attachments part of the resulting PDF document.
-
-
Constructor Summary
Constructors Constructor Description AddImagesToAttachmentsProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
postRead(ProcessingContext context)
Replaces all html image elements with a <span>{placeholderText}</span> element.
-
-
-
Method Detail
-
postRead
public void postRead(ProcessingContext context)
Replaces all html image elements with a <span>{placeholderText}</span> element.- Specified by:
postRead
in interfaceHTMLPostReadProcessor
- Parameters:
context
- contains the general processing context that is needed to process HTML documents.
-
-