
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
WordGlue is a generic layout engine which supports DOC and DOCX conversion and rendering for converting Microsoft Office formats. 100% managed, 100% thread safe and 100% independent of applications like MS Word and OpenOffice.org. Compatible with .NET 4.X, .NET 5.0, .NET 6.0, .NET 7.0, .NET 8.0, .NET 9.0 and .NET 10.0. Designed to convert semantic formats like DOC and DOCX documents to PDF, XPS, SVG and also to raster formats like PNG and JPEG. The DOC and DOCX rendering engine is general purpose so it can be easily extended to support other formats like HTML and RTF. WordGlue comes with a viewer application for opening, viewing and converting documents. So it's easy for you to test. Just open your test documents, see what they look like, save them in an appropriate format. The code for the viewing application comes included with WordGlue and is extremely compact. So once you're happy with the basic functionality it's simple to create your own conversions. In fact so simple it's trivial. Your code can be as simple as this, using (var doc = new WebSupergoo.WordGlue4.Doc(@"c:\test.docx")) doc.SaveAs(@"c:\output.pdf"); WordGlue uses WPF so your project needs to target Windows. In Visual Studio right click on the project and select Properties. Set the "Target OS" to Windows. Then run. See the documentation for more details.
WordGlue uses WPF so your project needs to target Windows.
In Visual Studio right click on the project and select Properties. Set the "Target OS" to Windows.
If you miss out this step, you will see an error similar to this.
NETSDK1136: The target platform must be set to Windows (usually by including '-windows' in the TargetFramework property) when using Windows Forms or WPF, or referencing projects or packages that do so.
Quite often when creating a new project you want some simple test code to ensure your installation is correct.
First you need to ensure you are using the correct namespace. Insert the following at the top of your C# module.
using WebSupergoo.WordGlue4;
If you are in a forms or console application, the following conversion code may be useful.
using(var doc = new Doc(@"c:\test.docx"))
doc.SaveAs(@"c:\output.pdf");
WordGlue is an xcopy deployment. All that is needed is that the WordGlue DLL file be copied to your bin directory. This will happen automatically because it is what is specified in the NuGet installer.
However if you deploy in this way to another machine, the license is not copied. So if you push your bin directory up to a machine in the cloud, you need to ensure that it gets a copy of your license.
To do this you can use the Settings.InstallLicense call in your code. This should be called before any WordGlue objects are created, passing your purchased license key or, if you have not yet purchased, your trial license key.
To get your trial license key you will need to copy it out of WGSettings.exe which is in the NuGet installation directory - typically at a location like "C:\Users\JohnSmith.nuget\packages\wordglue\4.1.0\WGSettings\WGSettings.exe".
However if you are reading this text file in Visual Studio, just right click on the 'ReadMe.txt' tab at the top of the window and select 'Open Containing Folder'. This will get you to roughly the right place - you'll just need to step up a few directories.
FAQs
WordGlue is a generic layout engine which supports DOC and DOCX conversion and rendering for converting Microsoft Office formats. 100% managed, 100% thread safe and 100% independent of applications like MS Word and OpenOffice.org. Compatible with .NET 4.X, .NET 5.0, .NET 6.0, .NET 7.0, .NET 8.0, .NET 9.0 and .NET 10.0. Designed to convert semantic formats like DOC and DOCX documents to PDF, XPS, SVG and also to raster formats like PNG and JPEG. The DOC and DOCX rendering engine is general purpose so it can be easily extended to support other formats like HTML and RTF. WordGlue comes with a viewer application for opening, viewing and converting documents. So it's easy for you to test. Just open your test documents, see what they look like, save them in an appropriate format. The code for the viewing application comes included with WordGlue and is extremely compact. So once you're happy with the basic functionality it's simple to create your own conversions. In fact so simple it's trivial. Your code can be as simple as this, using (var doc = new WebSupergoo.WordGlue4.Doc(@"c:\test.docx")) doc.SaveAs(@"c:\output.pdf"); WordGlue uses WPF so your project needs to target Windows. In Visual Studio right click on the project and select Properties. Set the "Target OS" to Windows. Then run. See the documentation for more details.
We found that wordglue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.