Exporting individual pages to PDF / Indesign
Download some examples of scripts of
http://www.Adobe.com/products/InDesign/scripting/index.html
It's all good and everything, but it creates a document and it prints as pdf files. Yes, that is what I wanted to but how can I change the script for, let me you are looking for or appeal to my own already created .indd file?
Help, please.
Thanks in advance,
Kind regards
jmituzas
Hello
Find below the code, now it will not work on files open indesing.
//ExportEachPageAsPDF.jsx //An InDesign CS4 JavaScript // //Exports each page of an InDesign CS document as a separate PDF to //a selected folder using the current PDF export settings. //Display a "choose folder" dialog box. main(); function main(){ mySnippet(); } function mySnippet(){ //var myPageName, myFilePath, myFile; var myDocument = app.activeDocument; var myBaseName = myDocument.name.replace(/\.indd/, ""); var myPDFExportPreset = app.pdfExportPresets.item("[Press Quality]"); for(var myCounter = 0; myCounter < myDocument.pages.length; myCounter++){ myPageName = myDocument.pages.item(myCounter).name; app.pdfExportPreferences.pageRange = myPageName; //The name of the exported files will be the base name + the //page name + ".pdf". If the page name contains a colon (as it will //if the document contains sections), then remove the colon. var myRegExp = /:/gi; myPageName = myPageName.replace(myRegExp, "_"); myFilePath = Folder.desktop + "/" + myBaseName + "_" + myPageName + ".pdf"; myFile = new File(myFilePath); myDocument.exportFile(ExportFormat.pdfType, myFile, false, myPDFExportPreset); } }
Shonky
Tags: InDesign
Similar Questions
-
Multi paged document in individual pages of PDF - whose names
I have an InDesign document that I use for creating sell sheets for groups of sellers using the data merge.
I wonder if there is an easy way to extract these pages as individual pdf pages which bear the name of each page (D_Smith.pdf, RJones.pdf etc.)
Currently, I am using Acrobat and extract pages and manually tag each pdf.
See if it works. I assume you have a text frame on the master page to the name of data merge, that you want to use as the title page PDF. If you select the image on the master and open the called Script Panel (window > utilities), you can give the frame a label. Keep in mind that the title of the script will not apply to existing pages, where the framework has been substituted:
Here's the script that exports PDF pages using the content of the text labeled as the title field. If there is no text field on a page with the label MyName page number is used as the title instead:
-label of the text field. It must match the text exactly frame label.
Set targetlabel to "myname".
Tell application "Adobe InDesign CS6"
activate
-prevent the opening when they are created from PDF files
Configure PDF de PDF export preferences false
-Export preset dialogue-
-Look for an active document
If (count documents) is equal to 0 then
box display dialog "Please open a document" buttons default button 1 with icon caution 'OK'
return - 128
end if
-the name of doc to name the PDF files
the name of the active document myFileName value
-Predefined PDF dialogue choice.
Set myLabelWidth 250
myDialog to value properties {name: "Export Preset"}
say myDialog
say (to make the column of the dialog box)
say (check the border Panel)
say (to make the column of the dialog box)
tell (do the line of dialogue)
Set to PresertList name of each application PDF "Adobe InDesign CS6" export preset
make a static text with properties {dynamic label: "' PDF preset:" "}
the value of myPDFPresetDropdown to do drop-down list with properties {string list: PresertList, index selected: 4 min width: myLabelWidth}
tell the end
tell the end
tell the end
tell the end
tell the end
-the results
Ditto for show value myDialog
So Ditto = true then
the value of element ((index sélectionné de myPDFPresetDropdown) + 1 myPDFPreset) of the PresertList element
on the other
return
end if
destroy myDialog
-------------------------------export PDFs----------------------------------
-Choose the folder for the PDF files exported
Set myFolder (choose the folder with the command prompt "Please select an export Destination") as string
tell the active document
the value NumberOfPage pages per document of document preferences
5000 seconds Timeout
Repeat with x from 1 to NumberOfPage
-define the content of labeled as the name of the PDF doc
-If there is no field of text labeled only use the page number
Try
the value pdftitle (content of each block of text on page x, whose label = targetlabel)
in case of error
pdftitle x as string value
try to end
the value path (myFolder & pdftitle ".pdf")
-Together the range of pages, the tell must include ID
Tell application "Adobe InDesign CS6"
range of pages in a PDF export preferences (x as string) value
export format of the document 1 type of PDF to path using the PDF export preset myPDFPreset
tell the end
end repeat
end time-out
tell the end
display the dialog box "Pages have been exported".
tell the end
-
export one page of pdf document
How do export you one page of a document?Click Tools, on the right, then pages, then extract and continue from there.
You can also open the Pages panel on the left, select a page (or pages), right-click and select Extract Pages...
-
Export a book to PDF - problem with common pages
Hello
I'm trying to export a book that has a lot of chapters. Each chapter is a single file. Each document starts with an odd page and ends with an even page.
That the command is something like the image below. Where there's for example page 4 4 & 5 common together. Is it possible to print individual pages in PDF format?
Thank you!
Nano
Looks like you are trying to export to interactive PDF format. By default, exporting spreads and you get what you see.
You can either change to export to PDF format (Print) (lose the functionality of the button), or you can run a script to change the interactive export behavior. One place, you will find the script interactive PDF to InDesign CS5 is always a stretches on. InDesignSecrets
-
Cannot export a page in a document of six pages in pdf format
I have a document 6 pages created in an earlier version of In Design I have updated and now want to export single pages in pdf format. However, under file / export, after stating the name of the file and clicking on the Save BUTTON in the window export to Adobe PDF, I can "Select all" or "Beach" on the PAGES but gout options against the "Range" are only "all pages" or "A4 V.
Usually, this is where I would choose the number of the page I want to choose, but I can't do it-only given two options.
How can I change the drop-down menu for a box of simple manual entry?
Jacqui
PS Please understand that I am a user in Design V3 and before that Pagemaker 6.5, so I am a novice in the CC of design. This document has no pages masters, nor a model - but are they necessary? Someone suggested that I need to check my master pages and assign a new model to the pages...
You should be able to click on A4V and enter your page range.
-
I have created a multi-page document in inDesign and exported in PDF format. The original file size is 13.27 mb. I used the command size reduced to 2.86 to the file to download on the internet. However, one of the images in the original pdf file does not appear in the smaller file. Can someone help me?
Try the PDF tool optimize.
-
Can I export a separate multiple pages as PDF document into an output?
I use InDesign CS5 on Mac (7.0.3).
I received a list of 500 unique codes (from Excel) to superimpose an existing label.
I placed the text (codes) in the size/position and color in a 500-page InDesign Document.
Now, my question is... Is it possible that I can export the 500 pages in individual PDF format
without having to... export as page 1, page 2 to export, export page 3, etc.? (500 x time!)I really don't want to take the risk to save everything manually, because I have to go back and double power to the original source file.
Usually it is much easier to export the PDF file and split it using Acrobat Pro...?
G
-
Hi all
I have a poster design that has two faces with four columns on each side. The size is wide and high of 8.5 '' 22 ''. Now, I have a requirement where I need to print (in PDF) of each column as an individual page in a single PDF file.
What formatting changes are necessary to allow a single InDesign document that will be printed as a PDF layout page by page and the design of the poster?
Thank you.
Show import options...
-
InDesign index - indexing a book and having links to page in PDF format
I create an index on a book of consisting of 30 indesign documents. When I export the book in PDF format, I want to be able to click on the index page numbers and do go to this page. The problem is that I can't get the index of links in a PDF file to work on the document that I have the index. If I have my index finger in the last document and create an index on the second page entry it creates fine but once exported in PDF format the link does not work. In CS4 I created small books like this with no problems.
Any suggestions?
Thank you
Josh
Take a look at
Interactive PDF from InDesign CS5 has always Spreads on | InDesignSecrets, including comments.
-
InDesign-individual pages to spreads
Hi all
the rtx document that I placed in indesign has 60 unique pages that are displayed as pasta at 31 spread: I need to edit and export as pages flowing individul. How can I get the out format of spread and in individual pages so that they can be edited, formatted and exported correctly?
Thanks in advance for your help risk this.
These are individual pages. These differences in thirty-one consist of a spread of one page for each of the first and last pages and pages for everything else. How is it, your readers will be viewing the document done when printing double-sided and is how you should be editing, unless you plan to only print only one side of each page. If this is the case, change the document front pages not by unchecking the checkbox of the document.
-
Doubt on the export of pages in JPG format at high resolution with Indesign
Hello
I use to work two software, your skill of QuarkXpress and Indesign. If I had to choose one, I prefer Indesign, it is very nice and I love it, but I have to work with the software.
Well, I have a doubt about the use of Indesign method to export a page in JPG, high-resolution, because QuarkXpress do the same job, but in a different way, so my doubt is about the quality of the files produced.
It is a very technical issue, if someone with experience in the professional press and print or an Adobe expert could answer, I would be grateful.
InDesign, producing a poor quality file or QuarkXpress that producing a poor quality file?
My question is as follows:
I opened a document in Indesign, and I decide to export it. To simplify things, we have a unique page DIN A4 document.
So I tell Indesign to export the pageand I want a JPG, high-resolution 300 DPI file.
Indesign do his job very well, and produce the file exported. This is a JPG file, there are 300 dpi.
If I open the document in Photoshopand I'm going to... Image of ... Image size...
I see the Indesign document indicates the exact measurements of a DIN A4 210 x 297 mm and the resolution of the file, I have 300 DPI.
Therefore seems to be that indesign has done a great job.
Very well.
Now, I explain what is happening with QuarkXpress.
I do the same thing, I have a document to a single page, DIN A4 and I export it as JPG format at high resolution of 300 dpi.
Well, now QuarkXpress, create the file and I open the file in Photoshop.
Surprise.
The file has larger than DIN A4 and a lower resolution dimensions!
Exactly, QuarkXpress produce a jpg of the following dimensions: 874,89 x 1237,9 mm and a resolution of 72 dpi
When I see 72 dpi, I think that the document is in low resolution. However, I have a larger document?
I open the QuarkXpress file in Photoshop, then I uncheck resampling, in this way Photoshop will never change the image. Now, I change the value of resolution of 72 dpi, 300 dpi, which is the value I want.
And what happens? What happens is that I get a document with measurements of a DIN A4 and also at 300 DPI.
???
So basically QuarkXpress does the same work in Indesign, but in a different way.
The file QuarkXpress are 2.29 MB more or less. The Indesign file are 3.84 MB more or less.
So why these differences?
Which method is the best and why Indesign produce a different file to QuarkXpresss?
See you soon
As far as I know, the ppi is not the required metadata for the images.
So Im guessing that Quark exports jpg ppi worthless.
But Photoshop is to assign a value of ppi when it opens an image without specified ppi value.
This value is be 72, but it could be anything, because the pixel dimensions do not change.
-
When I try to export a .docx in .pdf formatting is displayed based on the original field. Rather than show any number of page of the pdf shows "{PAGE}", for example.
I work with Word to Office 365 on an iMac with OS X El Capitan.
Any help? Why is it not possible to create a good ISO pdf / a file?
OK, in my opinion, there is a setting in Word Printing Options. It will vary with the version of Word, here's an example https://support.microsoft.com/en-us/kb/326503
Creation of PDF files will use a printing technology and can be affected by some of the same settings.
-
Hi, I use Apple Photos to create a photo book. When I export to PDF, photos that are over 2 pages are exported as a single PDF page. For printing purposes, I want this to export in the form of 2 separate pages. I did this with iPhoto in the past and this could be something to do with the preferences of Adobe. I contracted Apple and their export seems thin e (or 2 separate pages). Any ideas?
If you have not Acrobat is installed, then clearly, it's a matter of Apple having nothing to do with any "setting Adobe." There is nothing we can do at Adobe to help you. Sorry!
-Dov
-
Is it possible to export a page as muse and html associated individual with css?
Is it possible to export a page as muse and html associated individual with css?
Yes, Muse has an export as HTML feature.
-
Export selected items on each InDesign pages in JPEG format
Hi all
I have InDesign CS5.5. I have a document with more than 50 pages, and each page has a unique image and description for the image.
I need to export each page as a JPEG. but I don't want to export at full page. I don't need the elements on each page. So, I go to each page and select all the elements and exports. When exporting, I use the same name of the image used on each page.
I tried to write a screenplay, but it exports only the current page. I do not know how to navigate to the next page and export.
is that someone can help.
Here is my script.
myDoc var = app.activeDocument;
var myNumPages = myDoc.pages.length; get the number of pages
var CheminMonFichier = myDoc.filePath; get the path of the file
myRectangle = app.activeWindow.activePage.allGraphics var; get the graph of the current page
var app.activeWindow.activePage.name = myPageName; get the name of the page.
if(myRectangle.Length >1)
{
Alert ("the page has more than one image. Remove the other image to export');
Exit();
}
var myImageName =. itemLink.name myRectangle [0]; get the name of the image
App.Select (NothingEnum.Nothing);
for (var i = 0; i < myNumPages; i ++)
{
app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
app.jpegExportPreferences.exportResolution = 300;
app.jpegExportPreferences.jpegExportRange = ExportRangeOrAllPages.exportRange;
app.jpegExportPreferences.pageString = myPageName;
mySelectedItems();
}
function mySelectedItems()
{
var myObj = new Array;
myObj = app.activeWindow.activePage.pageItems;
Try
{
app.activeWindow.activePage.groups.add (myObj);
}
catch (e)
{
}
App.Select (App.activeWindow.activePage.allPageItems);
App.Selection [0] .exportFile (ExportFormat.JPG, file (CheminMonFichier + "/" + myImageName + ".")) "" "JPEG")(, false);
}
export all images of each page like this test
myDoc var = app.activeDocument;
var myDoc.filePath = myFolder.
var myImage = myDoc.allGraphics;
for (var i = 0; myImage.length > i; i ++) {}
App.Select (myImage [i]);
var MyImageNmae is myImage [i].itemLink.name;.
app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
app.jpegExportPreferences.exportResolution = 300;
App.Selection [0] .exportFile (ExportFormat.JPG, file (MyFolder + "/" + MyImageNmae + ".")) "" "JPEG")(, false);
Alert (myImage, [i],.itemLink.Name)
}
Maybe you are looking for
-
The use of iPhoto in El Capitan
"If you open iPhoto or Aperture after you upgrade to Photos, you will be asked if you want to open your library here or in pictures. Changes or changes that you make in iPhoto are not reflected in the Photos. "And any changes or modifications that m
-
makes a sound "tchopp" opening each new web page, started recently, Mac OS 10.8
Firefox version for mac 19. I tried to disable plugins one: update of Java 7 17. QuickTime 7.7.1; 14.3.2 SharePoint; Shockwave not flash 11.6.602.180 - no help. The noise does not occur using Safari. I also deleted and reinstalled Firefox and accessi
-
What could make an A135-S4478 downturn in relatively short time
Alrighty, got this thing a good guessing now over a year since I paid the debt. This was by far one of my computers laptops best - I run a home business as a programmer and I'm pretty picky about these things (that is constantly on and about 10 hours
-
How to uninstall avast free anti-virus when you can not find it under programs and features?
I can't uninstall avast free antivirus from my laptop because I can't find it under programs and features. It started only happenin a few days ago, when I installed McAfee VirusScan Enterprise 8.8 on my laptop WITHOUT uninstalling the avast. After in
-
given the date and time not set when computer starts. also have a problem with typing
by turning on my computer, sometimes it lights up at all, and then I try several times so that it lights up. When switching on the main screen, it says error due to the date and time not set and puts my computer starts in safe mode. When I am that I