Skip to main content
Participant
February 25, 2009
Question

Batch processing PDF to TIFF

  • February 25, 2009
  • 5 replies
  • 34757 views
Hello,

I have about 1000 drawings in PDF format that I need to convert to B/W TIFF files. I thought I could easily do this in Photoshop (CS3) and then I hit a snag. In the Open form for the PDF there is a field to enter for the filename (I think that's because of multisheet PDFs). In my case all the PDFs have been reduced to single sheets, so I want the name to be that of the PDF file. Creating an action captures the "name", but this conflicts with the options when running in batch mode. I either have the same name from the action, or no name (or the same name) from batch options. Anyone know how to get around the naming options? Or do this a different way?

Thanks.
This topic has been closed for replies.

5 replies

Participant
November 12, 2009

Try the following it should produce a folder full of 300dpi Grayscale tiff based on your pdfs

var pdfOpenOptions = new PDFOpenOptions
pdfOpenOptions.antiAlias = true
pdfOpenOptions.cropPage = CropToType.MEDIABOX
pdfOpenOptions.mode = OpenDocumentMode.GRAYSCALE
pdfOpenOptions.resolution = 300
pdfOpenOptions.suppressWarnings=true

#target Photoshop
app.bringToFront;
var inFolder = Folder.selectDialog("Please select folder to process");
if(inFolder != null){
var fileList = inFolder.getFiles(/\.(pdf)$/i);
var outfolder = new Folder(decodeURI(inFolder) + "/Edited");
if (outfolder.exists == false) outfolder.create();
for(var a = 0 ;a < fileList.length; a++){
if(fileList instanceof File){
var doc= open(fileList
,pdfOpenOptions);
var docname = fileList
.name.slice(0,-4);
while(app.documents.length){
var saveFile = new File(decodeURI(outfolder) + "/" + docname + ".tif");
SaveTiff(saveFile);
activeDocument.close(SaveOptions.DONOTSAVECHANGES) ;
  }
}
}
};

function SaveTiff(saveFile)
    {
    tiffSaveOptions = new TiffSaveOptions();
tiffSaveOptions.embedColorProfile = false;
tiffSaveOptions.imageCompression=TIFFEncoding.TIFFLZW
activeDocument.saveAs(saveFile, tiffSaveOptions, true,Extension.LOWERCASE);
}

rozih
Participant
August 28, 2014

Not help without instructions

c.pfaffenbichler
Community Expert
Community Expert
August 28, 2014

If you don’t know what to do with the code that chapmanga posted maybe you should start with the basics of Photoshop Scripting and search for "Adobe Intro To Scripting.pdf" and "Photoshop-CS6-Scripting-Guide.pdf".

Participating Frequently
August 31, 2009

Oh, unfortunately, this tool now has been updated to 2.0 and is not free anymore. Please ignore what I post before.

Participating Frequently
August 31, 2009

You can have a try on this free tool PDF Extract TIFF

It high quality and rate impress me deeply.

Participant
August 29, 2009

for batch convert pdf to tiff I use PDF to TIFF Converter.

It can convert your pdf documents into tiff images very fast. it's simple to use windows program.

I love this tool, try this PDF to TIFF Converter.

http://www.pdf-tiff-tools.com/PDF-to-TIFF-Converter.html

Paul Riggott
Inspiring
February 26, 2009
You could try my PDF Processor..
http://www.ps-scripts.com/bb/viewtopic.php?t=1882