Skip to main content
jan99x
Inspiring
November 5, 2024
解決済み

PS Actie (script)

  • November 5, 2024
  • 返信数 1.
  • 362 ビュー

Hi,

Have 2 documents:

nr-1 input PDF-doc with 12 kalender pages in it

nr-2 output PS-doc with a few layers in it (before start action)

 

Wanted:

Automated action.

Each PDF page wanted in a PS-layer

For example:

PDF-page -01  >>> PS-Layer-01: Januari

PDF-page-02  >>> PS-Layer-02: Februari

...and so forth...

 

If I do that manually, it works fine.

If I record an action, it works fine, ... if I run it, it fails. The correct PDF-page-nr is chosen each time (I can see it in recorded action). But only the FIRST month (PDF-gage 1) is visible in te PS-document and the action creates only 1 layer. How solve this problem?

 

And also naming the layers fails, but thats may be inherent the problem above?

このトピックへの返信は締め切られました。
解決に役立った回答 jan99x

@jane-e Jane,

 

In the meantime I have found a solution.
I suspect the problem was with "drag-drop" from docA (source) to docB (target) (I dragged in the image window). In that case, creating a new layer does not work correctly in docB (it is overwritten every time). This works correctly when recording, but when running the action it does not work correctly.
solution: If I right-click on the layer in source docA and select copy layer with destination docB, it works fine.

 

DocA = PDF > convert to PS (one kalender page)

DocB =Ps >> month's in every layer

Example image below:
Red = copy command in layer
Blue = select one layer lower for correct month order

 

Thanks any way!

Jan

返信数 1

jane-e
Community Expert
Community Expert
November 5, 2024
quote

If I record an action, it works fine, ... if I run it, it fails.

By @jan99x

 

Can you share the steps in your action so we can see what you have?

 

If I were doing it, I would open the PDF in Adobe Acrobat Pro and export each page to a separate image. Then I would combine the twelve images in Photoshop using File menu > Scripts > Load Files into Stack.

 

You've tagged your post for Scripting, so the brilliant scripters will see it.

 

Jane

 

jan99x
jan99x作成者解決!
Inspiring
November 5, 2024

@jane-e Jane,

 

In the meantime I have found a solution.
I suspect the problem was with "drag-drop" from docA (source) to docB (target) (I dragged in the image window). In that case, creating a new layer does not work correctly in docB (it is overwritten every time). This works correctly when recording, but when running the action it does not work correctly.
solution: If I right-click on the layer in source docA and select copy layer with destination docB, it works fine.

 

DocA = PDF > convert to PS (one kalender page)

DocB =Ps >> month's in every layer

Example image below:
Red = copy command in layer
Blue = select one layer lower for correct month order

 

Thanks any way!

Jan

jane-e
Community Expert
Community Expert
November 5, 2024

@jan99x 

 

That makes sense! I've marked your answer correct and thank you for sharing!

 

Jane