How to save/export as tiff in a script?

Copy link to clipboard
Copied
I need to use indesign server to convert an idml file to a tiff.
I find that I can easily export to a jpg (which is lossy) or a pdf (which is not), but I cannot find any options to export to tiff. Is this possible?
If not, what is my best bet since I will have to convert it to tiff using another process.
Copy link to clipboard
Copied
You could export to PDF and then render a TIFF in PhotoShop. In that way you have more control over image quality and color space.
Uwe

Copy link to clipboard
Copied
This whole process needs to be automated and writing code against PDFs is messy. Surely this has been done before.
Copy link to clipboard
Copied
It certainly depends on the platform you're working on.
To do so in PhotoShop you could use BridgeTalk if you want to stick with InDesign scripting launching PhotoShop, open up the PDF with some parameters and saving the new file as TIFF in a directory of your choice.
Search for "BridgeTalk" in this forum. There are some examples for implementation around here…
OR: implement some Acrobat Pro scripting to export to TIFF via Acrobat Pro.
OR: use some hotfolder based tools that come with some PDF workflow systems.
Uwe

Copy link to clipboard
Copied
So hold on,
I don't have Photoshop or anything like that (actually I don't even have InDesign), I just have an instance of Indesign Server to work with.
My understanding is that just about anything you do with InDesign, you can script with InDesign Server - are you saying that is untrue?
Copy link to clipboard
Copied
My understanding is that just about anything you do with InDesign, you can script with InDesign Server - are you saying that is untrue?
I don't have ID server… but where do you see *.tiff export in the standard ID? ( I only have CS5 btw )
Copy link to clipboard
Copied
ID server has pretty much everything that's in ID except anything that has to do with UI.
As for exporting a TIFF, InDesign does not support exporting tiff's.
You can export a jpg, converting that to tiff.
You can also write a plug in that could export a TIFF (see the SDK).
Regards

Copy link to clipboard
Copied
Is there a way to export jpg without loss in quality? I saw png as a key on ExportFormat but I get an error whenever I try to use it.
The nuclear option is to go
Idml -> Indesign -> PDF -> Inkscape Command Line -> TIFF
but good god is that asking for trouble.
Any other good options?
Copy link to clipboard
Copied
It does seem that there should be a non-lossy raster export format.
Here's a nutty idea: export to swf with rasterizePages set to true and rasterCompression at RasterCompressionOptions.LOSSLESS_COMPRESSION and then extract the png from the resulting swf with swftools. At least that way you wouldn't be relying on a third-party tool to perform the rasterization.
Jeff

