Class PageTemplate
-
- All Implemented Interfaces:
public final class PageTemplate
Can be used with DialogNewPageFactory and NewPageDialog to provide additional templates for the user to choose when creating new pages.
-
-
Constructor Summary
Constructors Constructor Description PageTemplate(PdfDocument sourceDocument, int pageIndex, String templateName, Drawable previewImage)
Creates a new PageTemplate from existing document page. PageTemplate(PagePattern pagePattern, String templateName, Drawable previewImage)
Creates a new PageTemplate from page tiling pattern.
-
Method Summary
Modifier and Type Method Description -
-
Constructor Detail
-
PageTemplate
PageTemplate(PdfDocument sourceDocument, int pageIndex, String templateName, Drawable previewImage)
Creates a new PageTemplate from existing document page.- Parameters:
sourceDocument
- The document to use to create the new page.pageIndex
- The page of the source document to use for the new page.templateName
- Title shown to the user when selecting the page templatepreviewImage
- Preview image shown to the user when selecting a new page template.
-
PageTemplate
PageTemplate(PagePattern pagePattern, String templateName, Drawable previewImage)
Creates a new PageTemplate from page tiling pattern.- Parameters:
pagePattern
- Tiled Page pattern to use to create new page.templateName
- Title shown to the user when selecting the page templatepreviewImage
- Preview image shown to the user when selecting a new page template.
-
-
-
-