Package com.dynamicpdf.api
Class PdfText
java.lang.Object
com.dynamicpdf.api.Endpoint
com.dynamicpdf.api.PdfText
Represents the pdf text endpoint.
-
Constructor Summary
ConstructorDescriptionPdfText(PdfResource resource)
Initializes a new instance of thePdfText
class.PdfText(PdfResource resource, int startPage, int pageCount)
Initializes a new instance of thePdfText
class. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the page count.int
Gets the start page.process()
Process the pdf resource to get pdf's text.Process the pdf resource to get pdf's text.void
setPageCount(int value)
Sets the page count.void
setStartPage(int value)
Sets the start page.Methods inherited from class com.dynamicpdf.api.Endpoint
createRequestSpecification, getApiKey, getBaseUrl, getDefaultApiKey, getDefaultBaseUrl, setApiKey, setBaseUrl, setDefaultApiKey, setDefaultBaseUrl
-
Constructor Details
-
PdfText
Initializes a new instance of thePdfText
class.- Parameters:
resource
- The image resource of typePdfResource
startPage
- The start page.pageCount
- The page count.
-
PdfText
Initializes a new instance of thePdfText
class.- Parameters:
resource
- The image resource of typePdfResource
-
-
Method Details
-
getStartPage
public int getStartPage()Gets the start page.- Returns:
- The start page.
-
setStartPage
public void setStartPage(int value)Sets the start page.- Parameters:
value
- The start page.
-
getPageCount
public int getPageCount()Gets the page count.- Returns:
- The page count.
-
setPageCount
public void setPageCount(int value)Sets the page count.- Parameters:
value
- The page count.
-
process
Process the pdf resource to get pdf's text.PdfTextResponse
- Returns:
- Pdf Text Response
-
processAsync
Process the pdf resource to get pdf's text.- Returns:
- collection of
PdfTextResponse
as multithreading tasksCompletableFuture
.
-