Skip to main content
Participant
October 21, 2025
Question

Export only part of one page for advertiser.

  • October 21, 2025
  • 6 replies
  • 599 views

I have a magazine that I am working on which has several community ads on one page in InDesign. We have to send a proof of each ad to the advertisers. Is there a way to export only a part of one page to become a PDF or is there a way for me to crop the page temporarily before export. How I have been doing it is I have been exporting the whole page into Acrobat and then cropping it there which does not seem to be something that would take that much longer, but it is a tedious process. Thank you!

6 replies

Peter Spier
Community Expert
Community Expert
October 22, 2025

Back in the dark ages when I was working in newspaper and magazine layout jobs we used to make a template to send advertiser proofs that was essentially a blank page with spots to list names and dates and a place for approvals, then we would simply copy paste the ad into the template, export the PDF and send it off.

Randy Hagan
Community Expert
Community Expert
October 22, 2025

I think the underlying question here is: How are you generating your ads?

 

In most any publication workflow, I would imagine that you're building your ads independently of your publication pages. Right? You're not building them from scratch on the publication pages, right?

 

If that's the case, you want to output the ad itself in whatever format they were created in, then place the completed ads into your publication. If that's how you're doing it — and if it's not, providing ad proofs is the least of your problems — run the source ads from the applications they were generated in. You'll then be able to run just the ad, print it out easily and send it out for approval before publication, and/or stuff it in an envelope with an invoice and tearsheet page after publication.

 

I can't imagine why, in any publication workflow, this wouldn't be easier than trying to crop a publication page to run an ad proof and somehow output your ad(s).

 

Hope this helps,

 

Randy

 

P.S. — A while ago, I answered a post on how to develop a publication ad production system. Not to say this is the only way to do so, but this is one way to do so consistently, (relatively) conveniently and effectively. If you'd like , you can read the responses to this post to get more information. Please feel free to take from it what would be useful to you, and reject the rest as you see fit.

Participant
October 22, 2025

I see what you are saying. The reason I am working on the final publication document is because with each print the community ads require minimal changes and we create them in house so I just do them on one major InDesign publication document. Which I admit, might not be the best method of doing things. 

Randy Hagan
Community Expert
Community Expert
October 22, 2025

I understand. You work with the system you have, until you can implement a better one. And like I said, there's nothing to say the system I outlined is the best way to do it. But it is a proven one. Also, you are free to implement anything I outlined that may work for you, and feel free to reject anything that doesn't.

 

If I came off as preachy responding to your post, I apologize. That's not my intention. I've just done it a lot, and the workflow I outlined has saved a lot of pubs a lot of immediate pain and prevented a lot of long-term miseries.

 

When you're on deadline, you do whatever you have to do to get the job out the door and fix things later. I understand and embrace that philosophy. The downside of that, though, is that ignoring the fix things later part only prolongs the misery.

 

In the interim, you might try copying that ad block to another InDesign document, then breaking it down into pieces for each client. That's a fast solution for now, and lays the groundwork for making it easier down the line.

 

Randy

Peter Kahrel
Community Expert
Community Expert
October 22, 2025

Willi's idea works well and is the way to go for occasional use. But if there are many ads on a page, and/or there are many pages with ads, and/or you need to do this every week or month, then a script should be able to do this for you. It would find all adds on a page, then place a mask on all frames, then unmask a frame in turn and export the page. It depends a bit on whether ads can be found unambiguously. A sample document would show if it's feasible.

Community Expert
October 22, 2025

I was tinkering with a script yesterday but can't get it working. 

 

It was to select the advert as a grouped object (or if it's just singularly placed) and to make a new document at the dimensions of the advert and then export to PDF.

But when I get it into the new document it can't find the bounds to make the page size. 

So I'm a bit stuck on it. 

if (app.selection.length > 0) {
    var sel = app.selection[0];
    var doc = app.activeDocument;
    var pdfPreset = app.pdfExportPresets.item("[High Quality Print]");
    
    // Duplicate selection to a new temporary document
    var tempDoc = app.documents.add();
    var newPage = tempDoc.pages[0];
    sel.duplicate(newPage);

    // Fit page size to selection
    tempDoc.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;
    tempDoc.zeroPoint = [0,0];
    var gb = newPage.allPageItems[0].geometricBounds;
    var width = gb[3] - gb[1];
    var height = gb[2] - gb[0];
    newPage.resize(CoordinateSpaces.PASTEBOARD_COORDINATES, AnchorPoint.TOP_LEFT_ANCHOR, ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH, [width, height]);

    // Optional: add a bit of bleed (in mm)
    var bleed = 3;
    tempDoc.documentPreferences.properties = {
        pageWidth: width + (bleed * 2),
        pageHeight: height + (bleed * 2)
    };

    // PDF export settings
    app.pdfExportPreferences.pageRange = "1";
    app.pdfExportPreferences.viewPDF = false;
    app.pdfExportPreferences.cropMarks = false;
    app.pdfExportPreferences.bleedMarks = false;
    app.pdfExportPreferences.offset = "0mm";
    app.pdfExportPreferences.exportGuidesAndGrids = false;
    app.pdfExportPreferences.exportLayers = false;
    app.pdfExportPreferences.exportNonprintingObjects = false;
    app.pdfExportPreferences.exportReaderSpreads = false;

    // Destination file
    var destFile = File(Folder.desktop + "/SelectionExport.pdf");

    // Export
    tempDoc.exportFile(ExportFormat.PDF_TYPE, destFile, false, pdfPreset);

    tempDoc.close(SaveOptions.NO);

    alert("Exported selection to PDF:\n" + destFile.fsName);
} else {
    alert("Select an object or group first.");
}


Then if that works - then I guess it's a matter of being able to select multipe per page/spread and then do for each, probably blind is best. 


Peter Kahrel
Community Expert
Community Expert
October 22, 2025

@Eugene Tyson  You can try something along these lines. Once you've copied a page item to a new document:

d = app.activeDocument;
frame = d.pages[0].pageItems[0];
gb = frame.geometricBounds;
d.pages[0].marginPreferences.properties = {
  top: 0, left: 0, bottom: 0, right: 0
};
d.documentPreferences.pageWidth = gb[3]-gb[1];
d.documentPreferences.pageHeight = gb[2]-gb[0];
d.zeroPoint = [0,0];
frame.move([0,0]);

 

Willi Adelberger
Community Expert
Community Expert
October 21, 2025

Put each add to a  dedicated layer of an advertiser and schow only the layer for that advertiser when you export a PDF.

Participant
October 22, 2025

Interesting idea. I am not that skilled. How would I add layers? 

Community Expert
October 21, 2025

You can export a selection to a JPEG or PNG - but I don't think it's possible with the PDF (for some reason).

But you could convert that to a PDF albeit a very basic PDF with the image of the advert.

 

You could try selecting it and use File>Print and choose Selection and the filetype PDF. 

 

Another option - although will alter your workflow

You could give this a try. https://www.automatication.com/product/lz/

 

 

davecourtemanche
Inspiring
October 21, 2025

Depending on what you need to send them, you can select the ad and export to png or jpg. Wouldn't be editable, but it'd give them a representation of what they need to approve.

Participant
October 22, 2025

How would I do that for a png or jpg. That might work for what the client needs.

davecourtemanche
Inspiring
October 22, 2025

You have a page full of ads or ads/copy. Select the ad you wish to create a proof for (all the content, background, etc.) File/Export, format JPG or PNG. Instead of "all" or "range", choose "selection".