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() + "Bookmarks.docx");
HtmlFixedSaveOptions htmlFixedSaveOptions = new HtmlFixedSaveOptions();
htmlFixedSaveOptions.setPageHorizontalAlignment(HtmlFixedPageHorizontalAlignment.LEFT);
doc.save(getArtifactsDir() + "HtmlFixedSaveOptions.HorizontalAlignment.html", htmlFixedSaveOptions);
Field Summary |
static final int | LEFT = 0 | |
Align pages to the left.
|
static final int | CENTER = 1 | |
Center pages. This is the default value.
|
static final int | RIGHT = 2 | |
Align pages to the right.
|
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.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.