Package com.dynamicpdf.api
Class PdfResource
java.lang.Object
com.dynamicpdf.api.Resource
com.dynamicpdf.api.PdfResource
Represents a pdf resource.
-
Constructor Summary
ConstructorsConstructorDescriptionPdfResource(byte[] value)Initializes a new instance of thePdfResourceclass.PdfResource(byte[] value, String resourceName)Initializes a new instance of thePdfResourceclass.PdfResource(InputStream data)Initializes a new instance of thePdfResourceclass.PdfResource(InputStream data, String resourceName)Initializes a new instance of thePdfResourceclass.PdfResource(String filePath)Initializes a new instance of thePdfResourceclass.PdfResource(String filePath, String resourceName)Initializes a new instance of thePdfResourceclass. -
Method Summary
Methods inherited from class com.dynamicpdf.api.Resource
getResourceName, setResourceName
-
Constructor Details
-
PdfResource
Initializes a new instance of thePdfResourceclass.- Parameters:
filePath- The pdf file path.resourceName- The name of the resource.
-
PdfResource
Initializes a new instance of thePdfResourceclass.- Parameters:
filePath- The pdf file path.
-
PdfResource
Initializes a new instance of thePdfResourceclass.- 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 thePdfResourceclass.- Parameters:
value- The byte array of the pdf file.
-
PdfResource
Initializes a new instance of thePdfResourceclass.- Parameters:
data- The stream of the pdf file.resourceName- The name of the resource.
-
PdfResource
Initializes a new instance of thePdfResourceclass.- Parameters:
data- The stream of the pdf file.
-