org.sejda.cli.model.ViewerPreferencesTaskCliArguments Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sejda-console Show documentation
Show all versions of sejda-console Show documentation
The sejda-console is a shell interface for Sejda to perform pdf manipulation tasks such as merge or split through the command line.
/*
* Created on Jun 30, 2011
* Copyright 2011 by Eduard Weissmann ([email protected]).
*
* This file is part of the Sejda source code
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package org.sejda.cli.model;
import org.sejda.conversion.PdfDirectionAdapter;
import org.sejda.conversion.PdfDuplexAdapter;
import org.sejda.conversion.PdfNonFullScreenPageModeAdapter;
import org.sejda.conversion.PdfPageLayoutAdapter;
import org.sejda.conversion.PdfPageModeAdapter;
import org.sejda.conversion.PdfPrintScalingAdapter;
import com.lexicalscope.jewel.cli.CommandLineInterface;
import com.lexicalscope.jewel.cli.Option;
/**
* Specifications for command line options of the ViewerPreferences task
*
* @author Eduard Weissmann
*
*/
@CommandLineInterface(application = TaskCliArguments.EXECUTABLE_NAME + " setviewerpreferences")
public interface ViewerPreferencesTaskCliArguments extends CliArgumentsWithPdfAndFileOrDirectoryOutput,
CliArgumentsWithPrefixableOutput, MultiplePdfSourceTaskCliArguments {
@Option(description = "center of the screen (optional)")
boolean isCenterWindow();
@Option(description = "display document title metadata as window title (optional)")
boolean isDisplayDocTitle();
@Option(shortName = "d", description = "direction {l2r, r2l} (optional)")
PdfDirectionAdapter getDirection();
boolean isDirection();
@Option(description = "resize the window to fit the page size (optional)")
boolean isFitWindow();
@Option(description = "hide the menu bar (optional)")
boolean isHideMenu();
@Option(description = "hide the toolbar (optional)")
boolean isHideToolbar();
@Option(description = "hide user interface elements (optional)")
boolean isHideWindowUI();
@Option(shortName = "l", description = "layout for the viewer. { onecolumn, singlepage, twocolumnl, twocolumnr, twopagel, twopager} (optional)", defaultValue = "singlepage")
PdfPageLayoutAdapter getLayout();
@Option(shortName = "m", description = "open mode for the viewer {attachments, fullscreen, none, ocontent, outlines, thumbs}. If omitted it uses none (optional)", defaultValue = "none")
PdfPageModeAdapter getMode();
@Option(shortName = "n", description = "non full screen mode for the viewer when exiting full screen mode {nfsnone, nfsocontent, nfsoutlines, nfsthumbs}."
+ " If omitted it uses 'nfsnone' (optional)", defaultValue = "nfsnone")
PdfNonFullScreenPageModeAdapter getNfsMode();
// pdfsam-incompatibility: is called noPrintScaling in pdfsam
@Option(shortName = "s", description = "page scaling in print dialog {none, app_default} (optional)")
PdfPrintScalingAdapter getPrintScaling();
boolean isPrintScaling();
// pdfsam-incompatibility: doesnt exist in pdfsam
@Option(shortName = "x", description = "paper handling options to use when printing the file from the print dialog: {simplex, duplex_flip_short_edge, duplex_flip_long_edge} (optional)")
PdfDuplexAdapter getDuplex();
boolean isDuplex();
}