Pixel perfect rendering
Starting with version 4.0, PDFRasterizer.NET renders pixel perfect due to a complete overhaul of our render engine.
The following compares the rendering of PDFRasterizer.NET 3.0, 4.0 and Adobe PDF Reader.
Blending modes
PDFRasterizer.NET 4.0 has implemented all blending modes in contrast with version 3.0. It is possible to see differences in rendering on the next examples.
Luminosity blending mode
In the following example, a light blue colored rectangle is rendered in the background, an image partially overlaps this rectangle and luminosity blending mode is used for rendering image.
3.0 | 4.0 | Adobe Reader |
The following examples show all blending modes. Each PDF has two images that overlap. Image with blue vertical strips with different opacity is rendered in the background. Most left strip is fully transparent most right strip is opaque. Rest strips are semitransparent with growing opacity from left to right. Foreground image is similar to previous one. It contains horizontal brown strips with different opacity growing from top to down.
Color
3.0 | 4.0 | Adobe Reader |
Color Burn
3.0 | 4.0 | Adobe Reader |
Color Dodge
3.0 | 4.0 | Adobe Reader |
Darken
3.0 | 4.0 | Adobe Reader |
Difference
3.0 | 4.0 | Adobe Reader |
Exclusion
3.0 | 4.0 | Adobe Reader |
Hard Light
3.0 | 4.0 | Adobe Reader |
Hue
3.0 | 4.0 | Adobe Reader |
Lighten
3.0 | 4.0 | Adobe Reader |
Luminosity
3.0 | 4.0 | Adobe Reader |
Multiply
3.0 | 4.0 | Adobe Reader |
Normal
3.0 | 4.0 | Adobe Reader |
Overlay
3.0 | 4.0 | Adobe Reader |
Saturation
3.0 | 4.0 | Adobe Reader |
Screen
3.0 | 4.0 | Adobe Reader |
Soft Light
3.0 | 4.0 | Adobe Reader |
Image rendering quality
The following examples show differences in image render quality.
Enlarged small image
This is example shows how small image is rendered on the page when it is enlarged. This PDF has image of the size 2x2 pixels (read, blue, green and white squares).
3.0 | 4.0 | Adobe Reader |
Image sharpness
3.0 | |
4.0 | |
Adobe Reader |
1 bpc rgb image
When the 1 bpc (bits per component) image is renderd too small, Rasterizer4 renders in much better quality (look at small images of the butterfly).
3.0 | |
4.0 | |
Adobe Reader |
16 bpc Lab Color space
Correctly decoded image with 16 bpc in Lab color space from JPX stream.
3.0 | |
4.0 | |
Adobe Reader |
Image's soft mask
Decode parameters in the image's soft mask are accepted. It is possible to see soft mask is semitransparent.
3.0 | |
4.0 | |
Adobe Reader |
Image's soft mask matte color blending
Images's soft mask can have defined matte color which has to be used by rendered to blend soft mask before it's using for masking.
3.0 | 4.0 | Adobe Reader |
Soft mask in the Graphics state
PDFRasterizer.NET 3.0 does not always apply a soft mask from graphics state during rendering images.
3.0 | |
4.0 | |
Adobe Reader |
Path rendering
Stroke and fill with semitransparent color or using blending mode
When stroke&fill operator is used for rendering paths and stroke color is semitransparent or other than normal blending mode is used fill color has not be visible through stroke color.
3.0 | |
4.0 | |
Adobe Reader |
Line Dash Pattern
Dash pattern has to be applied properly. It is possible to see differences in rendering dashed lines mostly on green, violet and pink lines.
3.0 | |
4.0 | |
Adobe Reader |
Shadings
All seven shading types are rendered correctly by PDFRasterizer.NET 4.0. Version 3.0 supports only a few of them.
Shading type 1
This shading is not supported by PDFRasterizer.NET 3.0.
3.0 | |
4.0 | |
Adobe Reader |
Shading type 2
Shading is not applied well for stroking color. Fill shading doesn't uses 'Background' attribute (in this example brown color) of shading definition in Rasterizer3.
3.0 | |
4.0 | |
Adobe Reader |
Shading type 3
3.0 | |
4.0 | |
Adobe Reader |
Shading type 4
This shading is not implemented in Rasterizer3.
3.0 | |
4.0 | |
Adobe Reader |
Shading type 5
This shading is not implemented in Rasterizer3.
3.0 | |
4.0 | |
Adobe Reader |
Shading type 6
This shading is not implemented in Rasterizer3.
3.0 | |
4.0 | |
Adobe Reader |
Shading type 7
Shading type 7 is not implemented properly in Ratserizer3.
3.0 | |
4.0 | |
Adobe Reader |
Shading & Text
Again shading doesn't uses 'Background' attribute (in this example brown color) of shading definition in Rasterizer3. Therefor some letters are not visible.
3.0 | |
4.0 | |
Adobe Reader |
Shading & Image as mask
1 bpc gray image (map of the sky) is used as mask for shading of type 2. Rasterizer3 is not able to apply mask on shadings. Blue rectangle is rendered in the background to demonstrate mask is rendered well.
3.0 | |
4.0 | |
Adobe Reader |
Transparency groups
Rasterizer3 doesn't implement transparency groups (next only TGs is used) in contrast with Rasterizer4. Rasterizer4 implements only isolated non-knockout TGs. It is possible to see differences in the next examples. Brown rectangle is rendered on the pages. Two blue triangles are rendered in the TG which is combined with background page (brown rectangle) by using different blending modes.
Isolated non-knockout transparency group & Darken blending
Darken blending mode and transparency 0.753 is used for rendering TG.
3.0 | |
4.0 | |
Adobe Reader |
Isolated non-knockout transparency group & Difference blending
Difference blending mode and transparency 0.753 is used for rendering TG.
3.0 | |
4.0 | |
Adobe Reader |
Isolated non-knockout transparency group & Multiply blending
Multiply blending mode and transparency 0.753 is used for rendering TG. In contrast with previous examples TG contains two rectangles with different colors. First one is blue second one is green. Difference blending mode and transparency 0.753 is used for rendering these triangles.
3.0 | |
4.0 | |
Adobe Reader |