com.openhtmltopdf.extend.FSObjectDrawer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openhtmltopdf-core Show documentation
Show all versions of openhtmltopdf-core Show documentation
Open HTML to PDF is a CSS 2.1 renderer written in Java. This artifact contains the core rendering and layout code.
The newest version!
package com.openhtmltopdf.extend;
import com.openhtmltopdf.render.RenderingContext;
import org.w3c.dom.Element;
import java.awt.*;
import java.util.Map;
/**
* Handle the drawing of <object> tags
*/
public interface FSObjectDrawer {
/**
* Perform your drawing.
*
* @return null or a map of Shape => URL-String to annotate the drawing with
* links. The shapes must be relative to (x,y), i.e. (0,0) is at the
* corner (x,y). Also they should not extend (width,height). The links
* are only exported into the PDF and also only respected by Acrobat
* Reader.
*/
Map drawObject(Element e, double x, double y, double width, double height, OutputDevice outputDevice,
RenderingContext ctx, int dotsPerPixel);
}