How draw.io diagrams in XWiki work with the Diagram Application
Teams that document architecture and processes in XWiki usually want diagrams edited in the same page where the explanation lives. The Diagram Application (Pro) creates draw.io diagrams and flowcharts inside XWiki pages. It requires XWiki 14.10, is licensed under the LGPL 2.1, and is included in XWiki Pro. Before you plan the rollout, confirm that your XWiki version meets the 14.10 requirement and that the Pro license covers the application, since it is also sold separately from the Pro bundle.
Once installed, authors create a diagram from the page, save it as a diagram attachment, and reuse it through the Diagram macro, which embeds the diagram in other pages without copying it. The application also imports Gliffy diagrams, so existing Gliffy files can be moved into XWiki instead of being redrawn. Export options cover background, size, format, zoom, DPI and border, which matter when a diagram must appear in a printed procedure or a PDF handed to an auditor. Diagram data is stored on your self-hosted XWiki instance, and the export options produce files there rather than through an outside service.
The editor itself is the draw.io editor component, and its licensing is separate from the LGPL 2.1 terms of the XWiki application. The draw.io source code in the jgraph/drawio repository is under the Apache License 2.0, while icon sets, stencil libraries and templates have their own terms. Ask your legal or licensing team to review those terms before you ship shape libraries or templates inside a regulated deployment. Also check the draw.io documentation on self-hosting, because the editor reaches out for some features, and confirm which ones your configuration allows in your environment.
What you need before installing the Diagram Application
The Diagram Application depends on a supported XWiki version, a licence decision, a choice of where the draw.io editor runs, and a plan for export. Work through these cards before you request an install, because each one changes what the installation looks like.
XWiki version and compatibility
The Diagram Application requires XWiki 14.10 or later. Choose between the stable line and the long term support line first, since that decision sets the version the extension must match. Confirm the current compatibility statement for your exact XWiki version on the extension's store page before planning the upgrade path, because compatibility lists change between releases.
Diagram Application pageLicence or XWiki Pro entitlement
The Diagram Application is sold per application, priced from 95 EUR per year for 10 users with Basic support, and it is included in XWiki Pro. Decide whether your organization buys it alone or as part of XWiki Pro, and ask the vendor for the user tier that matches your headcount. Ask whether the price is recurring and what the support level covers.
Access to the XWiki Store
The extension is delivered through the XWiki Store, so the people who install and update it need an account with access to the purchased extension. Confirm who holds the account, how licence keys are issued, and whether the install server can reach the store during installation or whether files must be staged offline in an air-gapped network.
Browser and network requirements
The draw.io editor runs in the user's browser, so users need a supported modern browser and network routes to the editor's resources. Test the editor from the same network segments, proxies and VPN paths your staff use. If your policy blocks outbound connections, list every host the editor loads and get them approved before rollout.
Hosted editor or self-hosted draw.io
Decide whether diagram editing uses the public draw.io service or a draw.io instance you run from the official jgraph/drawio Docker image, which is based on Tomcat. A self-hosted editor keeps the editing service in your infrastructure, but you own patching, TLS and updates. Ask your security team to review data flows for either option, since hosted features such as export and collaboration process diagrams on third-party servers.
Self-hosting draw.io docsExport server decision
The jgraph/drawio Docker image does not include an export server. Without one configured, PDF export uses the browser's print dialog, and no diagram data leaves the server for export. Decide early whether users can accept print-dialog PDFs or whether you need a configured export service, and document that choice in the rollout plan.
Installing the Diagram Application and embedding the first diagram
This sequence takes an XWiki administrator from a confirmed XWiki version to a working draw.io diagram on a wiki page, with the editor served from infrastructure you control and each step checked before the next one starts.
Confirm the XWiki version and license needs
Check the XWiki version that runs in your environment against the requirement for the Diagram Application, which is XWiki 14.10 or later according to the XWiki Store listing. Confirm whether you will install it as a standalone extension or as part of XWiki Pro, since the Diagram Application is included in XWiki Pro and also sold separately with a per-year price tied to user count. Record the decision and the license terms in your change record. The step is done when you have a written version number and a license decision that the wiki administrator and the procurement owner both accept.
Install the Diagram Application from the XWiki Store
As a wiki administrator, open the Extension Manager on a staging copy of your wiki and install the Diagram Application from the XWiki Store. Apply the change in staging before production, and note which extension version was installed. Restart the application only when the installer asks for it. The step is done when the extension appears in the installed extensions list with its version and status shown as active, and the wiki starts without errors in the logs.
Point the editor at a self-hosted draw.io server
Deploy the official jgraph/drawio Docker image on a host inside your network, or choose draw.io Desktop if your policy allows local installs only. The Docker image is based on Tomcat and tracks the production app, but it does not include an export server, so PDF export will use the browser print dialog unless you configure one. Set the editor URL in the Diagram Application configuration so that browsers load the editor from your server. The step is done when a test request to the editor URL returns the draw.io interface from your own host and your network team has confirmed which outbound addresses the browser needs.
Create a test diagram and save it to the page
On a sandbox page, create a new diagram from the Diagram Application editor and add a few shapes and a connector. Save the diagram as an attachment on the page so it is stored with the wiki content. Confirm where the diagram data is stored, since draw.io saves diagrams where the user chooses and its privacy material says hosted features process data temporarily on Cloudflare servers, so decide whether those features are allowed before users start working. The step is done when the diagram saves, reloads from the page, and opens again with the same shapes.
Embed the diagram with the Diagram macro
Insert the saved diagram into a second page using the Diagram macro and reference the attachment you created. Render the page in view mode and compare it with the editor view. Check that the diagram appears at the expected size and that links on the page still resolve. The step is done when the macro renders the diagram on the page for a user with view rights and a user without edit rights can see it.
Import a Gliffy file and review the result
Import a Gliffy diagram into the Diagram Application using a test file that your team has exported from Gliffy. draw.io supports Gliffy imports, but layout, styling and any interactive behavior may not match the original, so open the imported diagram side by side with the source. Log every shape or label that changed. The step is done when the diagram opens, the shape count and text are checked against the source, and the list of differences is recorded for the migration owner to review.
Test image and PDF export without outbound calls
Export the test diagram as PNG, SVG and PDF, adjusting the background, size, zoom and DPI options that the Diagram Application provides. Run the PDF export while the browser's network traffic is recorded, and confirm that no request leaves your network for the export. If the PDF path uses the browser print dialog, confirm that it produces an acceptable file. The step is done when each export format opens correctly and the network check shows only traffic to your own servers.
How the editor, XWiki and storage exchange diagram data
The flow starts in the user's browser, which opens a wiki page and loads the draw.io editor from the self-hosted editor inside the organization's boundary. The browser sends the diagram back to XWiki, which stores the diagram file as an attachment and keeps page data in the database. Check that the editor and XWiki both sit inside the boundary, and confirm where export and collaboration run. Hosted export and real-time collaboration are the only paths that leave it, and they stay off unless you turn them on.
Diagram data stays inside the boundary unless hosted features are enabled.
Choosing between a self-hosted draw.io editor and the hosted app
The first decision is whether the draw.io editor that XWiki opens in the browser comes from your own server or from the hosted app at app.diagrams.net. The official jgraph/drawio Docker image is Tomcat based and is kept up to date with the production app, so running it inside your network keeps the editor code under your control and keeps editor traffic on your side of the firewall. The cost is that you own the upgrade cadence, the reverse proxy and TLS, and the monitoring of a second service next to XWiki. Confirm with your platform team who will apply draw.io releases, how quickly, and how a broken editor would be noticed by wiki users.
The data picture differs more than the hosting picture. The draw.io trust page says diagrams are saved where the user chooses, such as on the device or in a connected storage service, and never on draw.io's servers. It also says that hosted export and real-time collaboration process diagrams temporarily on servers run by Cloudflare. The Docker image includes no export server, so PDF export falls back to the browser's print dialog unless you configure one, and in that case no diagram data leaves your server for an export. Before rollout, have your security team confirm which features the wiki will use, whether any hosted export or collaboration path is reachable, and which network egress rules apply to the editor.
Write the chosen design down before pages are migrated, because it sets the export and sharing rules users will follow. Record where the editor is served from, which storage the diagram files go to, whether export runs in the browser or on a server you configure, and who may enable collaboration. Test each path with a diagram that contains no sensitive content, and confirm the result against the vendor documentation for the release you deploy. Your security and compliance leads should review this record and approve it, since they carry the accountability for where diagram content may travel.
Importing diagrams from Gliffy, Visio and Lucidchart
Gliffy diagrams are the simplest case in this topic because the XWiki Diagram Application is designed to import them. The application creates draw.io diagrams inside XWiki pages, so imported Gliffy content becomes a diagram that editors can change in the same place as the rest of the wiki page. Confirm the import behavior against your own sample files before you plan a bulk run, since the supplied material describes the feature but does not document edge cases such as complex shapes or custom styling.
- Application requirement: The Diagram Application requires XWiki 14.10 or later, so confirm your instance version before you plan the import.
- Licensing path: The application is licensed LGPL 2.1 and is included in XWiki Pro, or can be bought separately from the XWiki Store.
- Post-import review: Open each imported diagram in the editor and check labels, connector routing and grouping, because layout can shift during conversion.
- Export after import: Use the export options for background, size, format, zoom, DPI and border if the diagram also needs to appear as an image or PDF.
- Ownership of the source: Keep the original Gliffy exports in a retained archive until reviewers accept the imported diagrams.
Before committing to a Gliffy migration, ask who will check imported diagrams for accuracy and how many diagrams need manual correction.
draw.io handles Visio files through its own import pipeline, and the supported formats are narrower than many teams expect. Modern .vsdx files import directly, while older .vsd and .vst files are converted in the browser. Stencil files (.vssx and .vss) import as shape libraries rather than as diagrams. The draw.io documentation warns that results may differ from the original, so treat Visio imports as a fidelity question rather than a file-format checkbox.
- Supported modern format: .vsdx files import into draw.io, which is the most reliable starting point for Visio content.
- Older binary formats: .vsd and .vst files are converted in the browser, so confirm the converted output on a sample before relying on it.
- Stencils as libraries: .vssx and .vss stencils import as shape libraries that editors can reuse, not as finished diagrams.
- Unsupported XML and Draw files: Visio 2003 to 2010 XML and LibreOffice Draw files are not supported, so convert those sources to a supported format first or recreate them.
- Known losses: Interactive behavior can be lost, and embedded EMF images are not imported, so plan replacement images for affected diagrams.
Before bulk migration, ask which Visio versions and file types appear in your archive and how many depend on interactive behavior or embedded EMF images.
Lucidchart diagrams do not have a file import path in this workflow. The draw.io documentation describes a copy and paste method instead: select everything in Lucidchart with the keyboard shortcut, then paste into the draw.io online editor. This method suits a small number of diagrams, but it moves content through a manual step for each diagram, so it does not scale to a large library without a planned effort for each file.
- Manual transfer: Each diagram is copied and pasted by a person, so count the diagrams before estimating the effort.
- Export to XWiki: After pasting into the draw.io editor, the diagram can be saved and embedded in XWiki pages using the Diagram macro, provided the Diagram Application is installed.
- Verification per diagram: Compare layout, text and connectors against the Lucidchart original, because pasted content may not match exactly.
- Ownership and access: Confirm who holds Lucidchart accounts that can perform the copy, since access to the source may end when licenses change.
- Storage during the move: Diagrams are saved where you choose, so decide on a storage location that meets your data handling rules before pasting sensitive content.
Before starting, ask the owner of each Lucidchart diagram whether it still matters, because retiring unused diagrams often reduces this manual work more than any tool choice.
Whatever the source, a sample review before bulk migration gives you the data to plan the rest of the work. The aim is to find which diagram types convert cleanly, which need manual rebuilding and which should be retired. A sample should include the most common diagram styles, the most complex diagrams, and any diagram that depends on embedded images, interactive links or specific Visio stencils, so the result reflects your real archive rather than a convenient subset.
- Representative selection: Pick diagrams from each department, each source format and each complexity level, including the hardest cases.
- Documented outcomes: Record for each sample whether it imported cleanly, needed minor fixes, lost content or failed.
- Owner sign-off: Ask the diagram owners to confirm that the converted version is accurate enough for their use.
- Rebuild and replacement list: Track diagrams that need redrawing, and images that must be replaced because embedded EMF content did not import.
- Rollback plan: Keep original files until the migrated set is accepted, and set a point at which the source archive can be retired.
Before approving a bulk migration, ask for the sample results in writing and confirm who signs off on the accepted fidelity level.
Mapping diagram files, formats and XWiki objects
This table maps each part of a draw.io diagram workflow in XWiki to where it lives and whether XWiki keeps it or creates it at export time. Read the third column first when planning backups, page reviews and retention. The main takeaway: exported images and PDFs are derived files, so the editable diagram source and the page reference are the items to preserve and version.
| Item | Where it lives | Stored in XWiki or generated |
|---|---|---|
| Diagram source | Editable diagram opened in the Diagram Application editor. Confirm in your version where the source is kept. | Stored in XWiki |
| Exported PNG or SVG | Image written when you export from the editor, then attached to or inserted into a page. | Generated on export |
| Exported PDF | Written on export. The draw.io Docker image has no export server, so PDF export uses the browser print dialog by default. | Generated on export |
| Gliffy input file | Imported once into the editor and converted to a draw.io diagram. Check layout and shapes after import. | Input converted on import |
| Diagram macro reference | Short reference in the page content that displays the diagram from its source. | Stored in XWiki |
| Page version history | Page history records changes to the page content, including macro references. Confirm whether diagram-only edits create a page version in your setup. | Stored in XWiki |
| Export options | Set at export time: background, size, format, zoom, DPI and border. They shape the generated file and are not stored as page data. | Generated on export |
Securing diagrams and the editor in your infrastructure
A draw.io diagram in XWiki is a page or attachment, so its security follows the wiki's rights, the network path to the editor and the licensing of what gets drawn. The cards below cover the decisions to make before architecture diagrams reach production pages.
Editor hosting and network egress
Decide whether the draw.io editor runs from your own server built from the official jgraph/drawio Docker image or from a desktop build. The image does not include an export server, so PDF export falls back to the browser print dialog unless you configure one. Check which hosted features, such as hosted export or real-time collaboration, would send diagram data to Cloudflare-run servers, and block or allow those paths deliberately in your firewall and proxy rules.
Self-hosting docsRights on pages and attachments
Diagrams saved in XWiki inherit the rights of the page or attachment that holds them. Review view, edit and comment rights on spaces that contain architecture material, and confirm that a reader of the page cannot change the diagram source. Test with an account from each audience group, because an open parent space often exposes child pages that were meant to be restricted.
Export and attachment download rights
A diagram exported as an image or PDF, or downloaded as an attachment, can leave the wiki even when the page is restricted. Decide who may export and who may download the source file for sensitive network or data-flow diagrams, and test those rights separately from view rights. Ask the wiki administrator which XWiki rights control attachment download in your version, and record the answer in your access review.
Keeping the editor on the production line
The jgraph/drawio project publishes frequent releases, and the Docker image is kept in step with the production app at app.diagrams.net. Pin the image to a specific tag, track the release notes, and schedule a retest of diagram import and export after each update. Confirm the XWiki Diagram Application version is compatible with your XWiki release before you upgrade either side.
- Minimum XWiki version
- XWiki 14.10
Source license versus content terms
The draw.io source code in the jgraph/drawio repository is licensed under the Apache License 2.0. Icon sets, stencil libraries and templates carry separate terms, so a diagram built from a bundled shape or template may need its own license check before it is published outside your organization. Keep a list of third-party libraries your teams use, and ask counsel to review any that appear in customer-facing material.
Sensitive imports and stencils
Imported Visio and Gliffy files can carry content you did not intend to publish, and Visio imports may lose interactive behavior or embedded EMF images. Review imported diagrams for hidden layers, comments and metadata before they reach a broad audience, and store the original import in a restricted attachment rather than the public page. Confirm which import paths your team will allow.
Common failures when diagrams do not load, import or export
This table lists the failures teams hit most often with the Diagram Application, with the likely cause, a check to run and a fix for each. Work through the rows in order, because a macro that does not render often points to the same installation issue that blocks the editor. Most problems trace back to the wiki's version, the browser's network path to the editor or the difference between a Visio or Gliffy source and what draw.io can read.
| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Diagram macro does not render after install | The Diagram Application was added to a wiki running a version older than the required XWiki 14.10, or the extension was installed on one wiki but the page is on another | Confirm the XWiki version in the administration page and that the extension appears in the installed extensions list for the wiki where the page lives | Upgrade XWiki to at least 14.10, then reinstall or reindex the extension on the affected wiki and clear the page cache |
| Editor does not open in some browsers or networks | The browser cannot reach the draw.io editor assets, often because a proxy, firewall or content security policy blocks them, or because the self-hosted draw.io instance is not reachable from user networks | Open the editor from a user machine on the affected network and check the browser console for blocked requests and certificate errors | Allow the editor host through the proxy, align the content security policy with the editor address, and confirm the draw.io server is served over HTTPS with a valid certificate |
| Gliffy file fails to import | The Gliffy file is an older or unusual export, or the import was started from a page without edit rights | Try the same file in the draw.io online editor on a test machine and confirm the account has edit rights on the page | Re-export the source from Gliffy, retry the import on a test page, and keep the original file for comparison |
| Visio diagram changes shape or loses behavior | draw.io warns that Visio imports may look different, may lose interactive behavior and do not import embedded EMF images. Visio 2003 to 2010 XML and LibreOffice Draw files are not supported at all | Compare the imported diagram with the original at 100 percent zoom and list shapes that were embedded images or had interactive links | Import .vsdx where possible, rebuild embedded images as native shapes or attachments, and record the differences for the reviewers who own the diagram |
| PDF export opens the browser print dialog instead of a file | The jgraph/drawio Docker image does not include an export server, so PDF export falls back to the browser print dialog unless an export server is configured | Check whether an export server is configured for the draw.io instance and whether the user expects a direct file download | Either accept the print-to-PDF path as the standard procedure, or configure an export server you operate and test it before publishing the procedure |
| Export options such as size, DPI or border are ignored | The export was made from the browser print path or a fallback path that does not apply the Diagram Application's export settings, or the page was cached with an older image | Export the same diagram twice, once from the editor and once from the wiki page, and compare the background, zoom and DPI values | Use the Diagram Application export controls for background, size, format, zoom, DPI and border, clear the cache for the page and re-export the image |
| Team believes diagram content leaves the server | Hosted export or real-time collaboration features process diagrams temporarily on Cloudflare servers, and users may not know whether they are using a hosted path | Review the draw.io configuration, browser traffic to external hosts and which export or collaboration features are enabled for your instance | Document which features are on, disable hosted features your policy does not allow, and confirm with the draw.io privacy documentation and your security team before approval |
Questions teams ask before adding diagrams to XWiki
How much does the XWiki Diagram Application cost?
The Diagram Application is priced from 95 EUR per year for 10 users with Basic support, and up to 1,550 EUR for 250 users, according to the XWiki Store listing. It is also included in XWiki Pro, so a team that already buys XWiki Pro does not add a separate license line for it. The license is a recurring annual cost tied to user count and support level, so the figure to confirm is the price for your own user count and tier. Separate from the license, you pay for the work to install, configure and test it, which is a one-time cost, and for any support you choose to keep after go-live. Ask for the license tier, the support level and the renewal terms in any quote.
Can our own team install the Diagram Application without a partner?
Yes, many teams install and use the extension themselves, provided they run a supported XWiki version. The XWiki Store listing states the Diagram Application requires XWiki 14.10 or later, so confirm your instance meets that requirement before planning. An in-house team usually needs to handle the extension installation, test editing and export with real users, set page rights for diagram pages and keep the extension updated alongside XWiki upgrades. A partner is most useful when the team lacks time for testing, needs a migration of existing diagrams, or wants the rights model and editor hosting reviewed before rollout.
What drives the effort for a draw.io rollout in XWiki?
Effort depends on four main factors. The first is where the draw.io editor is hosted: the official jgraph/drawio Docker image can be run on your own server, which adds deployment and patching work, while other options change how much is handled on your side. The second is migration volume, meaning how many diagrams and Gliffy files must be imported and checked. The third is the number of Visio files, because the import documentation warns that Visio diagrams may look different, lose interactive behavior and skip embedded EMF images. The fourth is rights design, since diagram pages inherit the wiki's permission model and that needs deliberate planning. Ask any provider to break its quote down along these four factors.
How long does a draw.io pilot in XWiki take?
The duration of a pilot depends on the scope agreed before work starts, so no fixed timeline applies across organizations. A typical pilot covers installing the Diagram Application on a test instance, confirming editing, export and the Diagram macro with a small group, and testing a sample of the diagrams your teams actually use, including any Gliffy or Visio files. Ask for a written plan that lists each step, the number of diagrams in the sample, the users who will test and the criteria for moving to production. Most engagements are fixed-scope, so the agreed plan should state the timeline directly.
What does our team need to provide for the work?
The work needs a few specific inputs from your side. You need a test or staging XWiki instance on a version the Diagram Application supports, administrator access to install the extension, and a named contact who can approve the rights model. Your team should also provide a sample of real diagrams, including Gliffy exports and Visio files, so import behavior can be checked against what people actually use. Finally, the team should decide where exported images and PDFs may be stored and who may export them. Without these inputs, the pilot tends to test a clean example rather than your real content.
Do diagrams created in XWiki stay inside our network?
It depends on how the draw.io editor is deployed. The jgraph/drawio Docker image can be self-hosted, and the draw.io documentation states that no diagram data leaves the server for an export when no export server is configured. PDF export then uses the browser print dialog. By contrast, draw.io's privacy page says that hosted export and real-time collaboration features process diagrams temporarily on servers run by Cloudflare, so those features should be disabled or reviewed if data residency matters. Confirm the editor hosting, the export settings and any network calls with your security team before approving production use.
Can draw.io files be migrated from Visio and Gliffy without losing content?
Some content can be migrated, but not every element survives unchanged. draw.io imports .vsdx files, converts .vsd and .vst files in the browser, and imports Gliffy diagrams, but it does not import Visio 2003 to 2010 XML or LibreOffice Draw files. The import documentation also warns that Visio imports may look different and may lose interactive behavior. Plan a review step for each migrated group of diagrams, keep the original files until the team accepts the results, and decide which diagrams are re-drawn rather than converted.
How DeployOpen scopes and delivers XWiki diagram integrations
DeployOpen approaches draw.io diagrams in XWiki as part of the wider wiki it runs in your infrastructure. The work starts with a written scope covering the Diagram Application, export paths, Gliffy imports and the review needed for diagram data. Each step is documented so your team can operate the result after handover.
How we scope
- Confirm your XWiki version against the Diagram Application requirement of XWiki 14.10 or later before any build work starts.
- Decide which diagram sources are in scope, including new drawings, Gliffy imports and any Lucidchart or Visio files.
- Record in the written scope whether PDF export uses the browser print dialog or a configured export server.
- Agree on the Diagram macro usage, page templates and who approves diagrams that go into controlled documentation.
How we build
- Install and configure the Diagram Application in a staging XWiki instance that matches your production setup.
- Test Gliffy imports with representative files and record where shapes, links or layout differ from the originals.
- Verify image and PDF exports with your chosen background, size, format, zoom, DPI and border settings.
- Confirm that no diagram data leaves your servers during export, and document the network paths used.
How we hand over
- Deliver a written configuration record covering the extension version, settings, export options and storage locations.
- Provide editor guidance for authors on creating diagrams, embedding them with the Diagram macro and exporting files.
- Walk your administrators through upgrade steps for the Diagram Application alongside XWiki upgrades.
- Hand over test cases so your team can repeat import and export checks after future changes.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer if your team wants DeployOpen to keep the setup current.
- Ask any quote to separate one-time build work from recurring support, so the ongoing cost is visible before you sign.
- Confirm with the XWiki Store and the draw.io documentation which versions and terms apply to your deployment at the time you commit.

