PDF Export: ColorSpace and BitsPerComponent

Stimulsoft Reports.NET discussion
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

PDF Export: ColorSpace and BitsPerComponent

Post by Fabio Pagano »

I need to create a PDF with following specifications for images:

/ColorSpace /DeviceGray
/BitsPerComponent 1

Actually, when i export pdf, in the pdf text (i see it opening the pdf with notepad) i see:

/ColorSpace /DeviceRGB
/BitsPerComponent 8

for each image.

Is it possible to create a PDF with ColorSpace=DeviceGray and BitsPerComponent=1 in its images?

Thank you.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

PDF Export: ColorSpace and BitsPerComponent

Post by Andrew »

Hello, Fabio.

Do you wish to export all images as monochrome?

Thank you.
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

PDF Export: ColorSpace and BitsPerComponent

Post by Fabio Pagano »

Yes.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

PDF Export: ColorSpace and BitsPerComponent

Post by Andrew »

Dear Fabio,

We have added this to our to-do list.

Thank you.
bergloman
Posts: 1
Joined: Fri Feb 05, 2010 8:04 am
Location: slovenia

PDF Export: ColorSpace and BitsPerComponent

Post by bergloman »

hi

I have a similar request - for TIFF format.
we are exporting documents into e-archive and we want to reduce the file-size as much as possible. so TIFF with monochrome option would be very helpful.

btw we also use PDF with monochrome with some other clients, so fabio's request will also be helpful. :)

thank you
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

PDF Export: ColorSpace and BitsPerComponent

Post by Jan »

Hello,

Export to Tiff format support monochrome mode start from 2009.3 version.

Thank you.
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

PDF Export: ColorSpace and BitsPerComponent

Post by Fabio Pagano »

In update of 9 february 2010 i read:

"Upd: Some improvements in the PDF export."

Is this the possibility to export all images as monochrome in a pdf file, as i requested?

Thank you.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

PDF Export: ColorSpace and BitsPerComponent

Post by Jan »

Hello,

No sorry. This is some fixes in export to pdf. Your request in our todo list.

Thank you.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

PDF Export: ColorSpace and BitsPerComponent

Post by Ivan »

Hello,

We made some improvements in export to PDF.
Now you can export images as monochrome.
You can use following code, for example:

Code: Select all

            Stimulsoft.Report.Export.StiPdfExportSettings exportSettings = new Stimulsoft.Report.Export.StiPdfExportSettings();
            exportSettings.ImageFormat = Stimulsoft.Report.Export.StiImageFormat.Monochrome;
            exportSettings.DitheringType = Stimulsoft.Report.Export.StiMonochromeDitheringType.FloydSteinberg;
            report.ExportDocument(StiExportFormat.Pdf, @"d:\test.pdf", exportSettings);
Also you can select monochrome mode in export setup form, in ImageCompressionMethod combobox.

The patch will be available in the next prerelease build from 9-Mar-2010.

Thank you.
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

PDF Export: ColorSpace and BitsPerComponent

Post by Fabio Pagano »

Thank you very much.
Post Reply