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

com.openhtmltopdf.extend.SVGDrawer 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.css.sheet.FontFaceRule;
import com.openhtmltopdf.layout.SharedContext;
import com.openhtmltopdf.render.RenderingContext;
import org.w3c.dom.Element;

import java.util.List;

public interface SVGDrawer {
	public void drawSVG(Element svgElement, OutputDevice outputDevice, RenderingContext ctx, double x, double y, double width, double height, double dotsPerPixel);

	public void importFontFaceRules(List fontFaces, SharedContext shared);

	/**
	 * @param e the SVG element
	 * @return the width of the SVG in pixels.
	 */
	public int getSVGWidth(Element e);

	/**
	 * @param e the SVG element
	 * @return the height of the SVG in pixels.
	 */
	public int getSVGHeight(Element e);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy