+++ /dev/null
-diff -u -r src.old/java/org/xhtmlrenderer/pdf/ITextFSImage.java src/java/org/xhtmlrenderer/pdf/ITextFSImage.java
---- src.old/java/org/xhtmlrenderer/pdf/ITextFSImage.java 2008-10-23 19:46:53.000000000 +0300
-+++ src/java/org/xhtmlrenderer/pdf/ITextFSImage.java 2008-10-23 19:48:05.000000000 +0300
-@@ -31,11 +31,11 @@
- }
-
- public int getWidth() {
-- return (int)_image.plainWidth();
-+ return (int)_image.getPlainWidth();
- }
-
- public int getHeight() {
-- return (int)_image.plainHeight();
-+ return (int)_image.getPlainHeight();
- }
-
- public void scale(int width, int height) {
-diff -u -r src.old/java/org/xhtmlrenderer/pdf/ITextRenderer.java src/java/org/xhtmlrenderer/pdf/ITextRenderer.java
---- src.old/java/org/xhtmlrenderer/pdf/ITextRenderer.java 2008-10-23 19:46:53.000000000 +0300
-+++ src/java/org/xhtmlrenderer/pdf/ITextRenderer.java 2008-10-23 19:48:56.000000000 +0300
-@@ -234,7 +234,7 @@
-
- _outputDevice.start(_doc);
- _outputDevice.setWriter(writer);
-- _outputDevice.initializePage(writer.getDirectContent(), firstPageSize.height());
-+ _outputDevice.initializePage(writer.getDirectContent(), firstPageSize.getHeight());
-
- _root.getLayer().assignPagePaintingPositions(c, Layer.PAGED_MODE_PRINT);
-
-@@ -254,7 +254,7 @@
- doc.setPageSize(nextPageSize);
- doc.newPage();
- _outputDevice.initializePage(
-- writer.getDirectContent(), nextPageSize.height());
-+ writer.getDirectContent(), nextPageSize.getHeight());
- }
- }
-
-diff -u -r src.old/java/org/xhtmlrenderer/pdf/ITextUserAgent.java src/java/org/xhtmlrenderer/pdf/ITextUserAgent.java
---- src.old/java/org/xhtmlrenderer/pdf/ITextUserAgent.java 2008-10-23 19:46:53.000000000 +0300
-+++ src/java/org/xhtmlrenderer/pdf/ITextUserAgent.java 2008-10-23 19:50:00.000000000 +0300
-@@ -60,8 +60,8 @@
- PdfReader reader = _outputDevice.getReader(url);
- PDFAsImage image = new PDFAsImage(url);
- Rectangle rect = reader.getPageSizeWithRotation(1);
-- image.setInitialWidth(rect.width()*_outputDevice.getDotsPerPoint());
-- image.setInitialHeight(rect.height()*_outputDevice.getDotsPerPoint());
-+ image.setInitialWidth(rect.getWidth()*_outputDevice.getDotsPerPoint());
-+ image.setInitialHeight(rect.getHeight()*_outputDevice.getDotsPerPoint());
- resource = new ImageResource(image);
- } else {
- Image image = Image.getInstance(url);
-@@ -84,7 +84,7 @@
-
- private void scaleToOutputResolution(Image image) {
- float factor = _sharedContext.getDotsPerPixel();
-- image.scaleAbsolute(image.plainWidth() * factor, image.plainHeight() * factor);
-+ image.scaleAbsolute(image.getPlainWidth() * factor, image.getPlainHeight() * factor);
- }
-
- public SharedContext getSharedContext() {
+++ /dev/null
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-JAVA_PKG_IUSE="doc source"
-
-inherit java-pkg-2 java-ant-2
-
-DESCRIPTION="100% Java XHTML+CSS renderer"
-HOMEPAGE="https://xhtmlrenderer.dev.java.net/"
-SRC_URI="http://www.pdoubleya.com/projects/${PN}/downloads/r${PV}/${PN}-R${PV}final-src.zip"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="amd64 x86"
-
-IUSE="minimal svg ${JAVA_PKG_IUSE}"
-
-COMMON_DEP="
- >=dev-java/itext-2.0.8:0
- svg? ( dev-java/svgsalamander:0 )"
-
-# 1.5 because svgsalamander is 1.5
-RDEPEND="
- svg? ( >=virtual/jre-1.5 )
- !svg? ( >=virtual/jre-1.4 )
- ${COMMON_DEP}"
-
-DEPEND="
- svg? ( >=virtual/jdk-1.5 )
- !svg? ( >=virtual/jdk-1.4 )
- app-arch/unzip
- ${COMMON_DEP}"
-
-S="${WORKDIR}"
-
-java_prepare() {
- epatch "${FILESDIR}"/7-itext-2.0.8.patch
-
- # Save lib/minium.jar because it's not publicly available although it's in
- # public domain, will separate if something else needs it
- rm -v lib/itext*.jar lib/dev/*.jar lib/dev/*/*.jar || die
-
- cd lib || die
- java-pkg_jar-from itext
-
- if use svg; then
- java-pkg_jar-from svgsalamander
- EANT_BUILD_TARGET+=" jar.svg"
- fi
-
- use minimal || EANT_BUILD_TARGET=" jar.docbook jar.about jar.browser"
-}
-
-# Investigate building demos/photogallery demos/filebrowser because
-# the files seem to be missing for jar.photogaller jar.filebrowser
-EANT_BUILD_TARGET="jar.core"
-EANT_DOC_TARGET="docs"
-
-RESTRICT="test"
-
-# Needs X11.
-src_test() {
- eant test -Djava.awt.headless=true
-}
-
-src_install() {
- java-pkg_dojar build/*.jar lib/minium.jar
-
- dodoc README || die
-
- use doc && java-pkg_dojavadoc doc/user/api
- use source && java-pkg_dosrc src/java/org
-}
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>java@gentoo.org</email>
- <name>Java</name>
- </maintainer>
-
- <longdescription lang="en">
- Flying Saucer is a 100% Java XHTML+CSS renderer, including support
- for table pagination, margin boxes, running elements, named pages,
- and more.
- </longdescription>
-</pkgmetadata>