SVAR Blog Release, Svelte, Gantt, PRO

SVAR Svelte Gantt PRO v2.5: Export to PDF, PNG, Excel & MS Project

 

Olga Tashlikovich

Jan 22 · 4 min read

SVAR Svelte Gantt PRO v2.5: Export to PDF, PNG, Excel & MS Project

We’re happy to announce SVAR Svelte Gantt v2.5, a major release that brings one of the most requested features - comprehensive export functionality, along with MS Project import support and enhanced summary task automation.

Export Feature

The new export feature, available exclusively in our PRO Edition, enables you to save your Gantt charts in multiple formats:

  • PDF – multi-page document with headers/footers
  • PNG – high-quality images of defined size
  • Excel – spreadsheet format of tabular data or timeline sheet
  • MS Project – import & export are supported for seamless integration with Microsoft Project

With version 2.5, you can now:

  • Generate printable project timelines
  • Share project snapshots as images
  • Exchange data with Excel and Microsoft Project
  • Integrate SVAR Svelte Gantt into enterprise reporting workflows

Two Export Approaches

We’ve designed the export functionality with flexibility in mind. The export service is available as:

  • Docker container
  • Go source code for easy deployment.

Backend Service Export

Our server-side export solution ensures consistent, high-quality output across all browsers. For development and testing, we provide a demo server at: https://export.svar.dev

The SVAR Gantt export service allows you to set up what exported files will look like. This is what you can configure:

  • Apply custom styling during the export process
  • Override Gantt configurations specifically for export output
  • For PDF: Configure paper sizes, orientations, add custom headers/footers
  • For Excel: Choose between simple tabular data or visual timeline modes

When you’re ready for production, you can deploy your own instance of the export service with complete control over performance and availability (available only to PRO users).

Client-Side Export

In addition to server-side export, for MS Project XML format, you can export data directly in the browser without any backend infrastructure. The client-side approach is perfect for quick exports and offline scenarios.

Getting Started with Export

Adding export functionality to your Gantt chart is easy. With just a few lines of code, you can enable your users to download their project timelines in their preferred format.

Here’s a quick example of exporting to PDF:

<script>
import { Gantt, version } from "@svar/svelte-gantt";
const gantt = $state(null);
function exportToPDF() {
gantt.exec("export-data", {
url: "https://export.svar.dev/gantt/" + version,
format: "pdf",
fileName: "project-timeline"
});
}
</script>
<Gantt bind:this={gantt} />
<button onclick={exportToPDF}>Export to PDF</button>

That’s it! The same simple API works for PNG, Excel, and MS Project formats – just change the format parameter. Visit documentation for more details.

Import for MS Project

One of the standout features in v2.5 is the ability to import your existing MS Project files directly into SVAR Svelte Gantt. This makes migration from Microsoft Project seamless and straightforward.

The import functionality uses import-data action. You’ll need to handle the file upload part yourself - create a custom upload control, read the file contents to get an XML string, and pass it to the import-data action which parses it into tasks and links:

<script>
import { Gantt } from "@svar/svelte-gantt";
let api = $state();
function importMSProject() {
// your uploader control
const file = document.getElementById("import-file").files[0];
const reader = new FileReader();
reader.onload = e => {
const xml = e.target.result;
api.exec("import-data", {
data: xml,
});
};
reader.readAsText(file);
}
</script>
<Gantt bind:this={api}/>

This MS Project support ensures you can easily move projects between SVAR Gantt and Microsoft Project, making it ideal for teams working in mixed environments.

Summary Tasks Automation

Version 2.5 also brings improvements to summary task handling, another PRO feature. The summary property now provides intelligent automation:

  • Auto-calculation – Summary task progress is automatically calculated based on the progress of child tasks
  • Auto-conversion – Regular tasks are automatically converted to summary tasks when child tasks are added

These enhancements reduce manual work and ensure your project hierarchy stays accurate as tasks evolve. Find more info in the related documentation.

Try the PRO Edition

Export, import, and advanced summary task features are all part of SVAR Svelte Gantt PRO.

Get a free 30-day trial today to explore these powerful export & import capabilities for your project management applications. Give your users the flexibility to share their project timelines in any format they need.