Some test text!
AddPageDialogFragment users are able to add new pages to an existing document, or to create a new document with new pages. The new pages can have various types, sizes and colors.
Add page dialog from left to right: dialog for creating new document, dialog for adding pages to an existing document.
The following options are available for creating pages:
Currently, the following types of page are supported in this dialog:
Blank: a page with nothing on it.
Lined: a page with horizontal lines on it.
Grid: a page with a superimposed grid on it.
Graph: a page with Cartesian axes on it.
Music: a page set up with modern staff notation for notating music.
Currently, the following page sizes are supported in this dialog:
Customoption is only available when adding new pages to an existing PDF document, not when a new document is being created. The page size of
Customoption is specified as here: add pages to an existing document
The page background can be set to the following colors:
To create a new PDF document, call
newInstance() and override the
OnCreateNewDocumentListener interface. The implementation of
onCreateNewDocument(PDFDoc, String) should create a new file with the given title normalized to a ".pdf" extension.
To add pages to an existing PDF, create a new instance of the add page dialog fragment using
newInstance(double, double) and provide the valid page width and page height arguments.These arguments will be used only if the user selects the
Custom option in the Page
Size dropdown. You also must implement the
OnAddNewPagesListener interface and override
onAddNewPages(Page), in which the implementation should add the provided pages to the document.