Skip to main content
Participating Frequently
July 3, 2022
Question

Transparency lines showing when rasterising PDFs

  • July 3, 2022
  • 8 replies
  • 3576 views

Photoshop: 24.3.1

OS: Mac OS 12.4

This is an ongoing bug since I subscribed to Photoshop CC, it was not an issue in much older versions of Photoshop.

 

When I rasterise PDFs in Photoshop, at a resolution such as 300dpi, it is converting transparency lines into a semi-transparent part of the image. 


Transparency lines are very common in PDF files for print - PDF/x-1a which is a widly used standard for printing uses Acrobat 4 (PDF 1.3). They are basically a very fine line that either disapears or remains hairline thin when zoomed in (even at 6400% zoom), and the latest versions of Adobe Acrobat in most cases does not even show transparently lines anymore. The transparency lines are between the pixels - they are not supposed to be part of the image, so Photoshop should not make them part of the image!

 

I have attached screenshots of a part of a PDF open in Acrobat, and another of how it looks when rasterised in Photoshop at 300dpi.

This topic has been closed for replies.

8 replies

Participating Frequently
July 12, 2022

I have gone back to my old Mac which still has Photoshop CS5 installed. I can confirm that you can rasterise a PDF with transparency lines with Anti-Aliasing turned on, and the resulting image does NOT have semi-transparent lines. 

So some change to incorporate transparency lines into the image when PDFs are rasterised must have been made between CS5 and CS6. 

But the fact CS5 can rasterise a PDF with transpareny lines with Anti-Aliasing turned on, and not show semi-transparent lines on the resulting image means it is possible and it would be really nice if Adobe could fix it in Photoshop 2022.


PDFs with transparency lines are going to be around for a good while yet - PDF/x-1a is the instrusry standard for most printing - it is still the format recommended by the Professional Publishers Association. Every web and sheet fed printer I have used in the UK and USA still request PDF/x-1a as the file format. And if PDF/x-4 allows RGB, I don't see the industry ever accepting it as a replacement format. 

Thank you for the workaround suggestions.

Stephen Marsh
Community Expert
Community Expert
July 12, 2022

@Jo25002566w0to wrote:

Thank you for the workaround suggestions.


 

Agreed that it would be good if one didn't have to perform a workaround.

 

If rasterising without AA to a higher than required resolution and resampling down isn't workable for you, then I'd suggest the Apply Image workaround.

 

The following conditional script will only process files with a .pdf extension. I would suggest automating this via the Script Events Manager - Open event:

 

https://prepression.blogspot.com/2021/10/photoshop-script-events-manager.html

 

