
Integrating Document Viewer SDKs with Cloud Storage and Collaboration Platforms

Why Cloud‑Native Document Viewing Matters for Modern .NET Apps
Cross‑platform consistency with a single .NET core
Enterprises are moving away from desktop‑only document tools and embracing web‑first experiences that run on Windows. Doconut provides .NET 8 and .NET 6 packages for Windows and supported glibc-based Linux x64 environments; rendering should be tested on each target platform. Because the viewer works with streams, you can pull a file from any cloud bucket, feed it directly to the Doconut viewer component, and return rendered pages or thumbnails to the client without ever writing the file to disk.
Reducing latency and bandwidth
When a document lives in Azure Blob Storage, downloading the entire file to the client just to view the first page creates unnecessary latency. Doconut supports on‑demand thumbnail generation, allowing you to request a low‑resolution preview first and fetch the full‑page render only when the user scrolls. This pattern is especially valuable for large CAD drawings (DWG, DXF) that can be hundreds of megabytes.
Security‑first processing
All heavy lifting stays on the server. By using Doconut’s server‑side processing capabilities, you keep confidential PDFs, legal contracts, or medical records inside your private VNet or behind a corporate firewall. Documents are rendered on the customer’s server and are not sent to a third-party rendering service; the HTML5/JavaScript viewer displays the rendered result in the browser.
Connecting Doconut to Popular Cloud Storage Services
General integration approach
- Select a supported source – Doconut.Clouds can read from Azure, Amazon S3, Google Cloud, Dropbox, Redis, CDN, or FTP.
- Authorize access in the application – Validate the current user and requested object before opening it.
- Open the document – Use the supported .NET server API and retain the returned opaque session token.
- Display it in the viewer – Pass the token to the HTML5/JavaScript viewer according to the official integration documentation.
Because the workflow relies only on streams, swapping Azure code for Amazon S3 or Google Cloud Storage requires only a change in the cloud‑SDK call that creates the stream; the rest of the Doconut pipeline remains identical.
Handling multi‑tenant storage
In a SaaS DMS, each tenant may have a separate bucket or prefix. Since Doconut works with streams, you can resolve the correct bucket at runtime, open the document, and keep the token scoped to the current user’s claims. The surrounding application must enforce tenant isolation and access rules. For distributed Doconut deployments, configure the documented shared widget store, which is encrypted at rest with AES-256.
Adding Annotation and Text-Layer Search to Application Workflows
Annotation plugin: turning a static viewer into a review hub
Doconut offers an optional Annotation Plugin for adding review markup. The surrounding application is responsible for deciding who may create or view annotations and how annotation data participates in its workflow.
Text-layer search
Doconut’s Search Plugin searches text that already exists in the document. It does not perform OCR on scanned or image-only PDFs. If an application requires OCR or repository-wide indexing, that must be implemented outside Doconut.
Application-owned collaboration
Doconut returns opaque session tokens, but it does not provide secure sharing links, built-in permissions, or real-time collaboration. The surrounding application must manage identity, authorization, sharing, and any collaborative workflow.
Server-Side Conversion with Doconut
Many enterprises need to convert incoming Word, Excel, or CAD files into PDF for archiving, or to enforce a “print‑only‑if‑approved” policy. Doconut’s Converter Plugin handles these scenarios without requiring Microsoft Office or third‑party services. You invoke the conversion API on the server, passing the source file path (or stream) and the desired output format. The conversion runs entirely on the back‑end, producing a PDF that can be stored in your document repository.
Doconut does not expose a print-control feature. If a workflow requires printing restrictions, the surrounding application must design and enforce them outside the viewer.
Application-owned auditing
Doconut does not provide a built-in audit trail. If audit records are required, the surrounding application must record the relevant actions and protect those records according to its own requirements.
Best Practices for Scaling and Performance in Cross‑Platform Environments
- Leverage distributed caching – Doconut’s internal page‑tile cache can be backed by Redis, Azure Cache, or any
IDistributedCacheimplementation. Include the document version hash in cache keys to avoid serving stale images after a conversion. - Use background jobs for bulk conversion – When onboarding a large archive, enqueue conversion tasks with Hangfire or Azure Functions. The Doconut viewer class works with
IHostedServiceworkers because it accepts streams and returns tokens without requiring an HTTP context. - Tune image resolution per device – Mobile devices benefit from a lower
ImageResolution(150‑200 DPI), while desktop workstations can request 300 DPI for CAD detail. Adjust the resolution based on the user‑agent string or a client‑side setting. - Enable lazy loading of annotations – Store annotation XML in a separate table and load it only when the user opens the annotation pane. This reduces the initial payload and speeds up first‑page rendering.
- Monitor memory footprints – Rendering high‑resolution CAD pages can be memory intensive. Configure the .NET GC to use server mode in production (
<gcServer enabled="true"/>) and set a reasonable timeout to prevent runaway rendering jobs. - Review static-asset delivery – Serve viewer resources according to the supported deployment documentation and measure the complete application before making latency claims.
Benchmark the complete deployment with representative files, locations, and concurrency before setting capacity or latency expectations.
Getting Started Quickly with Doconut Evaluation Access
To evaluate Doconut, request a 30-day temporary license and test the viewer in a supported ASP.NET application. Doconut.Clouds can read supported cloud sources, while optional plugins add annotation, text-layer search, and conversion; OCR is not included. For step‑by‑step instructions, visit the Doconut documentation and start building your cloud‑native document experience today.
Ready to evaluate the viewer? Request a 30-day temporary license and test self-hosted viewing, optional text-layer search, annotations, conversion, and supported cloud sources in a supported .NET application.