Fakultas Ilmu Komputer UI

Commit e0d21704 authored by Nabilah Adani's avatar Nabilah Adani
Browse files

[CHORES]fixing file pdf

parent 47ce9ac4
Pipeline #81760 passed with stages
in 4 minutes and 23 seconds
......@@ -143,10 +143,10 @@ const image2pdf = (imageType: string, type: string, key: string, dataType: stri
const writeInfoCases = (doc: jsPDF) => {
doc.setFontSize(20);
doc.setFont("arial", "light");
doc.text("Jumlah : " + caseP, 90, 35, {align:"center"});
doc.text("Jumlah : " + caseN, 145, 35, {align:"center"});
doc.text("Jumlah : " + caseU, 200, 35, {align:"center"});
doc.setFont("arial", "bold");
doc.text(caseP, 90, 35, {align:"center"});
doc.text(caseN, 145, 35, {align:"center"});
doc.text(caseU, 200, 35, {align:"center"});
}
const writeInfoCaseP = (doc: jsPDF) => {
......@@ -201,12 +201,12 @@ const image2pdf = (imageType: string, type: string, key: string, dataType: stri
doc.setFontSize(20);
doc.setFont("arial", "bold");
if (key === "Tanggal")
doc.text("Total Kasus : " + total, pageWidth/2, 155, {align:"center"})
doc.text("Total Keseluruhan : " + total + " Kasus" , pageWidth/2, 155, {align:"center"})
else
if (chartType)
doc.text("Total : " + total + " Kasus", pageWidth/2, 140, {align:"center"})
doc.text("Total Keseluruhan : " + total + " Kasus", pageWidth/2, 140, {align:"center"})
else
doc.text("Total : " + total + " Kasus", pageWidth/2, 150, {align:"center"})
doc.text("Total Keseluruhan : " + total + " Kasus", pageWidth/2, 150, {align:"center"})
}
const writeTextToPDF = (doc: jsPDF) => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment