Package com.dynamicpdf.api
Class PdfResponse
java.lang.Object
com.dynamicpdf.api.Response
com.dynamicpdf.api.PdfResponse
Represents the pdf response.
-
Constructor Summary
ConstructorDescriptionInitializes a new instance of thePdfResponse
class.PdfResponse(byte[] pdfContent)
Initializes a new instance of thePdfResponse
class. -
Method Summary
Methods inherited from class com.dynamicpdf.api.Response
getErrorId, getErrorJson, getErrorMessage, getIsSuccessful, getStatusCode
-
Constructor Details
-
PdfResponse
public PdfResponse()Initializes a new instance of thePdfResponse
class. -
PdfResponse
public PdfResponse(byte[] pdfContent)Initializes a new instance of thePdfResponse
class.- Parameters:
pdfContent
- The byte array of pdf content.
-
-
Method Details
-
getContent
public byte[] getContent()Sets the content od pdf.- Returns:
- The content od pdf.
-