This is a migrated thread and some comments may be shown as answers.

Size problems when export to pdf

1 Answer 169 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
businet
Top achievements
Rank 1
businet asked on 12 Jun 2009, 09:05 AM
Hi Telerik Team!

We have a method which exports a report to pdf file.

The problem is that generated file size is ~1MB (it's a simple PDF with logo and 3 or 4 text lines).

I read other post in this Forums and i see an answer about FontEmbedding but i can't configure this in my application.

My version of Telerik Reporting is Q2 2007 SP1 in a local application in C# 2.0

This is my method:

    Hashtable deviceInfo = new Hashtable();
            deviceInfo["FontEmbedding"] = "None";
            deviceInfo["DocumentAuthor"] = "Businet"; 

            byte[] reportBytes = Telerik.Reporting.Processing.ReportProcessor.Render(exportFormat, report, deviceInfo, out mimeType, out extension, out encoding);
            reportName += "." + extension;

            using (FileStream fs = new FileStream(reportsLocation + reportName, FileMode.Create))
            {
                fs.Write(reportBytes, 0, reportBytes.Length);
            }

I think that deviceInfo is not applied because the generated file not have "Author" property.

Thanks for advance.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 12 Jun 2009, 01:03 PM
Hello businet,

Q2 2007 is the second official version released and thus it lacks many functionalities. Specifically the ability for report configuration through the device information settings is introduced in the Q3 2007 release and the Font embedding feature in Q3 2007 SP1.
The only way to have this working would be to upgrade to a newer version that supports this feature.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
businet
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or