Class PrintType
- java.lang.Object
-
- net.webpdf.wsclient.schema.operation.BaseToolboxType
-
- net.webpdf.wsclient.schema.operation.PrintType
-
- All Implemented Interfaces:
ParameterInterface
public class PrintType extends BaseToolboxType
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">The print operation element can be used to print documents.</p>
Java class for PrintType complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="PrintType"> <complexContent> <extension base="{http://schema.webpdf.de/1.0/operation}BaseToolboxType"> <attribute name="printerName" type="{http://www.w3.org/2001/XMLSchema}string" default="" /> <attribute name="pages" type="{http://www.w3.org/2001/XMLSchema}string" default="" /> <attribute name="jobName" type="{http://www.w3.org/2001/XMLSchema}string" default="webPDF Print Job" /> <attribute name="copies" default="1"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}int"> <minInclusive value="1"/> </restriction> </simpleType> </attribute> <attribute name="autoRotate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> <attribute name="shrinkToMargins" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> <attribute name="expandToMargins" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> <attribute name="centerInPage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> <attribute name="dpi" type="{http://www.w3.org/2001/XMLSchema}int" default="0" /> <attribute name="mode" type="{http://schema.webpdf.de/1.0/operation}PrintModeType" default="default" /> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleanautoRotate<?protected BooleancenterInPage<?protected Integercopies<?protected Integerdpi<?protected BooleanexpandToMargins<?protected StringjobName<?protected PrintModeTypemode<?protected Stringpages<?protected StringprinterName<?protected BooleanshrinkToMargins<?
-
Constructor Summary
Constructors Constructor Description PrintType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCopies()<?intgetDpi()<?StringgetJobName()<?PrintModeTypegetMode()<?StringgetPages()<?StringgetPrinterName()<?booleanisAutoRotate()<?booleanisCenterInPage()<?booleanisExpandToMargins()<?booleanisSetAutoRotate()booleanisSetCenterInPage()booleanisSetCopies()booleanisSetDpi()booleanisSetExpandToMargins()booleanisSetJobName()booleanisSetMode()booleanisSetPages()booleanisSetPrinterName()booleanisSetShrinkToMargins()booleanisShrinkToMargins()<?voidsetAutoRotate(boolean value)Sets the value of the autoRotate property.voidsetCenterInPage(boolean value)Sets the value of the centerInPage property.voidsetCopies(int value)Sets the value of the copies property.voidsetDpi(int value)Sets the value of the dpi property.voidsetExpandToMargins(boolean value)Sets the value of the expandToMargins property.voidsetJobName(String value)Sets the value of the jobName property.voidsetMode(PrintModeType value)Sets the value of the mode property.voidsetPages(String value)Sets the value of the pages property.voidsetPrinterName(String value)Sets the value of the printerName property.voidsetShrinkToMargins(boolean value)Sets the value of the shrinkToMargins property.voidunsetAutoRotate()voidunsetCenterInPage()voidunsetCopies()voidunsetDpi()voidunsetExpandToMargins()voidunsetShrinkToMargins()
-
-
-
Field Detail
-
printerName
protected String printerName
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">This attribute is used to specify the name of the printer that should be used to print the PDF document. If a printer is not declared, then the system's default printer will be used for printing.</p>
-
pages
protected String pages
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Defines which page(s) should be printed. The page number can be an individual page, a page range, or a list (separated with commas) (e.g., "1,5-6,9"). To specify "all pages," use an asterisk ("*").</p>
-
jobName
protected String jobName
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">This attribute is used to define the name of the print job (as shown in the Print Spooler in Windows, for example).</p>
-
copies
protected Integer copies
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Defines the number of copies that should be printed.</p>
-
autoRotate
protected Boolean autoRotate
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">If "true," the PDF document's orientation will be automatically adjusted in line with the printer's configured paper orientation.</p>
-
shrinkToMargins
protected Boolean shrinkToMargins
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">If "true," any PDF page that is larger than the paper will be shrunk to fit the paper size.</p>
-
expandToMargins
protected Boolean expandToMargins
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">If "true," any PDF page that is smaller than the paper will be enlarged to fit the paper size.</p>
-
centerInPage
protected Boolean centerInPage
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">If "true", the PDF page will be centered in the middle of the paper.</p>
-
dpi
protected Integer dpi
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Sets the printer resolution for the "image" print mode. If this value is set to 0, the document will be printed, using a resolution suggested by the printer. (High resolutions will lead to better quality results, but will tremendously increase the required time and resources.)</p>
-
mode
protected PrintModeType mode
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Select the printing mode, that shall be used. <ul><li>default = The drawing operations are applied to the printout as defined in the PDF document.</li><li>image = Creates an image of a fixed resolution for every page of the document, to guarantee a uniform printing result.</li><li>raster = Every page of the document is rastered before printing. This is a compatibility mode for older printers.</li></ul></p>
-
-
Method Detail
-
getPrinterName
public String getPrinterName()
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">This attribute is used to specify the name of the printer that should be used to print the PDF document. If a printer is not declared, then the system's default printer will be used for printing.</p>
- Returns:
- possible object is
String
-
setPrinterName
public void setPrinterName(String value)
Sets the value of the printerName property.- Parameters:
value- allowed object isString- See Also:
getPrinterName()
-
isSetPrinterName
public boolean isSetPrinterName()
-
getPages
public String getPages()
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Defines which page(s) should be printed. The page number can be an individual page, a page range, or a list (separated with commas) (e.g., "1,5-6,9"). To specify "all pages," use an asterisk ("*").</p>- Returns:
- possible object is
String
-
setPages
public void setPages(String value)
Sets the value of the pages property.- Parameters:
value- allowed object isString- See Also:
getPages()
-
isSetPages
public boolean isSetPages()
-
getJobName
public String getJobName()
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">This attribute is used to define the name of the print job (as shown in the Print Spooler in Windows, for example).</p>
- Returns:
- possible object is
String
-
setJobName
public void setJobName(String value)
Sets the value of the jobName property.- Parameters:
value- allowed object isString- See Also:
getJobName()
-
isSetJobName
public boolean isSetJobName()
-
getCopies
public int getCopies()
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Defines the number of copies that should be printed.</p>
- Returns:
- possible object is
Integer
-
setCopies
public void setCopies(int value)
Sets the value of the copies property.- Parameters:
value- allowed object isInteger- See Also:
getCopies()
-
isSetCopies
public boolean isSetCopies()
-
unsetCopies
public void unsetCopies()
-
isAutoRotate
public boolean isAutoRotate()
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">If "true," the PDF document's orientation will be automatically adjusted in line with the printer's configured paper orientation.</p>
- Returns:
- possible object is
Boolean
-
setAutoRotate
public void setAutoRotate(boolean value)
Sets the value of the autoRotate property.- Parameters:
value- allowed object isBoolean- See Also:
isAutoRotate()
-
isSetAutoRotate
public boolean isSetAutoRotate()
-
unsetAutoRotate
public void unsetAutoRotate()
-
isShrinkToMargins
public boolean isShrinkToMargins()
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">If "true," any PDF page that is larger than the paper will be shrunk to fit the paper size.</p>
- Returns:
- possible object is
Boolean
-
setShrinkToMargins
public void setShrinkToMargins(boolean value)
Sets the value of the shrinkToMargins property.- Parameters:
value- allowed object isBoolean- See Also:
isShrinkToMargins()
-
isSetShrinkToMargins
public boolean isSetShrinkToMargins()
-
unsetShrinkToMargins
public void unsetShrinkToMargins()
-
isExpandToMargins
public boolean isExpandToMargins()
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">If "true," any PDF page that is smaller than the paper will be enlarged to fit the paper size.</p>
- Returns:
- possible object is
Boolean
-
setExpandToMargins
public void setExpandToMargins(boolean value)
Sets the value of the expandToMargins property.- Parameters:
value- allowed object isBoolean- See Also:
isExpandToMargins()
-
isSetExpandToMargins
public boolean isSetExpandToMargins()
-
unsetExpandToMargins
public void unsetExpandToMargins()
-
isCenterInPage
public boolean isCenterInPage()
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">If "true", the PDF page will be centered in the middle of the paper.</p>
- Returns:
- possible object is
Boolean
-
setCenterInPage
public void setCenterInPage(boolean value)
Sets the value of the centerInPage property.- Parameters:
value- allowed object isBoolean- See Also:
isCenterInPage()
-
isSetCenterInPage
public boolean isSetCenterInPage()
-
unsetCenterInPage
public void unsetCenterInPage()
-
getDpi
public int getDpi()
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Sets the printer resolution for the "image" print mode. If this value is set to 0, the document will be printed, using a resolution suggested by the printer. (High resolutions will lead to better quality results, but will tremendously increase the required time and resources.)</p>
- Returns:
- possible object is
Integer
-
setDpi
public void setDpi(int value)
Sets the value of the dpi property.
-
isSetDpi
public boolean isSetDpi()
-
unsetDpi
public void unsetDpi()
-
getMode
public PrintModeType getMode()
<?xml version="1.0" encoding="UTF-8"?><p xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Select the printing mode, that shall be used. <ul><li>default = The drawing operations are applied to the printout as defined in the PDF document.</li><li>image = Creates an image of a fixed resolution for every page of the document, to guarantee a uniform printing result.</li><li>raster = Every page of the document is rastered before printing. This is a compatibility mode for older printers.</li></ul></p>- Returns:
- possible object is
PrintModeType
-
setMode
public void setMode(PrintModeType value)
Sets the value of the mode property.- Parameters:
value- allowed object isPrintModeType- See Also:
getMode()
-
isSetMode
public boolean isSetMode()
-
-