com.openhtmltopdf.extend.SVGDrawer 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.
package com.openhtmltopdf.extend;
import java.io.Closeable;
import java.util.List;
import org.w3c.dom.Element;
import com.openhtmltopdf.css.sheet.FontFaceRule;
import com.openhtmltopdf.css.style.CssContext;
import com.openhtmltopdf.layout.SharedContext;
import com.openhtmltopdf.render.Box;
import com.openhtmltopdf.render.RenderingContext;
public interface SVGDrawer extends Closeable {
public void importFontFaceRules(List fontFaces,
SharedContext shared);
public SVGImage buildSVGImage(Element svgElement, Box box, CssContext cssContext, double cssWidth,
double cssHeight, double dotsPerPixel);
public static interface SVGImage {
public int getIntrinsicWidth();
public int getIntrinsicHeight();
public void drawSVG(OutputDevice outputDevice, RenderingContext ctx,
double x, double y);
}
}