Jump to content
You must now use your email address to sign in [click for more info] ×

Banding when exporting to pdf


Recommended Posts

I recently did a personal project (rasterization bug.afdesign) and noticed something weird when exporting to pdf.

I got a pixel layer on top of a fill layer together with some text. The pixel layer looks fine when editing within designer:
1685423741_designerview.png.2540e601764369b33ffc5f6909f5429c.png

When I export the pdf, there is a notice that designer wil rasterize some areas, which is the pixel layer on top of the fill layer. When opening the resulting pdf however, There seems to be some weird bands on the pixel layer:

1467252718_bandedpdf.png.2b31ccf6caf0366d9a124e4d7d2a5b4f.png

Tried some different stuff, like converting the color profiles, testing different pdf configurations like not allowing jpeg compression etc.
The only preset that got me the same result as the designer view is to flatten the whole pdf, which ofcourse also flattened my text. I worked around the issue in the end by rasterizing the pixel layer together with the fill layer and export it as a normal "for print" pdf, but it made me wonder if this is some bug or expected behavior, as it felt a bit tedious to flatten my layer stack to make it rasterize the right way.

Can anyone shed some light on this? Thx in advance.

 

Link to comment
Share on other sites

1 hour ago, R34V3r said:

When I export the pdf, there is a notice that designer wil rasterize some areas, which is the pixel layer on top of the fill layer. 

The Fill Layer is being rasterized. If you do that rasterizing before export then nothing will be rasterized. Alternatively you could use a Rectangle in place of the Fill Layer, or best would be to just colour the Artboard.

 

I think that the behaviour of the Fill Layer affecting the rasterizing need of the PDF export is wrong and therefor a bug.

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

  • Staff

R34V3r what PDF export settings are you using and what application are you using to view the exported PDF in? I can only see this when I open the PDF (Exported using default PDF for Print) in Chrome and zoom in.

If you inspect the original branch objects prior to export and change the fill layer to be black you will see a white outline going around them - after inspecting further it looks like the source images you've used have a very hard edged, non aliased alpha channel which I think is PDF viewers to show those objects the way they do. I've attached a screenshot of the Alpha Channel of what of those objects from the PDF export show, and also what they look like with a black shape underneath (essentially making it easier to see the non transparent areas of the image). You can see that fringe line around them that is likely causing PDF viewers to show those objects the way they do.

I don't believe its a bug within the software, just a side effect of the original source images you used and how PDF viewers render them. The best situation in this example would to just be to rasterise the group containing the Fill layer and those two branch images. This way the branches no longer have any transparency and sit on a flat background.
 

14 hours ago, Old Bruce said:

The Fill Layer is being rasterized. If you do that rasterizing before export then nothing will be rasterized. Alternatively you could use a Rectangle in place of the Fill Layer, or best would be to just colour the Artboard.

 

I think that the behaviour of the Fill Layer affecting the rasterizing need of the PDF export is wrong and therefor a bug.

This changes nothing. Replacing the Fill Layer with a rectangle still shows the problem when the PDF is exported and viewed in a browser (and a little bit, but not as bad in Acrobat), despite nothing getting rasterised.

image.pngimage.png

Link to comment
Share on other sites

9 hours ago, Sean P said:

R34V3r what PDF export settings are you using and what application are you using to view the exported PDF in? I can only see this when I open the PDF (Exported using default PDF for Print) in Chrome and zoom in.

If you inspect the original branch objects prior to export and change the fill layer to be black you will see a white outline going around them - after inspecting further it looks like the source images you've used have a very hard edged, non aliased alpha channel which I think is PDF viewers to show those objects the way they do. I've attached a screenshot of the Alpha Channel of what of those objects from the PDF export show, and also what they look like with a black shape underneath (essentially making it easier to see the non transparent areas of the image). You can see that fringe line around them that is likely causing PDF viewers to show those objects the way they do.

I don't believe its a bug within the software, just a side effect of the original source images you used and how PDF viewers render them. The best situation in this example would to just be to rasterise the group containing the Fill layer and those two branch images. This way the branches no longer have any transparency and sit on a flat background.
 

This changes nothing. Replacing the Fill Layer with a rectangle still shows the problem when the PDF is exported and viewed in a browser (and a little bit, but not as bad in Acrobat), despite nothing getting rasterised.

image.pngimage.png

Thx for the clear explanation Sean. It does make sense now.

Maybe a dumb question, but doesn't that mean the visualization method in one of the applications is wrong, or is this such an unstandardized thing? It's just that all of the pdf viewers I tried the banding appears (non chromium edge, chrome, edge, adobe reader), but loading in the pdf back in designer shows no issue. It just triggered this fear in my mind that I have to double check every time I export now in different readers to make sure it is rendered properly, and therefore cannot rely that what I see in designer is what I get in a portable export unless the exported file is opened in designer again.

In my mind, Designer should either already show the banding when editing, or the pdf should look like the editing view (at least when you disable any compression in the export settings). Or am I talking crazy here?

Edit: it's not that I really want to look for an issue here, my OCD just triggered on this and I let it drag me down the rabbit hole

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.