The PDF Conversion API seamlessly transforms diverse file formats into PDFs within your web application. It covers HTML, Word, Excel, Presentation, and image files, enhancing compatibility and simplifying document management.
- Click the "Choose File" button to select the file you want to convert.
The following code snippet is used to convert various files to PDF in Angular framework.
- Select any file (e.g., xls, xlsx, docx, html, jpg).
- Choose the "Convert to PDF" option.
- This help to convert Any file format to PDF.
response = await fetch("https://localhost:7019/api/PdfConversion/ConvertToPdf", {
method: 'POST',
body: formData
})
- Select the Excel file (e.g., xls, xlsx).
- Choose the "Convert Excel to PDF" option.
response = await fetch("https://localhost:7019/api/PdfConversion/ExcelToPdf", {
method: 'POST',
body: formData
})
- Select the Word document.
- Choose the "Convert Word to PDF" option.
response = await fetch("https://localhost:7019/api/PdfConversion/WordToPdf", {
method: 'POST',
body: formData
})
- Select the presentation file (e.g., pptx).
- Choose the "Convert Pptx to PDF" option.
response = await fetch("https://localhost:7019/api/PdfConversion/PptxToPdf", {
method: 'POST',
body: formData
})
- Select the HTML file.
- Choose the "Convert HtML to PDF" option.
response = await fetch("https://localhost:7019/api/PdfConversion/HtmlToPdf", {
method: 'POST',
body: formData
})
- Select the image file (e.g., JPEG, PNG,JPG).
- Choose the "Convert Image to PDF" option.
response = await fetch("https://localhost:7019/api/PdfConversion/ImageToPdf", {
method: 'POST',
body: formData
})
By incorporating the PDF Conversion API into your web application, you empower your platform with the capability to effortlessly bridge the gap between different file formats, ensuring seamless compatibility and accessibility for your users. This versatile API acts as a catalyst, streamlining the process of converting content from HTML, Word, Excel, Presentation, and image files into the standardized PDF format.