Class PdfText

java.lang.Object
com.dynamicpdf.api.Endpoint
com.dynamicpdf.api.PdfText

public class PdfText extends Endpoint
Represents the pdf text endpoint.
  • Constructor Details

    • PdfText

      public PdfText(PdfResource resource, int startPage, int pageCount)
      Initializes a new instance of the PdfText class.
      Parameters:
      resource - The image resource of type PdfResource
      startPage - The start page.
      pageCount - The page count.
    • PdfText

      public PdfText(PdfResource resource)
      Initializes a new instance of the PdfText class.
      Parameters:
      resource - The image resource of type PdfResource
  • 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

      public PdfTextResponse process()
      Process the pdf resource to get pdf's text.

      PdfTextResponse

      Returns:
      Pdf Text Response
    • processAsync

      public CompletableFuture<PdfTextResponse> processAsync()
      Process the pdf resource to get pdf's text.
      Returns:
      collection of PdfTextResponse as multithreading tasks CompletableFuture.