Apply image is applied 6 times to "fill in" the stitching anti-aliasing on transparency (this doesn't work with flattened data). This number could be resolution-dependent and may need to be changed for your specific situation.

 

 

/*
Apply Image x6 Times to PDF.jsx
https://community.adobe.com/t5/photoshop-ecosystem-discussions/transparency-lines-showing-when-rasterising-pdfs/td-p/13046914
Stephen Marsh, v1.0, 13th July 2022
*/

// RegEx case insensitive test
if (/\.pdf$/i.test(activeDocument.name) === true) {

    for (var i = 0; i < 6; i++) {
    applyImage();
}

    function applyImage() {
        var s2t = function (s) {
            return app.stringIDToTypeID(s);
        };
        var descriptor = new ActionDescriptor();
        var descriptor2 = new ActionDescriptor();
        var reference = new ActionReference();
        reference.putEnumerated(s2t("channel"), s2t("channel"), s2t("RGB"));
        reference.putEnumerated(s2t("layer"), s2t("ordinal"), s2t("merged"));
        descriptor2.putReference(s2t("to"), reference);
        descriptor.putObject(s2t("with"), s2t("calculation"), descriptor2);
        executeAction(s2t("applyImageEvent"), descriptor, DialogModes.NO);
    }
}

 

rob day
Community Expert
Community Expert
July 13, 2022

Hi @Stephen Marsh , I must be doing something wrong, I’m not seeing a change with your script. This is what I get:

 

 

Here’s  a folder with my test file the PDF/X1a is named X-1a2.pdf

https://shared-assets.adobe.com/link/a153a64d-77e3-42d3-63b5-12b9721eeabf

c.pfaffenbichler
Community Expert
Community Expert
July 7, 2022

What is the work-around you use most frequently now? 

If you don’t need transparency anyway, exporting a tif from Acrobat might suffice. 

rob day
Community Expert
Community Expert
July 7, 2022

That seems like a good idea, but I tested my sample and the Tiff exported with no anti-aliasing and stair-stepped the type. I don’t see a way to set anti-aliasing or an export resolution with ExportPDF.

c.pfaffenbichler
Community Expert
Community Expert
July 7, 2022

Good catch, my test was just with flattened images so I didn’t notice the missing anti-aliasing. 

rob day
Community Expert
Community Expert
July 6, 2022

Hi @Jo25002566w0to , As @Stephen Marsh suggests the lines appear at low resolutions when anti-aliasing is applied to the edges of the flattened boundaries. They wouldn’t print from a high res RIP because there would be no anti-aliasing on RIP’d output. So a solution for flattened PDFs would be to open the PDF at a high resolution with Anti-Aliasing turned off, and then downsample to the desired resolution—it would be easy to make an action for that.

 

Here’s a PDF/X-1a opened at 72ppi with AA checked, and the anti-aliasing is clearly visible:

 

 

The same with AA unchecked:

 

Opened at 1000ppi with AA unchecked:

 

 

Downsampled to 300ppi:

 

rob day
Community Expert
Community Expert
July 6, 2022

I added a line of 10 pt text so you can see the affect of the downsample on high contrast details. Top version opened at 1000ppi with AA off and downsampled, bottom version has AA stitching

 

Participating Frequently
July 7, 2022

It is interesting to see that the lines don't appear with Anti-Aliasing turned off, but unfortunitly that affects the quality of the rest of the file, particularly text. And sometimes rasterising at a higher resolution can help, but there are times it dosen't completely fix the issue, and in any event a work around should not be required. 

The last Photoshop version I used before CC was Photoshop CS5 - it rasterised PDFs with transparency lines perfectly. 

If I could still run Photoshop CS5 on my M1 Mac I would, beacuse for me as a user it did everything I needed it to with less bugs (and without a very expensive sunscription).


I think the reason Adobe haven't fixed this problem is because they see PDF/X-1a as an old format, and that we shoudl be using PDF/X-5 (or somethign like that), but as someone who works in publishing, and works with printers in the UK, USA and Europe, I can tell you the PDF/X-1a is still the format the printing industry prefers. So I hope Adobe can fix this.

At the same time it woudl be nice if they could fix the issue of semi-transparent pixels on the outside of an image when you upsample an image too - if you don't have the background locked then it uncludes data from outside of your frame/image (which is nothing/transparent) for the outer pixels. Again, was not an issue in CS5, but I have seen several users report this issue, it is another long-standing unfixed problem.
 

CShubert
Community Manager
Community Manager
July 6, 2022

Hi @Jo25002566w0to, as you read below from @Stephen Marsh , this issue has been around for quite a while and currently there are workarounds but not any fixes due to the nature of the issue.

 

Thank you @Stephen Marsh  again for the "perspective" on this and now I will be aware moving forward.

 

Cheers,

Stephen Marsh
Community Expert
Community Expert
July 5, 2022

@Jo25002566w0to 

 

You can try rasterizing/exporting to image from Acrobat Pro. I believe that Adobe have fixed the lack of anti-aliasing in Acrobat which used to create a sub-standard result compared to Photoshop.

 

As my previous link demonstrated, the last time that I looked at this I had to duplicate and stack the rasterized transparent layer 6 times to "fill in the cracks" from the atomic region edges. Using apply image 6+ times at normal blend 100% opacity would also have the same result in fixing the file. Easy enough to put into an action or script. There may have been another fix, it has been so long that I can't recall...

 

Sample PDF files would be more helpful for testing. It could be that rasterising at a much higher resolution than required and resampling down may also work as well, however, that would not be my preference.

CShubert
Community Manager
Community Manager
July 5, 2022

Thanks @Stephen Marsh for the trip back in time, wow.  Curious why in the last 10 years it hasn't been able to be fixed?

 

Will be happy to dig back into this and see if there are any updates in the works that I am not aware of.

 

Cheers,

Stephen Marsh
Community Expert
Community Expert
July 5, 2022

@CShubert – Hi Corey,

 

This has been an ongoing issue for a decade.

 

https://community.adobe.com/t5/photoshop-ecosystem-bugs/p-pdf-import-show-edge-artifacts-on-tiled-pdf-images-bug-in-pdf-creation/idi-p/12251648/page/11#U12279648

 

Edit – and another one:

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/corruption-lines-on-image-in-photoshop-when-opening-pdf/td-p/10893455

 

It is due to the anti-aliasing of rasterized transparency and the stitched "atomic regions" created by authoring apps flattening transparency.

 

CShubert
Community Manager
Community Manager
July 5, 2022

Hi @Jo25002566w0to , thank you for the images and sharing your issue.

 

It may help if we could see your Photoshop System Info. Launch Photoshop, and select Help >System Info...and copy/paste the text in a reply.  

 

Thank you,