Class RotateType

  • All Implemented Interfaces:
    ParameterInterface

    public class RotateType
    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 rotate operation element can be used to rotate pages in the document.</p>
     

    Java class for RotateType complex type

    .

    The following schema fragment specifies the expected content contained within this class.

    
     <complexType name="RotateType">
       <complexContent>
         <extension base="{http://schema.webpdf.de/1.0/operation}BaseToolboxType">
           <attribute name="pages" type="{http://www.w3.org/2001/XMLSchema}string" default="1" />
           <attribute name="degrees" default="90">
             <simpleType>
               <restriction base="{http://www.w3.org/2001/XMLSchema}int">
                 <minInclusive value="0"/>
                 <maxInclusive value="360"/>
               </restriction>
             </simpleType>
           </attribute>
           <attribute name="pageOrientation" type="{http://schema.webpdf.de/1.0/operation}PageOrientationType" default="any" />
           <attribute name="pageGroup" type="{http://schema.webpdf.de/1.0/operation}PageGroupType" default="all" />
           <attribute name="orientationDetectMode" type="{http://schema.webpdf.de/1.0/operation}OrientationDetectionType" default="value" />
         </extension>
       </complexContent>
     </complexType>
     
    • Field Detail

      • 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 rotated. 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>
         
      • degrees

        protected Integer degrees
         <?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">Used to specify the clockwise rotation in degrees. The rotation is always in 90-degree increments (0, 90, 180, 270, 360). Deviating values will always be rounded down to the next lower increment (e.g.: 32 degrees will become 0 degrees and 101 degrees will become 90 degrees). Once the rotation is completed, the new value will be normalized to a range of 0 to 359 degrees. If the page being rotated has an impermissible value (e.g. 112 degrees), this value will be adjusted before the rotation operation as well (112 degrees will become 90 degrees).</p>
         
      • pageOrientation

        protected PageOrientationType pageOrientation
         <?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">Used to select pages based on their orientation within the specified page range:
                                         <ul><li>any = All pages</li><li>portrait = All pages in portrait format</li><li>landscape = All pages in landscape format</li></ul></p>
         
      • pageGroup

        protected PageGroupType pageGroup
         <?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">Used to select pages based on their page number within the specified page range:
                                         <ul><li>all = All pages</li><li>even = All pages with an even page number</li><li>odd = All pages with an odd page number</li></ul></p>
         
      • orientationDetectMode

        protected OrientationDetectionType orientationDetectMode
         <?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">Selects which criteria to use to determine the orientation (portrait/landscape) of pages (see also "pageOrientation"):
                                         <ul><li>value = Based solely on the page rotation value entered in the PDF.</li><li>dimensions = Based on the ratio of the page dimensions to each other.</li></ul></p>
         
    • Constructor Detail

      • RotateType

        public RotateType()
    • Method Detail

      • 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 rotated. 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 is String
        See Also:
        getPages()
      • isSetPages

        public boolean isSetPages()
      • getDegrees

        public int getDegrees()
         <?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">Used to specify the clockwise rotation in degrees. The rotation is always in 90-degree increments (0, 90, 180, 270, 360). Deviating values will always be rounded down to the next lower increment (e.g.: 32 degrees will become 0 degrees and 101 degrees will become 90 degrees). Once the rotation is completed, the new value will be normalized to a range of 0 to 359 degrees. If the page being rotated has an impermissible value (e.g. 112 degrees), this value will be adjusted before the rotation operation as well (112 degrees will become 90 degrees).</p>
         
        Returns:
        possible object is Integer
      • setDegrees

        public void setDegrees​(int value)
        Sets the value of the degrees property.
        Parameters:
        value - allowed object is Integer
        See Also:
        getDegrees()
      • isSetDegrees

        public boolean isSetDegrees()
      • unsetDegrees

        public void unsetDegrees()
      • getPageOrientation

        public PageOrientationType getPageOrientation()
         <?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">Used to select pages based on their orientation within the specified page range:
                                         <ul><li>any = All pages</li><li>portrait = All pages in portrait format</li><li>landscape = All pages in landscape format</li></ul></p>
         
        Returns:
        possible object is PageOrientationType
      • isSetPageOrientation

        public boolean isSetPageOrientation()
      • getPageGroup

        public PageGroupType getPageGroup()
         <?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">Used to select pages based on their page number within the specified page range:
                                         <ul><li>all = All pages</li><li>even = All pages with an even page number</li><li>odd = All pages with an odd page number</li></ul></p>
         
        Returns:
        possible object is PageGroupType
      • isSetPageGroup

        public boolean isSetPageGroup()
      • getOrientationDetectMode

        public OrientationDetectionType getOrientationDetectMode()
         <?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">Selects which criteria to use to determine the orientation (portrait/landscape) of pages (see also "pageOrientation"):
                                         <ul><li>value = Based solely on the page rotation value entered in the PDF.</li><li>dimensions = Based on the ratio of the page dimensions to each other.</li></ul></p>
         
        Returns:
        possible object is OrientationDetectionType
      • isSetOrientationDetectMode

        public boolean isSetOrientationDetectMode()