inspired.pdf.unbox.elements.internal.AbstractPdfElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unbox-pdf Show documentation
Show all versions of unbox-pdf Show documentation
Unbox PDF is a toolkit for PDF creation based on Apache PDF Box.
package inspired.pdf.unbox.elements.internal;
import inspired.pdf.unbox.Margin;
import inspired.pdf.unbox.Padding;
import inspired.pdf.unbox.elements.PdfElement;
public abstract class AbstractPdfElement implements PdfElement {
private Margin margin = Margin.none();
private Padding padding = Padding.none();
public PdfElement with(Margin margin) {
this.margin = margin;
return this;
}
public PdfElement with(Padding padding) {
this.padding = padding;
return this;
}
@Override
public Margin margin() {
return margin;
}
public Padding padding() {
return padding;
}
}