Root Depth to Soil Layer Access Score
Results
You reached the ${reachedLayer} layer.
`; resultSection.style.display = 'block'; }; window.generatePDF = function () { const { jsPDF } = window.jspdf; const doc = new jsPDF(); const title = "Root Depth to Soil Layer Access Score"; const unit = unitSelect.value; const rootDepth = document.getElementById('rootDepthInput').value; const scoreText = document.getElementById('scoreDisplay').innerText; const layersText = document.getElementById('layerBreakdown').innerText.trim(); const content = ` ${title} ====================== Input: ${rootDepth} ${unit} ${scoreText} ---------------------- ${layersText} ====================== Conversion Note: 1 inch = 2.54 cm `; doc.setFontSize(12); doc.text(content, 10, 20); doc.save("Soil_Layer_Access_Score.pdf"); }; });