com.aspose.words

Class HtmlFixedPageHorizontalAlignment

  • java.lang.Object
    • com.aspose.words.HtmlFixedPageHorizontalAlignment
public class HtmlFixedPageHorizontalAlignment 
extends java.lang.Object

Utility class containing constants. Specifies the horizontal alignment for pages in output HTML document.

Example:

Shows how to set the horizontal alignment of pages in HTML file.
Document doc = new Document(getMyDir() + "Rendering.docx");

HtmlFixedSaveOptions htmlFixedSaveOptions = new HtmlFixedSaveOptions();
{
    htmlFixedSaveOptions.setPageHorizontalAlignment(pageHorizontalAlignment);
}

doc.save(getArtifactsDir() + "HtmlFixedSaveOptions.HorizontalAlignment.html", htmlFixedSaveOptions);

Field Summary
static final intLEFT = 0
Align pages to the left.
static final intCENTER = 1
Center pages. This is the default value.
static final intRIGHT = 2
Align pages to the right.
 

    • Field Detail

      • LEFT = 0

        public static final int LEFT
        Align pages to the left.
      • CENTER = 1

        public static final int CENTER
        Center pages. This is the default value.
      • RIGHT = 2

        public static final int RIGHT
        Align pages to the right.