Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PS Actie (script)

Contributor ,
Nov 05, 2024 Nov 05, 2024

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?

TOPICS
Actions and scripting
373
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Nov 05, 2024 Nov 05, 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 (

...
Translate
Adobe
Community Expert ,
Nov 05, 2024 Nov 05, 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

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 05, 2024 Nov 05, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 05, 2024 Nov 05, 2024
LATEST

@jan99x 

 

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

 

Jane

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines