Skip to content

Commit

Permalink
#39 remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
arawinters committed Jun 19, 2019
1 parent 0a7ae73 commit c7cad7f
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/lib/services/sz-pdf-util.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,30 +57,6 @@ export class SzPdfUtilService {
});
});
}
/**
* Create a downloadable PDF from an entity search result.
*/
public createPdfFromEntitySearch(data: SzEntityData): void{
console.log('SzPdfUtilService.createPdfFromAttributeSearch: ', data);

const doc = new jsPDF();
const entity = data.resolvedEntity;
if(data && data.resolvedEntity) {
let pIndex = 0;
let pLineY = 10;
const pMarginLeft = 10;
const pLineHeight = 12;
const rNameHeight = 20;
const rAddrHeight = 12;
const resultSpacing = 20;
const pHeadHeight = 20;

doc.setFontSize(rNameHeight);
doc.text(entity.entityName, pMarginLeft, pLineY); pLineY = pLineY+(rNameHeight - (rNameHeight / 2));

doc.save(`${entity.entityName.toLowerCase().replace(' ','-')}-${entity.entityId}.pdf`);
}
}
/**
* Create a downloadable PDF from a attribute search result.
*/
Expand Down

0 comments on commit c7cad7f

Please sign in to comment.