PDF Export

Hi, we are currently using version 1.0.4.2 of Doconut. How can we export to PDF with this version or do we need to upgrade?

Thank you.

Hi @timchimento

Thank you for your question.

With Doconut, you can already export a document to PDF using the ExportToPdf() method. Below is a simple example for an ASP .NET MVC (.NET Framework) project:

var exportBytes = document.ExportToPdf();

var fileName = $"{DateTime.Now.Ticks}-Export.pdf";

System.IO.File.WriteAllBytes(
    Server.MapPath($"~/files/{fileName}"),
    exportBytes
);

This will generate the PDF on the server and store it in your /files folder.

That said, if you are planning to extend your conversion capabilities beyond PDF (for example: DOCX, XLSX, PPTX, images, etc.), we strongly recommend upgrading to the latest version of Doconut and using our new Converter Plugin, which is specifically designed for multi-format document conversion:

:point_right: Doconut Viewer Plugin - Converter

Upgrading will also ensure you benefit from the latest performance improvements, security updates, and new features.

If you need any help, feel free to let us know.

Thank you for your help. That worked great!

1 Like

Hi @timchimento,

Great to hear that it worked!
If you have any other questions or need help with upgrading to the Converter Plugin, feel free to open a new thread anytime.