All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.openhtmltopdf.extend.FSObjectDrawer Maven / Gradle / Ivy

Go to download

Open HTML to PDF is a CSS 2.1 renderer written in Java. This artifact contains the core rendering and layout code.

There is a newer version: 1.0.10
Show 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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy