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