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:I'm having this problem. I tried to use the property ImageCompressionMethod to Flate, but instead of decreasing size file, it increases :)
We need a sample report which reproduces the issue for analysis.
bsilence wrote:Is it possible that this is happening because i'm using business objects?
No matter where are your data from. We need to know what sort of data is there. We need to see any sample.

Thank you.
User avatar
midspace
Posts: 27
Joined: Tue Sep 10, 2013 12:20 am
Location: Melbourne, Australia

Re: EMF, SVG or how to reduce PDF size

Post by midspace »

Hi, I've only just joined the forum, and we've only just started supporting the Stimulsoft reports in our application.

Could you please clarify the following statement?
Aleksey Andreyanov wrote: But PDF format doesn't support direct embedding of any vector images.
As far as I understand...
".pdf (Adobe's Portable Document Format) Fully supports vector graphics in a de facto standard format which can be read and printed on almost all operating systems. Can be used to describe an individual, free-standing diagram, or an entire page layout. Virtually all programs support the latter kind of output, but very few support the first type."

I have no issue creating PDF's in Adobe with both Vector and Raster images embedded, which both maintain their embedded form.
Is Vector support only a problem with generating PDF's from Stimulsoft?
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.

Yes. I meant that it's impossible to export vector graphics from our reports to PDF in vector format. All graphics is converted to raster images on export.

Thank you.
User avatar
midspace
Posts: 27
Joined: Tue Sep 10, 2013 12:20 am
Location: Melbourne, Australia

Re: EMF, SVG or how to reduce PDF size

Post by midspace »

Aleksey Andreyanov wrote:Hello.

Yes. I meant that it's impossible to export vector graphics from our reports to PDF in vector format. All graphics is converted to raster images on export.
This seems to be half right or half wrong, depending on your perspective.
Using the Stimulsoft Reports for WPF Demo, the "Shapes" report, under the "Basic Reports", I've generated a PDF straight from Stimulsoft.

Please see this link for the generated output.
https://dl.dropboxusercontent.com/u/26211652/Shapes.pdf

9 out of the 30 shapes on the page have been exported as Vector, and remain intact within the PDF. The rest are images.

Analysing the shapes, I would hazard a guess that only simple shapes are successfully exporting their vector properties.
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.

If you read this topic carefully you will find out that here was discussing export of EMF and SVG vector images but not our Shapes.
Could you describe what problem do you have with our product?

Thank you.
User avatar
midspace
Posts: 27
Joined: Tue Sep 10, 2013 12:20 am
Location: Melbourne, Australia

Re: EMF, SVG or how to reduce PDF size

Post by midspace »

Aleksey Andreyanov wrote:If you read this topic carefully you will find out that here was discussing export of EMF and SVG vector images but not our Shapes.
I did thank you. In the following statement however, you explicitly said "All Graphics is converted". That is a blanket statement. You did not mention any exclusions.
Aleksey Andreyanov wrote:Hello.Yes. I meant that it's impossible to export vector graphics from our reports to PDF in vector format. All graphics is converted to raster images on export.
Aleksey Andreyanov wrote:Could you describe what problem do you have with our product?
If it is possible to convert EMF, SVG or any vector graphic to a form of vector or Shapes in the Stimulsoft report which can successfully be converted into PDF, then we are interested in knowing about it.
Reducing file size is important and critical to our Clients needs, as we are currently analysing the process for converting 200+ reports, some which contain various watermarks and headers with company logos.
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.
midspace wrote:If it is possible to convert EMF, SVG or any vector graphic to a form of vector or Shapes in the Stimulsoft report which can successfully be converted into PDF, then we are interested in knowing about it.
It's impossible as we have already wrote it several times.

Could you send us any your report template with graphics?
Describe your problems with this report more detailed.

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, Bruno.
bsilence wrote:I'm having this problem. I tried to use the property ImageCompressionMethod to Flate, but instead of decreasing size file, it increases :)
We need a sample report which reproduces the issue for analysis.
bsilence wrote:Is it possible that this is happening because i'm using business objects?
No matter where are your data from. We need to know what sort of data is there. We need to see any sample.

Thank you.
Hello,

The report i send in attach is a template that we use, and the pdf that is generated is always 160Kbs of size, with only one line in the data.
Thanks for your help.

Best Regards
Bruno Fernandes
Attachments
Report.cs
(144.48 KiB) Downloaded 404 times
Report.mrt
(53.51 KiB) Downloaded 419 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, Bruno.

You are using very old build.
There were a lot of improvements since then.
Please, try our latest prerelease build.

Than 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,

This was the version that my company purchased.
Can i use the latest prerelease build without any problems with the version i have?

Thank you for your help on this.

Best regards.
Bruno Fernandes
Post Reply