Update index.html
Browse files- index.html +5 -1
index.html
CHANGED
|
@@ -1515,7 +1515,11 @@
|
|
| 1515 |
|
| 1516 |
try {
|
| 1517 |
const pres = new PptxGenJS();
|
| 1518 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1519 |
|
| 1520 |
const pageWidth = 8.27;
|
| 1521 |
const pageHeight = 11.69;
|
|
|
|
| 1515 |
|
| 1516 |
try {
|
| 1517 |
const pres = new PptxGenJS();
|
| 1518 |
+
|
| 1519 |
+
// Fix for Error: UNKNOWN-LAYOUT
|
| 1520 |
+
// Explicitly define the layout size (A4 in inches)
|
| 1521 |
+
pres.defineLayout({ name: 'A4', width: 8.27, height: 11.69 });
|
| 1522 |
+
pres.layout = 'A4';
|
| 1523 |
|
| 1524 |
const pageWidth = 8.27;
|
| 1525 |
const pageHeight = 11.69;
|