Text to PDF Conversion
Experience seamless text-to-PDF conversion with our user-friendly Text To PDF Converter. This tool, neatly encapsulated in a clean and responsive design, empowers you to effortlessly transform your text into polished PDF documents.
Key Features:
- Intuitive Interface: A straightforward interface ensures easy text input and a hassle-free conversion process.
- Stylish Design: The converter is presented in a modern, stylish design, enhancing both functionality and visual appeal.
- Responsive Layout: Designed for versatility, the tool's responsive layout adapts to various screen sizes for optimal user experience.
- Efficient PDF Generation: With just a click, generate PDFs from your entered text, ready for download.
Enhance your document workflow and elevate your digital experience. Try our Text To PDF Converter today!
Scripts
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Text To PDF Converter</title>
<style>
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f0f0f0; margin: 0; display: flex; align-items: center; justify-content: center; height: 100vh; }
#Main-Container { background-color: #fff; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); overflow: hidden; width: 60%; max-width: 600px; }
h1 { background-color: #4CAF50; color: #fff; padding: 20px; margin: 0; }
p { margin: 20px; color: #333; }
#Text-Input { width: calc(100% - 40px); font-size: 14px; padding: 10px; border: 1px solid #ddd; border-radius: 5px; margin: 20px; box-sizing: border-box; resize: none; }
#Pdf-Button { background-color: #4CAF50; color: #fff; border: none; border-radius: 5px; padding: 10px 20px; font-size: 14px; cursor: pointer; margin: 20px; transition: background-color 0.3s; }
#Pdf-Button:hover { background-color: #45a049; }
</style>
</head>
<body>
<table align="center"><tr><td>
<div id="Main-Container">
<h1>Text To PDF Converter</h1>
<p>Enter your text below and click the button to generate a PDF:</p>
<textarea id="Text-Input" placeholder="Type your text here..." rows="8"></textarea><br />
<button id="Pdf-Button" onclick="GeneratePDF()">Generate PDF</button>
</div>
</td></tr></table>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.min.js"></script>
<script>
function GeneratePDF() { var doc = new jsPDF(); var text = document.getElementById('Text-Input').value; doc.text(text, 20, 20); doc.save('Output.pdf'); }
</script>
</body>
</html>