Memuat
Memuat
Automatic PDF Export for laundry
0 views
One click turns the Dashboard sheet into a neat PDF and saves it to Google Drive. The PDF link is written back to the Dashboard.

A PDF report ready to send to clients or managers in one click.
The real project file is available. It is not just the picture above: you get the working file with every formula in place. It can be downloaded after payment, and we send the download link by WhatsApp or email.
ZIP: .xlsx workbook + Apps Script module (.zip)
| Cell | Formula | What it does |
|---|---|---|
| B24 | =SUM(Data!G2:G61) | Total shown in the report. |
| B25 | =COUNTA(Data!B2:B61) | Transactions in the report. |
| B26 | ="Laporan per "&TEXT(TODAY(),"DD MMMM YYYY") | Dated report title. |
| B27 | =IFERROR(AVERAGE(Data!G2:G61),0) | Average per transaction. |
The script is delivered as a separate Code.gs file inside the ZIP. Paste it into Extensions, Apps Script. A short excerpt:
function eksporPdfDashboard() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName("Dashboard");
var url = "https://docs.google.com/spreadsheets/d/" + ss.getId() + "/export?" +
"format=pdf&gid=" + sheet.getSheetId() +
"&size=A4&portrait=false&fitw=true&gridlines=false";
var token = ScriptApp.getOAuthToken();
var respon = UrlFetchApp.fetch(url, {
headers: { Authorization: "Bearer " + token }
});
var nama = "Dashboard " + Utilities.formatDate(new Date(), "Asia/Jakarta", "yyyy-MM-dd") + ".pdf";
var berkas = DriveApp.createFile(respon.getBlob().setName(nama));
sheet.getRange("B28").setValue(berkas.getUrl());
SpreadsheetApp.getActive().toast("PDF tersimpan: " + nama);
}Columns of the Data sheet:
| Laundry Service | Price |
|---|---|
| Wash and Iron per Kg | 7,000 |
| Wash and Fold per Kg | 5,000 |
| Iron Only per Kg | 4,000 |
| Express 6 Hour Wash per Kg | 12,000 |
| Blanket per Piece | 25,000 |
| Bed Sheet Set | 20,000 |
| Suit or Blazer | 30,000 |
| Sneakers Cleaning | 35,000 |
| Large Stuffed Toy | 25,000 |
| Pickup and Delivery | 10,000 |
The sample data is synthetic.
Yes. The picture above is only a preview. After payment we send the download link of the real project file (a ZIP containing the .xlsx workbook and the macro module) by WhatsApp or email.
No. The sample data is synthetic and only shows how the formulas behave. Replace it with your own data and the formulas keep working.
Yes, as a separate order. Message us on WhatsApp with a short description of your columns and what you want to see.
Sample data is synthetic. Google Sheets is a trademark of Google LLC.
Back to Google Sheets portfolio