old vs new radchart image export compression test
First make simple test with old telerik radchart. Export simple chart to png image with pdf provader. Set compression level
var provider = new PdfFormatProvider {ExportSettings = {ContentsCompressionMode = PdfContentsCompressionMode.Deflate, ContentsDeflaterCompressionLevel = 9, ImagesCompressionMode = PdfImagesCompressionMode.Deflate, ImagesDeflaterCompressionLevel = 5}};
This work perfect.
Make second test with new telerik
radcartesian chart (advance chart and
telerik proud).
Again test is the same, export image from radcartesian chart to png with
pdf provaider with the same compression
var provider = new PdfFormatProvider {ExportSettings = {ContentsCompressionMode = PdfContentsCompressionMode.Deflate, ContentsDeflaterCompressionLevel = 9, ImagesCompressionMode = PdfImagesCompressionMode.Deflate, ImagesDeflaterCompressionLevel = 5}};
Result: Not work and give error with lattes adobe reader. Error message is: “Insufficient data for an image”
var provider = new PdfFormatProvider {ExportSettings = {ContentsCompressionMode = PdfContentsCompressionMode.Deflate, ContentsDeflaterCompressionLevel = 9, ImagesCompressionMode = PdfImagesCompressionMode.Deflate, ImagesDeflaterCompressionLevel = 4}};
9/4 Deflate -> Again the same result with
9/3 Deflate -> Again the same result with
9/2 Deflate -> Again the same result with
9/1 Deflate -> BRAVO!!! Work! Do not any matter that compression of image is nearly to zero(0 value is equal to not any pdf image compression).
GENERALconclusion:
Old telerik RadChart work with pdf compression ;)
New RadCartessianChart not work with pdf compression ;(
For more info, read to the bottom…
9/1 Deflate -> you see text in table. Good
9/2 Deflate -> you not see text in table. Not good
9/3 Deflate -> you not see text in table. Not good
9/4 Deflate -> you not see text in table. Not good
9/5 Deflate -> you not see text in table. Not good
You see chart image in pdf document
You do not see chart in pdf document