Jump to content
3drenderingservices.co.uk

Exporting PDF produces a thin line around placed image file

Recommended Posts

I'd check whether the image itself hasn't got the thin black line round it. Open it in an image editor & use very high magnification to look at the edge. If it has you could use the crop tool to remove it.


Windows 7 Pro, I5 3.3G PC 16G RAM

Share this post


Link to post
Share on other sites
30 minutes ago, 3drenderingservices.co.uk said:

I get thin black line in a PDF where an image (either a jpg or png) 

Hi @3drenderingservices.co.uk,

something similar happened to me when the placed images were located at a fraction of pixels. E.g. the left (x) or top (y) position was something like 200.3px. Check the transform panel to see these values.

Could this be the cause?
d.


Affinity Designer 1.7.1.404 (beta 1.7.2.424)   |   Affinity Photo 1.7.1.404 (beta 1.7.2.424)   |   Affinity Publisher 1.7.1.404 (beta 1.7.2.422)
Affinity Designer for iPad 1.7.0.7   |   Affinity Photo for iPad 1.6.8.77

Windows 10 (1809) 64-bit - Core i7 - 16GB - Intel HD Graphics 4600 & NVIDIA GeForce GTX 960M
iPad pro 9.7" + Apple Pencil

Share this post


Link to post
Share on other sites
12 minutes ago, dominik said:

Hi @3drenderingservices.co.uk,

something similar happened to me when the placed images were located at a fraction of pixels. E.g. the left (x) or top (y) position was something like 200.3px. Check the transform panel to see these values.

Could this be the cause?
d.

 

Sounded promising, and I tested your suggestion, but no, it's not that - it's something to do with when rasterising "Everything" (in the PDF Options pre-exporting).

If I choose "Everything" (rather than leaving it as "Nothing"),  that is when and where the issue presents itself.

 

Share this post


Link to post
Share on other sites
35 minutes ago, 3drenderingservices.co.uk said:

it's something to do with when rasterising "Everything" (in the PDF Options pre-exporting).

At least you are narrowing it down. Thanks for trying my suggestion.

d.


Affinity Designer 1.7.1.404 (beta 1.7.2.424)   |   Affinity Photo 1.7.1.404 (beta 1.7.2.424)   |   Affinity Publisher 1.7.1.404 (beta 1.7.2.422)
Affinity Designer for iPad 1.7.0.7   |   Affinity Photo for iPad 1.6.8.77

Windows 10 (1809) 64-bit - Core i7 - 16GB - Intel HD Graphics 4600 & NVIDIA GeForce GTX 960M
iPad pro 9.7" + Apple Pencil

Share this post


Link to post
Share on other sites

I can reproduce it. It only appears at certain magnifications in the pdf such as 125% and 400%. It doesn't appear on a printed hard copy though so my guess is that it's a screen driver issue. On the sample pdf I attached it only appears on the car jpg and not on the dancing couple png.

Test.afpub

test.pdf

Share this post


Link to post
Share on other sites

Sorry to say that I am still having exactly the same problem as I mentioned originally, so for me it is not fixed at all (shame as I was happy to learn from Gabriela that it was fixed).  For information, I am on the latest Beta 1.7.0.283.

Export preset PDF Flatten is what I need and chose and the output looks exactly like my first image posted above.

I've just noticed that I didn’t mention that my original post that in my case I’m importing pngs with transparency (though I did mention it happens with Jpgs  too).

 

by the way, I cannot seem to reply to posts on my windows 10 pc, each time I try, the reply box opens and closes rapidly and I’ve tried this in Chrome and Firefox (this reply was sent via my iPad).

 

 

Share this post


Link to post
Share on other sites
On 3/23/2019 at 2:54 PM, CarlM said:

I can reproduce it. It only appears at certain magnifications in the pdf such as 125% and 400%. It doesn't appear on a printed hard copy though so my guess is that it's a screen driver issue. On the sample pdf I attached it only appears on the car jpg and not on the dancing couple png.

Test.afpub

test.pdf

Okay, now I can send this message via my PC - but I tried for at least 10 minutes beforehand and each time I tried, the reply box opened and closed without allowing me to type anything in here first.  (and this has happened to me now several times).

Share this post


Link to post
Share on other sites
Posted (edited)

As far as I can see there is no line ... except when you turn on smoothing / flattening (do not know correct translation) vectors and/or images in your PDF viewers preferences.

Added: Smoothing / flattening vector could be turned on, because sometimes vectors look pixelated. I always turned it off for images, because these thin lines are irritating.

Edited by Joachim_L
Added information

Share this post


Link to post
Share on other sites

I managed to consistently replicate it using that attached PDF, but not from scratch. Any chance you can attach the PNG you have used to create that? 

It seems that Joachim_L has found the issue for you. Thanks :)

Share this post


Link to post
Share on other sites

Yes, this is the issue as I’d mentioned at the start in my 3rd post in this thread (6th post down).

When you FLATTEN a pdf, necessary in order to reduce its size for the purposes of portability, you pay the price for that by getting these lines appearing - seems Gabriela didn’t test for this.

Share this post


Link to post
Share on other sites

Do me a favour and turn off flattening / smoothing for vector / images in your PDF viewers preferences and tell me if the lines are still there. I still believe, that there are no lines, it is just a display issue resp. how the PDF viewer renders the page.

flatten1.jpg

flatten2.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×