Skip to main content
Participant
June 2, 2021
Question

Automation - Batch export Artboards to pdf

  • June 2, 2021
  • 2 replies
  • 1590 views

Hi, 

 

I have a problem with Artboards to pdf. I have 100 psd with 2 artboards in each and i want to batch export to obtain 100 (2 pages) PDF. I created an action for Artboards to pdf and used it within Automate/batch but everytime i start the Batch process, theres a pop up asking me to run the script.

 

So i have : 100 psd with 2 Artboards

Want: 100 pdf with 2 pages each 

Need: Process is automatic


Is it possible to do ? 

Thank you!

This topic has been closed for replies.

2 replies

Stephen Marsh
Community Expert
Community Expert
June 2, 2021

I have not tested, however I have a feeling that Photoshop may only be able to save a multi-page PDF using the presentation feature.

 

It should be possible to edit the Artboards to PDF script to remove the GUI. I'd need to look at the PDF presentation code to see how it could possibly be used by another script. Both of these custom scripting tasks are not so easy for a casual scripter such as myself.

 

Do you have access to Acrobat Pro?

Keven5FBBAuthor
Participant
June 3, 2021

Save as a copy (previously pdf) doesnt work with artboards.... it save as a 1 page pdf sadly.

 

I tried the Photoshop multipage using the presentation feature but it doesnt work for Artboards. I feel like its a scripting solution too but i'm clueless in this field. I don't have acess to Acrobat Pro.

 

Thanks for your replies

JJMack
Community Expert
Community Expert
June 3, 2021

I do not create web assets so I have never used Photoshop's  Artboard feature so I do not know how the feature works.  On Windows and most likely on  Mac running a versions of macOS prior to version 10.1.5  Save As works from scripts as before 22.4 you do not need to use Save a Copy.  In any case you will need to Update your  Batch Action for Photoshop 22.4 to use "Save a Copy" or use a Script step to use a document saveAs.  I would think Export would ali work for it is designed to be used for creating web files. You can use this script to test if a saveAs script will work on you machine.  The script should save the current document as a PDF on your desktop.

If you can use a Script step in your action the action should work in Photoshop versions prior to 22.4 as well as versions 22.4 and up

                                                "SaveDesktopPdf.jsx"

 

 

var Name = activeDocument.name;
var pdfFile =  new File('~/Desktop/' + Name);
SaveAsPDF(pdfFile, 10);
function SaveAsPDF(saveFile, jpegQuality){
	var doc = activeDocument;
	pdfSaveOptions = new PDFSaveOptions();
	pdfSaveOptions.alphaChannels = true;
	pdfSaveOptions.embedColorProfile = true;
    pdfSaveOptions.encoding = PDFEncoding.JPEG;
    pdfSaveOptions.jpegQuality = jpegQuality;
	activeDocument.saveAs(File(saveFile+".pdf"), pdfSaveOptions, true,Extension.LOWERCASE);
}

 

 

 

JJMack
JJMack
Community Expert
Community Expert
June 2, 2021

If your batch action used a "Save As" PDF  to save a PDF the action will become interactive and can no longer be batched as of Photoshop 22.4 you may be able to edit the action and change the "Save As" PDF  step to a "Save a Copy" PDF. The "Save a Copy" step may add a  " copy" suffix to the saved pdf  file Name.  The Action will not longer work in Photoshop version prior to Photoshop 22.4 So you may want to have two actions.

JJMack