[Solved] Large PDF after export - dynamic PictureBox images

0 Answers 3 Views
.NET Core General Discussions PictureBox Rendering Report Viewer - HTML5
Marina
Top achievements
Rank 1
Marina asked on 29 Jun 2026, 04:22 PM

Hello,
We use Telerik Reporting R2022.3.2112 with .NET 10 / ASP.NET Core on Linux.

Problem

When reports contain many attachment images, the exported PDF is very large.
We tried to resize and compress images before embedding (fit to PictureBox size, JPEG re-encode, byte budget per image). This reduced PDF size, but image quality became too low  (in the viewer and in the pdf also) — text and details in attachments were hard or impossible to read.

So we are stuck between large PDFs and unreadable images.

Example: [ ~50 images (about 3,5 mb in total) → ~15 MB PDF]

We've tried to resize and compress the images - it helped reduce pdf size, but quality was really low.

How we work with reports

Reports (.trdp) are stored in Azure Blob Storage
A custom IReportSourceResolver loads the report and fills it with data/images on the server
Users view reports in the Telerik HTML5 Report Viewer in the browser
PDF is exported from the viewer (Print / Export)

How we insert images into PictureBox

Images are downloaded as blobs from Azure Blob Storage. We use SkiaSharp to decode them and, for attachments, to resize/re-compress before embedding.

Logos — Skia decode → Telerik image on pictureBox.Value
Images in list rows (our main case) — Skia optimize → Telerik image on Processing.PictureBox.Image in ItemDataBinding (bytes on Value did not render in PDF)
Fixed PictureBoxes (supported in code, optional) — Skia optimize → JPEG/PNG bytes on Value + MimeType
SVG — SVG text on Value + MimeType = image/svg+xml



Questions

What is the recommended way to assign images to PictureBox to balance PDF size and quality?
Does Telerik re-embed images at full resolution even when the PictureBox is small on the page?
Are there PDF export settings (compression, downsample, JPEG quality) we should use with the HTML5 viewer or ReportProcessor?
Is there a way to embed images at display resolution without losing readability (especially for screenshots with small text)?

Thank you.

No answers yet. Maybe you can help?

Tags
.NET Core General Discussions PictureBox Rendering Report Viewer - HTML5
Asked by
Marina
Top achievements
Rank 1
Share this question
or