public class

GeneratePagesTask

extends AsyncTask<Params, Progress, Result>
java.lang.Object
   ↳ android.os.AsyncTask<Params, Progress, Result>
     ↳ com.pdftron.pdf.asynctask.GeneratePagesTask

Class Overview

A class that asynchronously either creates a document with empty pages or inserts empty pages into an existing document

Summary

[Expand]
Inherited Fields
From class android.os.AsyncTask
Public Constructors
GeneratePagesTask(Context context, int numOfPages, String title, AddPageDialogFragment.PageSize pageSize, AddPageDialogFragment.PageOrientation pageOrientation, AddPageDialogFragment.PageColor pageColor, AddPageDialogFragment.PageType pageType, double pageWidth, double pageHeight, boolean shouldCreateNewPdf, AddPageDialogFragment.OnCreateNewDocumentListener onCreateNewDocumentListener, AddPageDialogFragment.OnAddNewPagesListener onAddNewPagesListener)
Class constructor
[Expand]
Inherited Methods
From class android.os.AsyncTask
From class java.lang.Object

Public Constructors

public GeneratePagesTask (Context context, int numOfPages, String title, AddPageDialogFragment.PageSize pageSize, AddPageDialogFragment.PageOrientation pageOrientation, AddPageDialogFragment.PageColor pageColor, AddPageDialogFragment.PageType pageType, double pageWidth, double pageHeight, boolean shouldCreateNewPdf, AddPageDialogFragment.OnCreateNewDocumentListener onCreateNewDocumentListener, AddPageDialogFragment.OnAddNewPagesListener onAddNewPagesListener)

Class constructor

Parameters
context The context
numOfPages The number of pages which should be generated
title The title of the document
pageSize The page size
pageOrientation The page orientation
pageColor The page color
pageType The type of page
pageWidth The width size of page
pageHeight The height size of page
shouldCreateNewPdf Whether should create a new PDF or not
onCreateNewDocumentListener The listener to AddPageDialogFragment.OnCreateNewDocumentListener
onAddNewPagesListener The listener to AddPageDialogFragment.OnAddNewPagesListener