Does UniOffice send my documents anywhere?
No. UniOffice is a library, not a service. Parsing, layout and writing all happen inside your own process, so document content is never uploaded, never queued and never stored anywhere outside the machine running the code. There is no rendering endpoint to send a file to.
That includes PDF conversion, which is the one people ask about most. The converter is UniOffice and UniPDF code running in your binary, not a call to a conversion service.
The content never crosses your network boundary, so it never enters a third party’s logs, caches or backups.
What the license check does transmit
A metered API key makes an outbound call to the UniDoc license server. The payload carries:
| Field | What it is |
|---|---|
| Usage counts | How many documents were processed, for billing. |
| Instance identifier | A generated id for the running process. |
| Hostname, local IP, MAC address | Machine identifiers. |
| Package name and version | Which UniDoc library and release. |
| Timestamp | When the report was made. |
It does not carry document content, filenames, or anything read out of your files.
By default usage is cached and reported periodically.
license.SetMeteredKeyPersistentCache(false) reports immediately instead, which
is what you want where there is no writable persistent storage. The cache
location follows UNIDOC_LICENSE_DIR, defaulting to the home directory, which is
worth setting explicitly in a container or under a service account with no home.
Removing the outbound call entirely
Where any outbound connection is unacceptable, use an offline license. It is verified from its own signature and makes no network call at all, which is the whole reason it exists:
if err := license.SetLicenseKey(offlineLicenseKey, `My Company`); err != nil {
panic(err)
}That is the right answer for air-gapped deployments, and for OEM products shipping to customers whose networks you do not control. See How to load the UniOffice license key?
What UniOffice does not protect
Keeping content on your own machine is not the same as securing the file, and the distinction matters.
Protection is not encryption. UniOffice supports Excel’s sheet and workbook
protection and Word’s Restrict Editing. Both store a salted SHA-512 hash, the
same form current Office versions write. For Excel, whose SetPassword hashes
the full password, that makes the password itself hard to recover. Word hashes a
32-bit value derived from the first 15 characters of the password rather than
the password itself, so longer passwords are cut to 15 characters and different
passwords can unlock the same document. The document content is another matter.
It stays in plain XML inside the ZIP, and anything in the file can be read
without knowing the password. Treat protection as a guard against accidental
edits, not as access control. That is how Office designed the feature, not a
UniOffice limitation.
Encryption keeps the content private. A file saved with a password through
SaveToFileWithOptions is AES-encrypted the way Office’s Encrypt with Password
does it, and cannot be read without that password. The password is the only
secret: UniOffice stores no key and has no way to recover a lost one. See
Password Encryption.
Your license key is a credential. Read it from an environment variable or a secret store rather than committing it. Anyone holding it can spend your credits.