EMF, SVG or how to reduce PDF size

Stimulsoft Reports.NET discussion
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: EMF, SVG or how to reduce PDF size

Post by HighAley »

Hello, Bruno.
bsilence wrote:Can i use the latest prerelease build without any problems with the version i have?
You could try the trial version and if it will work right then your company should purchase it.

Thank you.
bsilence
Posts: 34
Joined: Wed Feb 13, 2013 12:15 pm

Re: EMF, SVG or how to reduce PDF size

Post by bsilence »

Hello,

Just installed latest version, and the report i sended to you keeps generating a pdf file with 180Kb.
This is to big. can you help me reduce the size of the generated file?

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: EMF, SVG or how to reduce PDF size

Post by HighAley »

Hello.

It seems that you are exporting report to PDF with embedded fonts.
Please, try to set the StiPdfExportSettings.EmbeddedFonts to false.

Thank you.
bsilence
Posts: 34
Joined: Wed Feb 13, 2013 12:15 pm

Re: EMF, SVG or how to reduce PDF size

Post by bsilence »

Aleksey Andreyanov wrote:Hello.

It seems that you are exporting report to PDF with embedded fonts.
Please, try to set the StiPdfExportSettings.EmbeddedFonts to false.

Thank you.
Hello,

This didn't do the trick, still have a 168Kb pdf file, it just seems way to big for just one record of info :S

Best Regards.
Bruno Fernandes
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: EMF, SVG or how to reduce PDF size

Post by HighAley »

Hello.

How did you set up export properties?
Please, send us a sample project which reproduces the issue.

Thank you.
bsilence
Posts: 34
Joined: Wed Feb 13, 2013 12:15 pm

Re: EMF, SVG or how to reduce PDF size

Post by bsilence »

Hello,

Just made a small winForms program to generate a pdf file of a simple report with a databand.
Just run the app and press Generate button, the pdf file will be created inside the C:\StimulsoftPDFSizeTest\StimulsoftPDFSizeTest\bin\Debug\Documents
folder.

As you can see the pdf file created as 160Kb... this seems quite large... Can i do something to reduce the size of the generated report?

Best regards.

Bruno Fernandes
Attachments
StimulsoftPDFSizeTest.zip
(4.43 MiB) Downloaded 494 times
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: EMF, SVG or how to reduce PDF size

Post by Ivan »

Hello,

If the UseUnicode + Encryption is used, then it is necessary to use the Embedded fonts = true (this will done automatically). It's restriction of Adobe Acrobat for correct displaying of national symbols etc.

So you have 2 ways:
1. Set UseUnicode=false; sometimes can be some problem with national characters, if pdf-file is opened on system where correspond fonts is not installed.
2. Don't use Encryption - do not set the UserAccessPrivileges.

Thank you.
sajanyamaha
Posts: 1
Joined: Thu May 07, 2015 6:29 am

Re: EMF, SVG or how to reduce PDF size

Post by sajanyamaha »

I am also trying to reduce one of my reports which lands on 150 kb ,i want it around 125 kb,here is my .mrt file attached.
BoardingPass_Print_Nok.mrt
(130.66 KiB) Downloaded 403 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: EMF, SVG or how to reduce PDF size

Post by HighAley »

Hello.

Sorry, maybe we did not exactly understand your question. Could you explain your issue more detailed?

Thank you.
nicegaurav
Posts: 91
Joined: Mon Oct 15, 2012 10:03 am

Re: EMF, SVG or how to reduce PDF size

Post by nicegaurav »

Hi,

I am also facing the same issue.. Size Issue of PDF.
Already set the StiPdfExportSettings.EmbeddedFonts to false. But it is not impacting the size of pdf report too much (just 20kb less as actual).
StiPdfExportSettings.ImageResolution default value is 100dpi, Chart or graph image (emf) is not clear, when I use StiPdfExportSettings.ImageResolution = 400, it is
displaying clean and bright but the pdf report size too much exceeded. In case of default values report size is 156kb but when I do StiPdfExportSettings.ImageResolution = 400, it is showing me the size of report 875kb. it is just a single page report.

Is there any way to reduce the size of pdf file?

Waiting for your positive response.
Post Reply