Adobe Illustrator Stroke Alignment Correction

Post Reply
jasonx
Member
Posts: 28
Joined: Wed Jul 03, 2019 3:03 pm

Adobe Illustrator Stroke Alignment Correction

Post by jasonx »

Adobe Illustrator allows the alignment of strokes.

The issue we are having is some customers are using the Inside or outside stroke alignments. When the PDF saves the stroke is treated as a fill.

Is there a way to have an action check for this and set the alignment for the stroke to centre?

I have looked through the action lists etc and maybe I am missing something.

The stroke we are looking for is a cut line and we have a list of about 20 aliases the spot colour can be named.
abailescollins
Advanced member
Posts: 458
Joined: Wed Apr 22, 2015 4:28 pm

Re: Adobe Illustrator Stroke Alignment Correction

Post by abailescollins »

The problem here is that the PDF specification only allows strokes to be centred.
That's probably why you are getting fills when you export them from Illustrator, there's no other way to create the correct shape otherwise when the PDF is created.

I'm not sure that this can be detected or fixed. But I think an approach could be to look if a correct stroked path is NOT there.

To do this what you would need is ''Select Spot Color', and use the option 'Select Spot Color by name from list'.
That way you can add all the various names that the cut line separation could be called.
You need to the combine that with another Action to select the stroke. I think 'Select closed paths' might be best.
You then need a 'Log Selection' and set this to Log message if 'no objects are selected, and then you can write your own error message.

So the Action List would look like.

Select Spot Color by name from list
'Select closed paths
AND
Log absence of selection.

Not tested this, but it's an approach that should work.
The only false hit you might get is if a stroked path is not closed, but you probably want to know about that anyway.
Head of Product Management @ Ultimate
abc@imposition.com
jasonx
Member
Posts: 28
Joined: Wed Jul 03, 2019 3:03 pm

Re: Adobe Illustrator Stroke Alignment Correction

Post by jasonx »

Hey AB,

I'm currently using this approach.

The issue is Pitstop is still actually detecting a stroke present for when it's either left or right-aligned. But when you open the pitstop inspector and select the stroke it shows it as filled.

That's why I was looking for a way to correct it.

If you look at the attachment you can see it's detecting the inside and the outside of the stroke.

Unless I am using the wrong actions.
Attachments
example.jpg
example.jpg (108.85 KiB) Viewed 33030 times
abailescollins
Advanced member
Posts: 458
Joined: Wed Apr 22, 2015 4:28 pm

Re: Adobe Illustrator Stroke Alignment Correction

Post by abailescollins »

The issue is Pitstop is still actually detecting a stroke present for when it's either left or right-aligned. But when you open the pitstop inspector and select the stroke it shows it as filled.

Can you show the 'stroke' in the Inspector?

What you are selecting there is just the 'Select Line Art'
Head of Product Management @ Ultimate
abc@imposition.com
jasonx
Member
Posts: 28
Joined: Wed Jul 03, 2019 3:03 pm

Re: Adobe Illustrator Stroke Alignment Correction

Post by jasonx »

Inspector details are attached.

https://mediapoint.com.au/Testfile.pdf

For the file in question.
Attachments
inspectordetails.jpg
inspectordetails.jpg (208.43 KiB) Viewed 33010 times
abailescollins
Advanced member
Posts: 458
Joined: Wed Apr 22, 2015 4:28 pm

Re: Adobe Illustrator Stroke Alignment Correction

Post by abailescollins »

Yep, it's not a stroke.
It's two paths defining a shape that is filled.
If you grab one of the paths and move it you will see what I mean (see screenshot)

What kind of edits are you hoping to make to this?
Screenshot 2022-03-07 at 16.34.32.png
Screenshot 2022-03-07 at 16.34.32.png (144.38 KiB) Viewed 33001 times
Head of Product Management @ Ultimate
abc@imposition.com
jasonx
Member
Posts: 28
Joined: Wed Jul 03, 2019 3:03 pm

Re: Adobe Illustrator Stroke Alignment Correction

Post by jasonx »

Is it possible to select 'strokes' that have one of the spot colors named and log the absence of selection for that?

So in this instance, it should log an absence of the spot colour as it's a fill and not a stroke.
abailescollins
Advanced member
Posts: 458
Joined: Wed Apr 22, 2015 4:28 pm

Re: Adobe Illustrator Stroke Alignment Correction

Post by abailescollins »

yep, see second post in the thread.

So the Action List would look something like.

Select Spot Color by name from list
'Select closed paths
AND
Log absence of selection.
Head of Product Management @ Ultimate
abc@imposition.com
jasonx
Member
Posts: 28
Joined: Wed Jul 03, 2019 3:03 pm

Re: Adobe Illustrator Stroke Alignment Correction

Post by jasonx »

Thanks, AB. I should have done what you suggested from the start and added Select Closed Paths after the spot colour.

It''s working now
abailescollins
Advanced member
Posts: 458
Joined: Wed Apr 22, 2015 4:28 pm

Re: Adobe Illustrator Stroke Alignment Correction

Post by abailescollins »

:D
Head of Product Management @ Ultimate
abc@imposition.com
FlorianDSK
Newbie
Posts: 18
Joined: Fri May 26, 2023 2:35 pm

[Solved] Re: Adobe Illustrator Stroke Alignment Correction

Post by FlorianDSK »

Hello,

I have the same problem.
However, when I create this action list, I get the log in documents with this error as well as the ones without this error.

Select Spot Color by name from list
'Select closed paths
AND
Log absence of selection.


What am I doing wrong?

Many greetings
Florian
Last edited by FlorianDSK on Tue Aug 01, 2023 12:57 pm, edited 1 time in total.
loicaigon
Advanced member
Posts: 362
Joined: Wed Jul 10, 2013 10:22 am

Re: Adobe Illustrator Stroke Alignment Correction

Post by loicaigon »

Do you want to send me email? loica (a) enfocus (dot) com
Post Reply