Hi all,
I have a simple question. Is it possible to export to PNG in InDesign? Right now, I've been doing a copy-paste into Illustrator, then saving it as PNG from there. Is there a better way to do this?
Trish
InDesign CS4 | PC
Oddly enough, that's not .. entirely .. true.
The CS4 scripting help lists "PNG Format" amongst its possible export formats. A quick test
app.activeDocument.selection[0].exportFile(ExportFormat.PNG_FORMAT, File(new File("c:\\test.png")));
shows CS4 can export to PNG. However, there are no settings to change, which limits its usefulness.
Thanks for the good info. By the way Scott, how can i be sure to keep RGB features while exporting to PDF? I think the original logo is CMYK, should i choose change colour profile and change output (i don't know if those are the right words in English) but here is the dialog box in Spanish.
Thanks for any input.
By the way, i did a "than copy/paste into Illustrator. Export a PDF then save that as PNG from Acrobat Pro" but the PNG is 4 Kb and even placing a high setting the resolution is very low res. I might be doing something wrong.
Interesting. I'm actually very interested in PNG export from InDesign. It seems like that would be the ideal way for me to get what I need. I've explored as many other options as I can think of, all of which are sort of crummy. Here's what I've tried so far:
My document is composed of 35 pages, which represent 7 zoom levels for the 5 floor maps of my building. The floor maps are made in Illustrator and "placed" into master-pages. Indesign handles all of the text overlays for the maps. It's better than Illustrator for this because of the ability to create paragraph and character styles that are global.
So that's the processes I've tried. Can anyone think of more I can try? The ulitmate goal is to have each page in InDesign export to a translucent backed image format, which I can then convert to PNG. TIFF, TGA, or PNG would all equally work. I just want to preserve the position of the content relative to the artboard/page AND preserve the translucency of the content.
I used to export using JPG, but the translucency has become a priority since these images will be stacked on top of other images as tiles on Google Maps.
Thanks for any advice or suggestions anyone can provide.
I feel like there may be some real problems with this workflow...does anyone know how InDesign compresses PNG files in exported PDFs?
In any event, if you Export to PDF in InDesign, you can open it in Acrobat Professional, and then File > Save As > Image... > PNG and it will save one file for each page of your document.
(If you have a complex question that's not the same as an old question, you're usually better off starting a new thread...)
Thanks John. My post got longer than I originally expected. Otherwise I would have just made a new thread.
I feel like I should clarify my original post that you replied to. That list of processes isn't one sequence of actions to get a final product. It lists every seperate method I've tried (unsuccessfully) to get usable images out of InDesign. I'm not doing them all in sequence. That would be a real workflow issue.
Saving PDFs from Acrobat doesn't give you translucent PNGs, because of the white paper background it assumes; even if you didn't have a background set in InDesign. I tried that too and was disappointed. Also, there's no way to "delete" the paper/page/white-background in Acrobat Pro before saving as PNG.
Also, there's no way to "delete" the paper/page/white-background in Acrobat Pro before saving as PNG.
When you export the PDF from ID make sure it includes live transparency (i.e., PDF/X-4 and not PDF/X-1a), then the document's page background will be transparent when you open it into Photoshop.
Saving pages out to PNGs is scriptable—I have an AppleScript that would work if you’re using OSX. I'm not sure why a PDF page would take minutes to open unless you are asking for huge res—my script opens a page at 300 ppi in a few seconds.
Oh that's perfect! That's exactly the type of advice I was hoping for! I never knew what the significant differences were between those PDF/X-x formats. I was able to export my InDesign document as a PDF and successfully open the translucent pages in Photoshop.
I actually only have CS5 for Windows here at work, (and a copy of CS3 on my personal Mac) but am a Programmer and am familiar with AppleScript, so If you'd be willing to share, I'd love to get ahold of your script. If it just can't work with Photoshop as old as CS3, I'm sure I can create a Windows equivilant.
There must have been something wrong when I tried importing the PDF earlier. This X-4 opened very quickly and came with a convenient resolution and page selection dialog.
Much appreciated! Thanks.
If you're using a workflow like version 3 (open each page one at a time in Photoshop...), that's like a workflow I use every other month. If you drag the entire multi-page PDF file onto your Photoshop icon, you can tell it to open all of the pages at x resolution in y color space, and then go get some coffee -- when you get back, they're all open, stacked in order with page 1 on top, and you can flatten and save them all as PNG files pretty quickly. And if you do it often, I'm sure you can create some kind of script to do it. Scripts wouldn't help in my case, so I haven't looked into it.
Where's y'all imagination?
This is a Quick-and-So-Very-Dirty-Dirty-Dirty javascript with lots of traps and pitfalls; still, it works as a Proof Of Concept to do the dirty thang straight out of InDesign.
(In particular I cannot stress enough: Do Not Use On Your Live Document. Save a copy first, because this script messes up your document, and if good old trusty InDesign chooses to crash while running the script, this Messed Up Version will be saved as "current one"!!)
//DESCRIPTION:Export all pages to PNGs -- Do Not Use For Production Purposes
// A Move Along, Nothing to See Here Production
for (pg=0; pg<app.activeDocument.pages.length; pg++)
{
page = app.activeDocument.pages[pg];
for (mas=0; mas < page.appliedMaster.pageItems.length; mas++)
try {
page.appliedMaster.pageItems[mas].override(app.activeDocument.pages[pg]);
} catch (bah) { }
g = page.groups.add(page.pageItems);
g.exportFile(ExportFormat.PNG_FORMAT, File(Folder.myDocuments.fsName+"/"+(page.name)+".png"));
}
Rob, you know your identity has converted to doppelgangerland? See Why has my account spawned a similar identity?
Anyhow, yes, Javascript does. Note that the applescript dictionary doesn't appear to actually have the types enumerated, there's just a text string about them (that also gets offered as an error). So you can do this:
tell application "Adobe InDesign CS5" to export first group of active document format "PNG" to "path:to:mine.png"
and it works fine.
North America
Europe, Middle East and Africa
Asia Pacific