![JAR search and dependency download from the Maven repository](/logo.png)
br.com.objectos.way.reports.htmltopdf.Htmltopdf Maven / Gradle / Ivy
/*
* Copyright 2013 Objectos, Fábrica de Software LTDA.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package br.com.objectos.way.reports.htmltopdf;
import java.io.File;
import com.google.inject.ImplementedBy;
/**
* @author Marcio Endo ([email protected])
*/
@ImplementedBy(HtmltopdfGuice.class)
public interface Htmltopdf {
interface Get {
Get toPaperFormat(PaperFormat format);
Get orientedAs(Orientation orientation);
WithMargins withMargins();
Get withoutMargins();
WithHeader withHeader();
WithFooter withFooter();
File andWriteTo(File file);
}
interface WithMargins {
WithMargins top(int size, Unit unit);
WithMargins right(int size, Unit unit);
WithMargins bottom(int size, Unit unit);
WithMargins left(int size, Unit unit);
Get resized();
}
interface WithHeader {
WithHeader height(int size, Unit unit);
WithHeader contents(String contents);
Get customized();
}
interface WithFooter {
WithFooter height(int size, Unit unit);
WithFooter contents(String contents);
Get customized();
}
interface Authenticate {
Authenticate post(String name, String value);
Get get(String url);
}
Authenticate authenticateTo(String authUrl);
Get get(String url);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy