SudoSOS Back-end API / internal/pdf/transfer-pdf-service / TransferPdfService
Class: TransferPdfService ​
Turns an entity into HTML and PDF bytes. One subclass per document type.
Extends ​
Constructors ​
Constructor ​
ts
new TransferPdfService(manager?): TransferPdfService;Parameters ​
| Parameter | Type |
|---|---|
manager? | EntityManager |
Returns ​
TransferPdfService
Inherited from ​
Properties ​
| Property | Modifier | Type | Default value | Overrides | Inherited from |
|---|---|---|---|---|---|
manager | protected | EntityManager | undefined | - | PdfService.manager |
render | public | (options) => string | createTransferPdf | PdfService.render | - |
Methods ​
compile() ​
ts
protected compile(params): Promise<Buffer<ArrayBufferLike>>;Parameters ​
| Parameter | Type |
|---|---|
params | ITransferPdf |
Returns ​
Promise<Buffer<ArrayBufferLike>>
Inherited from ​
configureLogger() ​
ts
protected configureLogger(logger): void;Parameters ​
| Parameter | Type |
|---|---|
logger | Logger |
Returns ​
void
Inherited from ​
getParameters() ​
ts
getParameters(entity): Promise<ITransferPdf>;Parameters ​
| Parameter | Type |
|---|---|
entity | Transfer |
Returns ​
Promise<ITransferPdf>
Overrides ​
html() ​
ts
html(entity): Promise<Buffer<ArrayBufferLike>>;Parameters ​
| Parameter | Type |
|---|---|
entity | Transfer |
Returns ​
Promise<Buffer<ArrayBufferLike>>
Inherited from ​
output() ​
ts
output(entity, fileType): Promise<Buffer<ArrayBufferLike>>;Parameters ​
| Parameter | Type |
|---|---|
entity | Transfer |
fileType | ReturnFileType |
Returns ​
Promise<Buffer<ArrayBufferLike>>
Inherited from ​
pdf() ​
ts
pdf(entity): Promise<Buffer<ArrayBufferLike>>;Parameters ​
| Parameter | Type |
|---|---|
entity | Transfer |
Returns ​
Promise<Buffer<ArrayBufferLike>>