Welcome Guest Search | Active Topics | Sign In | Register

SaveImageAsJpeg in ASPxToPDF Options
Kyle Baley
Posted: Monday, May 2, 2016 7:00:02 PM
Rank: Newbie
Groups: Member

Joined: 5/2/2016
Posts: 2
I'm generating a PDF via ASPxToPDF and it has a number of images. Adding 5 images totaling 2.4MB in size increases the size of the generated PDF from 85KB to 6.5MB. The images are all jpegs already and I've tried the following settings:

Code: C#
HtmlToPdf.Options.PreserveHighResImages = false;
        HtmlToPdf.Options.SaveImageAsJpeg = true;
        HtmlToPdf.Options.JpegQualityLevel = 10;
        aspxToPdf.RenderAsPDF("moo.pdf");


With and without these options, the file size is identical and I see no difference in the quality of the images on the PDF. Am I setting the options correctly? aspxToPdf is the ASP.NET control on the page.
eo_support
Posted: Tuesday, May 3, 2016 12:16:21 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

We have confirmed this to be an issue on our side. This will be fixed in our next build, which will be posted either later this week or during the weekend.

Thanks!
Kyle Baley
Posted: Tuesday, May 3, 2016 1:10:36 PM
Rank: Newbie
Groups: Member

Joined: 5/2/2016
Posts: 2
Great, thanks for the quick response and action!
eo_support
Posted: Saturday, May 7, 2016 11:09:20 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

This is just to let you know that we have posted build 2016.0.78.0 that should fix this issue. You can download the new build from our download page.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.