com.openhtmltopdf.svgsupport.OpenHtmlUserAgent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openhtmltopdf-svg-support Show documentation
Show all versions of openhtmltopdf-svg-support Show documentation
Open HTML to PDF is a CSS 2.1 renderer written in Java. This artifact supports drawing SVG graphics on to PDFs using Apache Batik.
package com.openhtmltopdf.svgsupport;
import org.apache.batik.bridge.FontFamilyResolver;
import org.apache.batik.bridge.UserAgentAdapter;
import com.openhtmltopdf.svgsupport.PDFTranscoder.OpenHtmlFontResolver;
public class OpenHtmlUserAgent extends UserAgentAdapter {
private final OpenHtmlFontResolver resolver;
public OpenHtmlUserAgent(OpenHtmlFontResolver resolver) {
this.resolver = resolver;
}
@Override
public FontFamilyResolver getFontFamilyResolver() {
return this.resolver;
}
}