Skip to main content
Participant
April 26, 2022
質問

Help to open PDF and show only "Import PDF" dialog in Photoshop

  • April 26, 2022
  • 返信数 2.
  • 740 ビュー

Hello,

 

I want to open a .pdf file with script and doesn't show "Import PDF" dialog, it opens first page without ask.

 
var file = new File(filePath);
app.open(file);

 

I am trying to show the dialog but it always show Finder before

 
var file = new File(filePath);
app.displayDialogs = DialogModes.ALL;
app.open(file);
app.displayDialogs = DialogModes.ERROR;
 
I want to show only the dialog about pdf, not choose the file.
 
Someone knows a solution?
 
Thanks

 

このトピックへの返信は締め切られました。

返信数 2

Stephen Marsh
Community Expert
Community Expert
April 26, 2022
Kukurykus
Legend
April 26, 2022

I didn't try it but doesn't his script prompt to choose the file before displaying 'Import PDF' dialog?

Stephen Marsh
Community Expert
Community Expert
April 27, 2022

Well, I'm now confused!


 

 

Kukurykus
Legend
April 26, 2022

If you change ALL to NO will it display the dialog without showing Finder?

debelop13作成者
Participant
April 26, 2022

No, then it doesn't show no dialog

Kukurykus
Legend
April 26, 2022

Why don't you check in available Ps scripting documentation how to use PDFOpenOptions?

You may also search this community for above function. You will find many similar threads...