refactor scripting commands
This commit is contained in:
parent
958b6eae64
commit
2ec059f276
101 changed files with 289 additions and 294 deletions
|
@ -1,11 +1,11 @@
|
||||||
module org.xbib.graphics.layout.pdfbox {
|
module org.xbib.graphics.layout.pdfbox {
|
||||||
exports org.xbib.graphics.pdfbox.layout.boxable;
|
exports org.xbib.graphics.pdfbox.layout.boxable;
|
||||||
exports org.xbib.graphics.pdfbox.layout.color;
|
exports org.xbib.graphics.pdfbox.layout.color;
|
||||||
exports org.xbib.graphics.pdfbox.layout.elements;
|
exports org.xbib.graphics.pdfbox.layout.element;
|
||||||
exports org.xbib.graphics.pdfbox.layout.elements.render;
|
exports org.xbib.graphics.pdfbox.layout.element.render;
|
||||||
exports org.xbib.graphics.pdfbox.layout.font;
|
exports org.xbib.graphics.pdfbox.layout.font;
|
||||||
exports org.xbib.graphics.pdfbox.layout.script;
|
exports org.xbib.graphics.pdfbox.layout.element.scripting;
|
||||||
exports org.xbib.graphics.pdfbox.layout.script.command;
|
exports org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
exports org.xbib.graphics.pdfbox.layout.shape;
|
exports org.xbib.graphics.pdfbox.layout.shape;
|
||||||
exports org.xbib.graphics.pdfbox.layout.table;
|
exports org.xbib.graphics.pdfbox.layout.table;
|
||||||
exports org.xbib.graphics.pdfbox.layout.table.render;
|
exports org.xbib.graphics.pdfbox.layout.table.render;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
||||||
|
@ -11,11 +11,8 @@ import org.xbib.graphics.pdfbox.layout.text.DrawListener;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Position;
|
import org.xbib.graphics.pdfbox.layout.text.Position;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.WidthRespecting;
|
import org.xbib.graphics.pdfbox.layout.text.WidthRespecting;
|
||||||
|
|
||||||
import java.awt.Color;
|
|
||||||
import java.awt.geom.AffineTransform;
|
import java.awt.geom.AffineTransform;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
public class ChartElement implements Element, Drawable, Dividable, WidthRespecting {
|
public class ChartElement implements Element, Drawable, Dividable, WidthRespecting {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ControlElements do not have a drawable representation, but control page flow,
|
* ControlElements do not have a drawable representation, but control page flow,
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* In order to avoid dependencies to AWT, we use our own Dimension class here.
|
* In order to avoid dependencies to AWT, we use our own Dimension class here.
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import org.apache.pdfbox.io.MemoryUsageSetting;
|
import org.apache.pdfbox.io.MemoryUsageSetting;
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDDocumentInformation;
|
import org.apache.pdfbox.pdmodel.PDDocumentInformation;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.Layout;
|
import org.xbib.graphics.pdfbox.layout.element.render.Layout;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.LayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.LayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.RenderContext;
|
import org.xbib.graphics.pdfbox.layout.element.render.RenderContext;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.RenderListener;
|
import org.xbib.graphics.pdfbox.layout.element.render.RenderListener;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.Renderer;
|
import org.xbib.graphics.pdfbox.layout.element.render.Renderer;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayout;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayout;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import java.io.Closeable;
|
import java.io.Closeable;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.Layout;
|
import org.xbib.graphics.pdfbox.layout.element.render.Layout;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.DrawListener;
|
import org.xbib.graphics.pdfbox.layout.text.DrawListener;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Position;
|
import org.xbib.graphics.pdfbox.layout.text.Position;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
|
@ -1,6 +1,6 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.LayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.LayoutHint;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base (tagging) interface for elements in a {@link Document}.
|
* Base (tagging) interface for elements in a {@link Document}.
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
public enum Orientation {
|
public enum Orientation {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.common.PDRectangle;
|
import org.apache.pdfbox.pdmodel.common.PDRectangle;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayout;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayout;
|
||||||
|
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
public interface PageFormats {
|
public interface PageFormats {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utility class to create elements that allow the manipulation of the current
|
* Utility class to create elements that allow the manipulation of the current
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* In order to avoid dependencies to AWT, we use our own Rectangle class here.
|
* In order to avoid dependencies to AWT, we use our own Rectangle class here.
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
import io.sf.carte.echosvg.anim.dom.SAXSVGDocumentFactory;
|
import io.sf.carte.echosvg.anim.dom.SAXSVGDocumentFactory;
|
||||||
|
@ -9,7 +9,6 @@ import io.sf.carte.echosvg.bridge.UserAgent;
|
||||||
import io.sf.carte.echosvg.bridge.UserAgentAdapter;
|
import io.sf.carte.echosvg.bridge.UserAgentAdapter;
|
||||||
import io.sf.carte.echosvg.gvt.GraphicsNode;
|
import io.sf.carte.echosvg.gvt.GraphicsNode;
|
||||||
*/
|
*/
|
||||||
import javax.xml.parsers.SAXParserFactory;
|
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
||||||
import org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject;
|
import org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject;
|
||||||
|
@ -21,12 +20,9 @@ import org.xbib.graphics.pdfbox.font.DefaultFontDrawer;
|
||||||
import org.xbib.graphics.pdfbox.font.FontDrawer;
|
import org.xbib.graphics.pdfbox.font.FontDrawer;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.DrawListener;
|
import org.xbib.graphics.pdfbox.layout.text.DrawListener;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Position;
|
import org.xbib.graphics.pdfbox.layout.text.Position;
|
||||||
import org.w3c.dom.Document;
|
|
||||||
import org.xml.sax.XMLReader;
|
|
||||||
|
|
||||||
import java.awt.color.ICC_Profile;
|
import java.awt.color.ICC_Profile;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.StringReader;
|
|
||||||
|
|
||||||
public class SVGElement extends ImageElement {
|
public class SVGElement extends ImageElement {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.font.Font;
|
import org.xbib.graphics.pdfbox.layout.font.Font;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements;
|
package org.xbib.graphics.pdfbox.layout.element;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements.render;
|
package org.xbib.graphics.pdfbox.layout.element.render;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.ControlElement;
|
import org.xbib.graphics.pdfbox.layout.element.ControlElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Drawable;
|
import org.xbib.graphics.pdfbox.layout.element.Drawable;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Element;
|
import org.xbib.graphics.pdfbox.layout.element.Element;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements.render;
|
package org.xbib.graphics.pdfbox.layout.element.render;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements.render;
|
package org.xbib.graphics.pdfbox.layout.element.render;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Element;
|
import org.xbib.graphics.pdfbox.layout.element.Element;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A layout is used to size and position the elements of a document according to
|
* A layout is used to size and position the elements of a document according to
|
|
@ -1,7 +1,7 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements.render;
|
package org.xbib.graphics.pdfbox.layout.element.render;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Element;
|
import org.xbib.graphics.pdfbox.layout.element.Element;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Each element in a document {@link Document#add(Element, LayoutHint)}
|
* Each element in a document {@link Document#add(Element, LayoutHint)}
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements.render;
|
package org.xbib.graphics.pdfbox.layout.element.render;
|
||||||
|
|
||||||
public enum Layouts {
|
public enum Layouts {
|
||||||
VERTICAL,
|
VERTICAL,
|
|
@ -1,19 +1,19 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements.render;
|
package org.xbib.graphics.pdfbox.layout.element.render;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPage;
|
import org.apache.pdfbox.pdmodel.PDPage;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
||||||
import org.apache.pdfbox.util.Matrix;
|
import org.apache.pdfbox.util.Matrix;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.ControlElement;
|
import org.xbib.graphics.pdfbox.layout.element.ControlElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Element;
|
import org.xbib.graphics.pdfbox.layout.element.Element;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Orientation;
|
import org.xbib.graphics.pdfbox.layout.element.Orientation;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PageFormat;
|
import org.xbib.graphics.pdfbox.layout.element.PageFormat;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PositionControl;
|
import org.xbib.graphics.pdfbox.layout.element.PositionControl;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PositionControl.MarkPosition;
|
import org.xbib.graphics.pdfbox.layout.element.PositionControl.MarkPosition;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PositionControl.MovePosition;
|
import org.xbib.graphics.pdfbox.layout.element.PositionControl.MovePosition;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PositionControl.ResetPosition;
|
import org.xbib.graphics.pdfbox.layout.element.PositionControl.ResetPosition;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PositionControl.SetPosition;
|
import org.xbib.graphics.pdfbox.layout.element.PositionControl.SetPosition;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.DrawContext;
|
import org.xbib.graphics.pdfbox.layout.text.DrawContext;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.DrawListener;
|
import org.xbib.graphics.pdfbox.layout.text.DrawListener;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Position;
|
import org.xbib.graphics.pdfbox.layout.text.Position;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements.render;
|
package org.xbib.graphics.pdfbox.layout.element.render;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A render listener is called before and after a page has been rendered. It may
|
* A render listener is called before and after a page has been rendered. It may
|
|
@ -1,6 +1,6 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements.render;
|
package org.xbib.graphics.pdfbox.layout.element.render;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Element;
|
import org.xbib.graphics.pdfbox.layout.element.Element;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,13 +1,13 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements.render;
|
package org.xbib.graphics.pdfbox.layout.element.render;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.ControlElement;
|
import org.xbib.graphics.pdfbox.layout.element.ControlElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Cutter;
|
import org.xbib.graphics.pdfbox.layout.element.Cutter;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Dividable;
|
import org.xbib.graphics.pdfbox.layout.element.Dividable;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Drawable;
|
import org.xbib.graphics.pdfbox.layout.element.Drawable;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Element;
|
import org.xbib.graphics.pdfbox.layout.element.Element;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PageFormat;
|
import org.xbib.graphics.pdfbox.layout.element.PageFormat;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.VerticalSpacer;
|
import org.xbib.graphics.pdfbox.layout.element.VerticalSpacer;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Position;
|
import org.xbib.graphics.pdfbox.layout.text.Position;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.WidthRespecting;
|
import org.xbib.graphics.pdfbox.layout.text.WidthRespecting;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.elements.render;
|
package org.xbib.graphics.pdfbox.layout.element.render;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script;
|
package org.xbib.graphics.pdfbox.layout.element.scripting;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.script.command.Command;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.command.Command;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
||||||
|
|
||||||
import java.io.Closeable;
|
import java.io.Closeable;
|
||||||
|
@ -9,6 +9,8 @@ import java.util.logging.Logger;
|
||||||
|
|
||||||
public class Engine implements Closeable {
|
public class Engine implements Closeable {
|
||||||
|
|
||||||
|
private static final Logger logger = Logger.getLogger(Engine.class.getName());
|
||||||
|
|
||||||
private final String packageName;
|
private final String packageName;
|
||||||
|
|
||||||
private final ClassLoader classLoader;
|
private final ClassLoader classLoader;
|
||||||
|
@ -52,6 +54,7 @@ public class Engine implements Closeable {
|
||||||
String className = packageName + ".command." + type.substring(0, 1).toUpperCase() + type.substring(1) + "Command";
|
String className = packageName + ".command." + type.substring(0, 1).toUpperCase() + type.substring(1) + "Command";
|
||||||
Class<?> cl = classLoader.loadClass(className);
|
Class<?> cl = classLoader.loadClass(className);
|
||||||
Command command = (Command) cl.getConstructor().newInstance();
|
Command command = (Command) cl.getConstructor().newInstance();
|
||||||
|
logger.finer("executing element " + type + " settings = " + settings.getAsMap());
|
||||||
command.execute(this, state, settings);
|
command.execute(this, state, settings);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new IOException(e);
|
throw new IOException(e);
|
|
@ -1,7 +1,7 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script;
|
package org.xbib.graphics.pdfbox.layout.element.scripting;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Element;
|
import org.xbib.graphics.pdfbox.layout.element.Element;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Stack;
|
import java.util.Stack;
|
|
@ -1,12 +1,12 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.barcode.HumanReadableLocation;
|
import org.xbib.graphics.barcode.HumanReadableLocation;
|
||||||
import org.xbib.graphics.barcode.Symbol;
|
import org.xbib.graphics.barcode.Symbol;
|
||||||
import org.xbib.graphics.barcode.Symbols;
|
import org.xbib.graphics.barcode.Symbols;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.BarcodeElement;
|
import org.xbib.graphics.pdfbox.layout.element.BarcodeElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Position;
|
import org.xbib.graphics.pdfbox.layout.text.Position;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
|
@ -1,12 +1,12 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.color.ColorFactory;
|
import org.xbib.graphics.pdfbox.layout.color.ColorFactory;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.Font;
|
import org.xbib.graphics.pdfbox.layout.font.Font;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.Fonts;
|
import org.xbib.graphics.pdfbox.layout.font.Fonts;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.graphics.pdfbox.layout.table.BorderStyle;
|
import org.xbib.graphics.pdfbox.layout.table.BorderStyle;
|
||||||
import org.xbib.graphics.pdfbox.layout.table.BorderStyleInterface;
|
import org.xbib.graphics.pdfbox.layout.table.BorderStyleInterface;
|
||||||
import org.xbib.graphics.pdfbox.layout.table.HorizontalAlignment;
|
import org.xbib.graphics.pdfbox.layout.table.HorizontalAlignment;
|
|
@ -1,9 +1,9 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.ChartElement;
|
import org.xbib.graphics.pdfbox.layout.element.ChartElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Position;
|
import org.xbib.graphics.pdfbox.layout.text.Position;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.ColumnLayout;
|
import org.xbib.graphics.pdfbox.layout.element.render.ColumnLayout;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
|
@ -0,0 +1,11 @@
|
||||||
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
|
import org.xbib.settings.Settings;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
public interface Command {
|
||||||
|
void execute(Engine engine, State state, Settings settings) throws IOException;
|
||||||
|
}
|
|
@ -1,9 +1,9 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PageFormat;
|
import org.xbib.graphics.pdfbox.layout.element.PageFormat;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
|
@ -1,9 +1,9 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.color.ColorFactory;
|
import org.xbib.graphics.pdfbox.layout.color.ColorFactory;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Frame;
|
import org.xbib.graphics.pdfbox.layout.element.Frame;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
|
@ -1,9 +1,9 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.color.ColorFactory;
|
import org.xbib.graphics.pdfbox.layout.color.ColorFactory;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.HorizontalRuler;
|
import org.xbib.graphics.pdfbox.layout.element.HorizontalRuler;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.graphics.pdfbox.layout.shape.Stroke;
|
import org.xbib.graphics.pdfbox.layout.shape.Stroke;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.ImageElement;
|
import org.xbib.graphics.pdfbox.layout.element.ImageElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.SVGElement;
|
import org.xbib.graphics.pdfbox.layout.element.SVGElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Position;
|
import org.xbib.graphics.pdfbox.layout.text.Position;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
|
@ -1,7 +1,7 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PositionControl;
|
import org.xbib.graphics.pdfbox.layout.element.PositionControl;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PositionControl;
|
import org.xbib.graphics.pdfbox.layout.element.PositionControl;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.ControlElement;
|
import org.xbib.graphics.pdfbox.layout.element.ControlElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.ControlElement;
|
import org.xbib.graphics.pdfbox.layout.element.ControlElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
|
@ -1,9 +1,9 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Position;
|
import org.xbib.graphics.pdfbox.layout.text.Position;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
|
@ -1,9 +1,9 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.color.ColorFactory;
|
import org.xbib.graphics.pdfbox.layout.color.ColorFactory;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PathElement;
|
import org.xbib.graphics.pdfbox.layout.element.PathElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.graphics.pdfbox.layout.shape.Path;
|
import org.xbib.graphics.pdfbox.layout.shape.Path;
|
||||||
import org.xbib.graphics.pdfbox.layout.shape.Stroke;
|
import org.xbib.graphics.pdfbox.layout.shape.Stroke;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Position;
|
import org.xbib.graphics.pdfbox.layout.text.Position;
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PositionControl;
|
import org.xbib.graphics.pdfbox.layout.element.PositionControl;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
|
@ -1,10 +1,10 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.color.ColorFactory;
|
import org.xbib.graphics.pdfbox.layout.color.ColorFactory;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.Fonts;
|
import org.xbib.graphics.pdfbox.layout.font.Fonts;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.graphics.pdfbox.layout.table.BorderStyle;
|
import org.xbib.graphics.pdfbox.layout.table.BorderStyle;
|
||||||
import org.xbib.graphics.pdfbox.layout.table.BorderStyleInterface;
|
import org.xbib.graphics.pdfbox.layout.table.BorderStyleInterface;
|
||||||
import org.xbib.graphics.pdfbox.layout.table.HorizontalAlignment;
|
import org.xbib.graphics.pdfbox.layout.table.HorizontalAlignment;
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PositionControl;
|
import org.xbib.graphics.pdfbox.layout.element.PositionControl;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.TableElement;
|
import org.xbib.graphics.pdfbox.layout.element.TableElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Position;
|
import org.xbib.graphics.pdfbox.layout.text.Position;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Element;
|
import org.xbib.graphics.pdfbox.layout.element.Element;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.TextElement;
|
import org.xbib.graphics.pdfbox.layout.element.TextElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.Font;
|
import org.xbib.graphics.pdfbox.layout.font.Font;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.Fonts;
|
import org.xbib.graphics.pdfbox.layout.font.Fonts;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Position;
|
import org.xbib.graphics.pdfbox.layout.text.Position;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
package org.xbib.graphics.pdfbox.layout.element.scripting.command;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.VerticalSpacer;
|
import org.xbib.graphics.pdfbox.layout.element.VerticalSpacer;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.State;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
|
@ -1,6 +1,6 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.font;
|
package org.xbib.graphics.pdfbox.layout.font;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
|
@ -3,7 +3,7 @@ package org.xbib.graphics.pdfbox.layout.font;
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.font.PDFont;
|
import org.apache.pdfbox.pdmodel.font.PDFont;
|
||||||
import org.apache.pdfbox.pdmodel.font.PDType0Font;
|
import org.apache.pdfbox.pdmodel.font.PDType0Font;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.UncheckedIOException;
|
import java.io.UncheckedIOException;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.script.command;
|
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
|
||||||
import org.xbib.graphics.pdfbox.layout.script.State;
|
|
||||||
import org.xbib.settings.Settings;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
public interface Command {
|
|
||||||
void execute(Engine engine, State state, Settings settings) throws IOException;
|
|
||||||
}
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.table;
|
package org.xbib.graphics.pdfbox.layout.table;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Element;
|
import org.xbib.graphics.pdfbox.layout.element.Element;
|
||||||
import org.xbib.graphics.pdfbox.layout.table.render.Renderer;
|
import org.xbib.graphics.pdfbox.layout.table.render.Renderer;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.table;
|
package org.xbib.graphics.pdfbox.layout.table;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Drawable;
|
import org.xbib.graphics.pdfbox.layout.element.Drawable;
|
||||||
import org.xbib.graphics.pdfbox.layout.table.render.DrawableCellRenderer;
|
import org.xbib.graphics.pdfbox.layout.table.render.DrawableCellRenderer;
|
||||||
import org.xbib.graphics.pdfbox.layout.table.render.Renderer;
|
import org.xbib.graphics.pdfbox.layout.table.render.Renderer;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.table;
|
package org.xbib.graphics.pdfbox.layout.table;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.Font;
|
import org.xbib.graphics.pdfbox.layout.font.Font;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.annotations.AnnotatedStyledText;
|
import org.xbib.graphics.pdfbox.layout.text.annotations.AnnotatedStyledText;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.table;
|
package org.xbib.graphics.pdfbox.layout.table;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.Font;
|
import org.xbib.graphics.pdfbox.layout.font.Font;
|
||||||
|
|
||||||
public class Markup implements ParagraphProcessor {
|
public class Markup implements ParagraphProcessor {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.table;
|
package org.xbib.graphics.pdfbox.layout.table;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.Font;
|
import org.xbib.graphics.pdfbox.layout.font.Font;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.table;
|
package org.xbib.graphics.pdfbox.layout.table;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.table.render.Renderer;
|
import org.xbib.graphics.pdfbox.layout.table.render.Renderer;
|
||||||
import org.xbib.graphics.pdfbox.layout.table.render.ParagraphCellRenderer;
|
import org.xbib.graphics.pdfbox.layout.table.render.ParagraphCellRenderer;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.table;
|
package org.xbib.graphics.pdfbox.layout.table;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
public interface ParagraphProcessor {
|
public interface ParagraphProcessor {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.table;
|
package org.xbib.graphics.pdfbox.layout.table;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Drawable;
|
import org.xbib.graphics.pdfbox.layout.element.Drawable;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Element;
|
import org.xbib.graphics.pdfbox.layout.element.Element;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.HorizontalRuler;
|
import org.xbib.graphics.pdfbox.layout.element.HorizontalRuler;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.Font;
|
import org.xbib.graphics.pdfbox.layout.font.Font;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.table;
|
package org.xbib.graphics.pdfbox.layout.table;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.Font;
|
import org.xbib.graphics.pdfbox.layout.font.Font;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
||||||
import org.xbib.graphics.pdfbox.layout.util.PdfUtil;
|
import org.xbib.graphics.pdfbox.layout.util.PdfUtil;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.table.render;
|
package org.xbib.graphics.pdfbox.layout.table.render;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Drawable;
|
import org.xbib.graphics.pdfbox.layout.element.Drawable;
|
||||||
import org.xbib.graphics.pdfbox.layout.table.DrawableCell;
|
import org.xbib.graphics.pdfbox.layout.table.DrawableCell;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Position;
|
import org.xbib.graphics.pdfbox.layout.text.Position;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.WidthRespecting;
|
import org.xbib.graphics.pdfbox.layout.text.WidthRespecting;
|
||||||
|
|
|
@ -3,7 +3,7 @@ package org.xbib.graphics.pdfbox.layout.table.render;
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPage;
|
import org.apache.pdfbox.pdmodel.PDPage;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.table.HorizontalAlignment;
|
import org.xbib.graphics.pdfbox.layout.table.HorizontalAlignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.table.ParagraphCell;
|
import org.xbib.graphics.pdfbox.layout.table.ParagraphCell;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
|
|
|
@ -2,8 +2,8 @@ package org.xbib.graphics.pdfbox.layout.text.annotations;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPage;
|
import org.apache.pdfbox.pdmodel.PDPage;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.RenderContext;
|
import org.xbib.graphics.pdfbox.layout.element.render.RenderContext;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.RenderListener;
|
import org.xbib.graphics.pdfbox.layout.element.render.RenderListener;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.DrawContext;
|
import org.xbib.graphics.pdfbox.layout.text.DrawContext;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.DrawListener;
|
import org.xbib.graphics.pdfbox.layout.text.DrawListener;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.util;
|
package org.xbib.graphics.pdfbox.layout.util;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Dividable.Divided;
|
import org.xbib.graphics.pdfbox.layout.element.Dividable.Divided;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.DrawListener;
|
import org.xbib.graphics.pdfbox.layout.text.DrawListener;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
import org.xbib.graphics.pdfbox.layout.util.WordBreakerFactory;
|
import org.xbib.graphics.pdfbox.layout.util.WordBreakerFactory;
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.VerticalSpacer;
|
import org.xbib.graphics.pdfbox.layout.element.VerticalSpacer;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.ColumnLayout;
|
import org.xbib.graphics.pdfbox.layout.element.render.ColumnLayout;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,9 @@ import org.apache.pdfbox.pdmodel.graphics.color.PDColor;
|
||||||
import org.apache.pdfbox.pdmodel.graphics.color.PDDeviceRGB;
|
import org.apache.pdfbox.pdmodel.graphics.color.PDDeviceRGB;
|
||||||
import org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationTextMarkup;
|
import org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationTextMarkup;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PageFormat;
|
import org.xbib.graphics.pdfbox.layout.element.PageFormat;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.DrawContext;
|
import org.xbib.graphics.pdfbox.layout.text.DrawContext;
|
||||||
|
@ -26,7 +26,6 @@ import java.awt.Color;
|
||||||
import java.awt.geom.AffineTransform;
|
import java.awt.geom.AffineTransform;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.OutputStream;
|
|
||||||
import java.io.UncheckedIOException;
|
import java.io.UncheckedIOException;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Element;
|
import org.xbib.graphics.pdfbox.layout.element.Element;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.HorizontalRuler;
|
import org.xbib.graphics.pdfbox.layout.element.HorizontalRuler;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.LayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.LayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.RenderContext;
|
import org.xbib.graphics.pdfbox.layout.element.render.RenderContext;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.RenderListener;
|
import org.xbib.graphics.pdfbox.layout.element.render.RenderListener;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.Renderer;
|
import org.xbib.graphics.pdfbox.layout.element.render.Renderer;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
||||||
import org.xbib.graphics.pdfbox.layout.shape.Stroke;
|
import org.xbib.graphics.pdfbox.layout.shape.Stroke;
|
||||||
import org.xbib.graphics.pdfbox.layout.shape.Stroke.CapStyle;
|
import org.xbib.graphics.pdfbox.layout.shape.Stroke.CapStyle;
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Frame;
|
import org.xbib.graphics.pdfbox.layout.element.Frame;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PageFormats;
|
import org.xbib.graphics.pdfbox.layout.element.PageFormats;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.shape.Ellipse;
|
import org.xbib.graphics.pdfbox.layout.shape.Ellipse;
|
||||||
import org.xbib.graphics.pdfbox.layout.shape.Rect;
|
import org.xbib.graphics.pdfbox.layout.shape.Rect;
|
||||||
import org.xbib.graphics.pdfbox.layout.shape.RoundRect;
|
import org.xbib.graphics.pdfbox.layout.shape.RoundRect;
|
||||||
|
|
|
@ -4,11 +4,11 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.barcode.Code3Of9;
|
import org.xbib.graphics.barcode.Code3Of9;
|
||||||
import org.xbib.graphics.barcode.HumanReadableLocation;
|
import org.xbib.graphics.barcode.HumanReadableLocation;
|
||||||
import org.xbib.graphics.barcode.Symbol;
|
import org.xbib.graphics.barcode.Symbol;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.BarcodeElement;
|
import org.xbib.graphics.pdfbox.layout.element.BarcodeElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PageFormats;
|
import org.xbib.graphics.pdfbox.layout.element.PageFormats;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Indent;
|
import org.xbib.graphics.pdfbox.layout.text.Indent;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.ImageElement;
|
import org.xbib.graphics.pdfbox.layout.element.ImageElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PageFormats;
|
import org.xbib.graphics.pdfbox.layout.element.PageFormats;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.Font;
|
import org.xbib.graphics.pdfbox.layout.font.Font;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.NotoSansFont;
|
import org.xbib.graphics.pdfbox.layout.font.NotoSansFont;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Indent;
|
import org.xbib.graphics.pdfbox.layout.text.Indent;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Indent;
|
import org.xbib.graphics.pdfbox.layout.text.Indent;
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.ControlElement;
|
import org.xbib.graphics.pdfbox.layout.element.ControlElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PageFormat;
|
import org.xbib.graphics.pdfbox.layout.element.PageFormat;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.VerticalSpacer;
|
import org.xbib.graphics.pdfbox.layout.element.VerticalSpacer;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.ColumnLayout;
|
import org.xbib.graphics.pdfbox.layout.element.render.ColumnLayout;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayout;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayout;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.ImageElement;
|
import org.xbib.graphics.pdfbox.layout.element.ImageElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.VerticalSpacer;
|
import org.xbib.graphics.pdfbox.layout.element.VerticalSpacer;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Position;
|
import org.xbib.graphics.pdfbox.layout.text.Position;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.ControlElement;
|
import org.xbib.graphics.pdfbox.layout.element.ControlElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.ColumnLayout;
|
import org.xbib.graphics.pdfbox.layout.element.render.ColumnLayout;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.RenderContext;
|
import org.xbib.graphics.pdfbox.layout.element.render.RenderContext;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.RenderListener;
|
import org.xbib.graphics.pdfbox.layout.element.render.RenderListener;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
|
|
|
@ -4,7 +4,7 @@ import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPage;
|
import org.apache.pdfbox.pdmodel.PDPage;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PageFormat;
|
import org.xbib.graphics.pdfbox.layout.element.PageFormat;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
import org.xbib.graphics.pdfbox.layout.font.FontDescriptor;
|
||||||
import org.xbib.graphics.pdfbox.layout.shape.RoundRect;
|
import org.xbib.graphics.pdfbox.layout.shape.RoundRect;
|
||||||
import org.xbib.graphics.pdfbox.layout.shape.Shape;
|
import org.xbib.graphics.pdfbox.layout.shape.Shape;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
import org.xbib.graphics.pdfbox.layout.text.Alignment;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.ControlElement;
|
import org.xbib.graphics.pdfbox.layout.element.ControlElement;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.PageFormat;
|
import org.xbib.graphics.pdfbox.layout.element.PageFormat;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.VerticalSpacer;
|
import org.xbib.graphics.pdfbox.layout.element.VerticalSpacer;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.ColumnLayout;
|
import org.xbib.graphics.pdfbox.layout.element.render.ColumnLayout;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayout;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayout;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.render.VerticalLayoutHint;
|
import org.xbib.graphics.pdfbox.layout.element.render.VerticalLayoutHint;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test.script;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Document;
|
import org.xbib.graphics.pdfbox.layout.element.Document;
|
||||||
import org.xbib.graphics.pdfbox.layout.script.Engine;
|
import org.xbib.graphics.pdfbox.layout.element.scripting.Engine;
|
||||||
import org.xbib.settings.Settings;
|
import org.xbib.settings.Settings;
|
||||||
|
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
|
||||||
public class ScriptTest {
|
public class ScriptingTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void script() throws Exception {
|
public void script() throws Exception {
|
|
@ -1,6 +1,6 @@
|
||||||
package org.xbib.graphics.pdfbox.layout.test;
|
package org.xbib.graphics.pdfbox.layout.test;
|
||||||
|
|
||||||
import org.xbib.graphics.pdfbox.layout.elements.Paragraph;
|
import org.xbib.graphics.pdfbox.layout.element.Paragraph;
|
||||||
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
import org.xbib.graphics.pdfbox.layout.font.BaseFont;
|
||||||
|
|
||||||
public class Section extends Paragraph {
|
public class Section extends Paragraph {
|
||||||
|
|
Before Width: | Height: | Size: 673 B After Width: | Height: | Size: 673 B |
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue