Lashtw commited on
Commit
c1c7079
·
verified ·
1 Parent(s): bf43006

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +5 -1
index.html CHANGED
@@ -1515,7 +1515,11 @@
1515
 
1516
  try {
1517
  const pres = new PptxGenJS();
1518
- pres.layout = 'A4'; // 8.27 x 11.69 inches
 
 
 
 
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;