Class PdfResource

java.lang.Object
com.dynamicpdf.api.Resource
com.dynamicpdf.api.PdfResource

public class PdfResource extends Resource
Represents a pdf resource.
  • Constructor Details

    • PdfResource

      public PdfResource(String filePath, String resourceName)
      Initializes a new instance of the PdfResource class.
      Parameters:
      filePath - The pdf file path.
      resourceName - The name of the resource.
    • PdfResource

      public PdfResource(String filePath)
      Initializes a new instance of the PdfResource class.
      Parameters:
      filePath - The pdf file path.
    • PdfResource

      public PdfResource(byte[] value, String resourceName)
      Initializes a new instance of the PdfResource class.
      Parameters:
      value - The byte array of the pdf file.
      resourceName - The name of the resource.
    • PdfResource

      public PdfResource(byte[] value)
      Initializes a new instance of the PdfResource class.
      Parameters:
      value - The byte array of the pdf file.
    • PdfResource

      public PdfResource(InputStream data, String resourceName)
      Initializes a new instance of the PdfResource class.
      Parameters:
      data - The stream of the pdf file.
      resourceName - The name of the resource.
    • PdfResource

      public PdfResource(InputStream data)
      Initializes a new instance of the PdfResource class.
      Parameters:
      data - The stream of the pdf file.