How to export book pdf using custom presets for all book files in indesign using javascript

How to export book pdf using custom presets for all book files in indesign using javascript.

Hi jackkistens,
Try the below js code.
Note: you can change your preset name in below (e.g, Your preset name).
var myBook = app.activeBook;
myBook.exportFile(ExportFormat.PDF_TYPE, File (myBook.filePath+"/"+myBook.name.replace(/\.indb/g, ".pdf")), false, "Your preset name", myBook.bookContents, "Book_PDF", false);
example:
var myBook = app.activeBook;
myBook.exportFile(ExportFormat.PDF_TYPE, File (myBook.filePath+"/"+myBook.name.replace(/\.indb/g, ".pdf")), false, "[High Quality Print]", myBook.bookContents, "Book_PDF", false);
thx,
csm_phil

Similar Messages

  • How to designate a program for all avi files

    hi. i dl-ed the vlc player recently, but i dont know how to set it as the default player for all avi files. i secondary click on a avi file and go to others... and select the vlc player with 'always use this program' checked, but this allows only that single avi file to open with vlc. the rest of avi files are still set to open with quicktime. please kindly help me to designate the vlc player to open all avi files. thank you.
    my best,
    jeff kwak

    If you use the Finder and do a 'Get Info' on your target file, you'll find additional options/dialogs that will let you choose to open all similar files with the same application...check it out and come on back if you get lost in the process, etc.

  • HT201269 How can I set up same back up for all my apple devices

    How can I set up same back up for all my apple devices
    I use online tools all from apple devices 2 iPhone 5g & 5s & iPad mini
    I want same back up for all devices
    Specially I use appointments app
    I don't want to loose any appointment
    So can I use same backup for I devices
    Please help !,,,,,

    You can also just use the same restore backup for all your  devices you will get the same notifications BUT you have to click on Sync over wifi so it can work if not they will only work when you sync them when you sync on computer

  • Anyone know how to export a PDF from InDesign so it is "click to go to next page" instead of "scroll to go to next page"?

    Anyone know how to export a PDF from InDesign so it is "click to go to next page" instead of "scroll to go to next page"?

    I don't use the latest InDesign, but in the past ID's options for exporting to PDF did not allow setting how a PDF should be viewed once exported.  However, these settings can be adjusted in Acrobat through Preferences: check out Page Layout and Zoom under Page Display.
    David

  • How to export interactive pdf?

    hi,
    pls help me,how to export interactive pdf?
    thanks,
    vijay

    Hi Vijay,
    you can use following commands to export the interactive PDF
    InterfacePtr<ICommand> pPDFExportCmd(CmdUtils::CreateCommand(kInteractivePDFExportCmdBoss));
    if (pPDFExportCmd == nil)
         break;
    InterfacePtr<IInteractivePDFExportPrefs> pExportPrefs(pPDFExportCmd, IID_IINTERACTIVEPDFEXPORTPREFS );
    if (pExportPrefs == nil)
         break;
    instead of
    InterfacePtr<ICommand> pPDFExportCmd(CmdUtils::CreateCommand(kPDFExportCmdBoss));
    if (pPDFExportCmd == nil)
         break;
    InterfacePtr<IPDFExportPrefs> pExportPrefs(pPDFExportCmd, IID_IPDFEXPORTPREFS);
    if (pExportPrefs == nil)
         break; 
    and then set the export options through api IInteractivePDFExportPrefs
    Hope this helps.
    Regards
    Farzana.

  • How to export a PDF to a word document? at the moment it came up with "The encoding (CMap) specified by a font is missing ????? what can I do?  thanks

    How to export a PDF to a word document? at the moment it came up with "The encoding (CMap) specified by a font is missing ????? what can I do?  thanks

    Hi frenchiem,
    This is due to the PDF file cannot display the original fonts. To fix it, creator should create the PDF file with the embed font option enabled. Thus, user can open the file on any platform with the same layout. Or the Acrobat product can display them after you install the appropriate font support package on the client side.
    Regards,
    Rave

  • Hello , I want to ask some question about ipads \  How powerful is the iPad?  How useful is it for reading books, newspaper or magazines or for surfing the web? Can you identify any shortcomings of the device?   please help me :(

    Hello ,
    I want to ask some question about ipads \
    How powerful is the iPad? 
    How useful is it for reading books, newspaper or magazines or for surfing the web?
    Can you identify any shortcomings of the device?  
    please help me

    it's less powerful than your average computer. THink of it like a netbook but with a better processor.
    It'll do fine for surfing (although if you browse a lot of flash based sites you will need to get a third party browser since safari doesn't accommodate it)
    You may do OK on reading books, papers or magazines, especially if they have apps, but the ipad's screen is backlit, so it doesn't work well outdoors and you may need to fiddle with the brightness so that you don't get eye strain (it's just like doing too much reading from a computer screen)
    I would say the biggest short comings are data transfer. Apple's preferred work flow is that everything is done via iTunes or the internet....well people dont' always have 100% reliable always on internet access so you can find yourself in a situation where you can't get things on/off the iPad.
    By and large, it's a good device for day to day stuff, but is not a computer replacement.

  • When I try to set my 'History Setting' to 'Use custom settings for history' it doesn't appply - it continually defults to 'Never Remember History' - how do I fix it?

    When I got into my 'History Setting' and click on 'Use custom settings for history' it doesn't apply. I click on the 'OK' tab and it appears to apply and then closes. When I go back into it, in order to see if it applied, it has reset back to the 'Never Remember History'. How do I fix it?

    If "Never Remember History" is displayed then that means that you are in Private Browsing mode and that all other history settings have the default value.
    *https://support.mozilla.com/kb/Private+Browsing
    If you intend to run Firefox in Private Browsing mode the that is OK.<br />
    Otherwise you need to leave mode.
    To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Deselect: [ ] "Permanent Private Browsing mode"

  • HT1535 I use my iPod for audio books.  How do I delete books from the iPod after I have listened to them?

    I use my iPod for audio books.  How do I delete books from the iPod after I have listened to them?

    Hello ListenIt,
    While the following was written for the iPhone, the process should be the same on your iPod Touch.
    Remove a song from iPhone. Tap Songs, swipe the song, then tap Delete. The song is deleted from iPhone, but not from your iTunes library on your Mac or PC, or from iCloud.
    iPhone User Guide - Playlists
    http://help.apple.com/iphone/7/
    Cheers,
    Allen

  • I use my IPod for Audio Books, how do I 'fast forward', I use my IPod for Audio Books, how do I 'fast forward'

    I use my IPod for Audio Books, how do I 'fast forward',

    While listening to an audiobook, click the Center button twice to reveal the scrubber bar. Use the scroll wheel (like you do to move up and down the menus) to fast forward or rewind through the audiobook or audiobook track.
    B-rock

  • I have selected "Use custom settings for history" and pressed "OK" but it defaults back to "Remember history", how do I stop this?

    I have to enable cookies in order to have an online purchase credited to my mileage account. So, I opened Firefox Tool and selected Options then Privacy. There, I changed "Remember history" to "Use custom settings for history," as, this will achieve what I am trying to do. However, when I press "OK" the box jumps back to the Privacy box and I see that "Remember history" is still the setting. What steps do I take to prevent the Privacy box from defaulting to "Remember history" when I want to change that setting to something else?

    The "Use custom settings for history" selection allows to see the current history and cookie settings, but selecting this doesn't make any changes to history and cookie settings.
    Firefox shows "Use custom settings for history" as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.
    If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".
    "Never Remember History" means that Private Browsing is active and "Always use private browsing mode" gets a checkmark.
    Do you have a problem with the cookies?
    You can inspect and manage permissions for the domain in the currently selected tab via these steps:
    *Click the "[[Site Identity Button|Site Identity Button]]" (globe/padlock) on the location/address bar
    *Click "More Information" to open "Tools > Page Info" with the Security tab selected
    *Go to the Permissions tab (Tools > Page Info > Permissions) to check the permissions for the domain in the currently selected tab
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"

  • Custom pagination for APEX 4.2 interactive report using Page Zero

    Hi,
    I want to implement an «Custom pagination for APEX 4.2 interactive report» using a «page zero».
    I recently migrate from Apex 3.1 to Apex 4.2 and my «Custom pagination for APEX 3.1 interactive report» using a «page zero»  is not working any more.
    So now I try to adapt an excellent example of Jari Laine for 4.0 but using a page zero.
    I put the code JavaScript to Page zero but I must create an dynamic action to fire only for an interactive report region.
    It’s a good idea?
    Thank you

    Thought I would try once more with my DatePicker question.
    On the Apex.Oracle.Com website I have created a 1 page application that has an Interactive Report.
    [url http://apex.oracle.com/pls/apex/f?p=15655:1]
    user = 'test'
    password = 'test'
    I have 2 questions :
    (1) In IE7, press 'Actions', 'Filter'. On the Column dropdown list, select 'Order Timestamp'.
    Notice the prompt icon to the right of the 'expression'. This should change to the Datepicker, but in IE7 it does not. Try the samething in Firefox or Chrome and the Datepicker will appear.
    Is this a BUG, or does Apex 4.02 not support IE7 ?
    (2) In Firefox or Chrome, where you can now see the Datepicker, you will notice that it is the new style picker, not the old style ( called 'classic' ). I want to change it so that it shows the 'classic' datepicker not the new, but cannot see how to do it, if indeed you actually can.
    I would really appreciate it if someone could take a look and let me know if I am going mad, or if we need to get all our users onto IE8. We have now gone live with Apex 4.02 and need to resolve these issues.
    Thanks in advance.
    Edited by: DooRon on 10-Mar-2011 05:13

  • I want to set Firefox to never remember history. When I do this using the tools tab and click okay, it goes right back to "Use Custom Settings for History". I don't want that.

    I know how to manage privacy using the tools tab at the top of the address bar, or so I thought. I want to choose "Never Remember History". When I do that, and click "OK", the next time I check the privacy settings, the history is right back to "Use custom settings for history". I don't want this. Also, I don't want to use autocomplete for forms, but I can't get those settings to stay, either. I basically don't want info. stored on this computer. My system was hacked several months ago, by some joker who named all my system folders a racist slur (I reported it to Norton, and a technician had a look at it). Anyway, I want to keep things as safe as possible. Please allow me to delete all my history when I close Firefox. I don't really like Google, either, because they have a reputation for not respecting people's privacy. I don't like that I didn't have an option to uncheck google's toolbar when I installed Firefox.
    Thank you.

    That is probably OK.<br />
    You may have changed one of the other history or cookie settings.
    If Firefox shows the "Use custom settings for history" setting then that is an indication that at least one of the history and cookie settings are not the default to make you aware that changes were made.

  • Exporting to PDF with Vector/Transparency issues? (huge file)

    Hi folks
    I have a 36 page magazine in Indesign which has a lot of illustrator images placed in, some of which have transparency applied.  The images are xmas icons and there are 10 or so on each illustrator file so there are only 3/4 illustrator files placed but they are done many times over within the Indesign file.
    When I export to PDF the file size is huge.  154mb.  I am sure it is to do with the vectors/transparency, but dont know how to correct this to bring the PDF file size down.  Any ideas?
    Thanks

    To echo Peter's response, 154 MB for a 36 page magazine is not necessarily all that large, especially if the content is graphically rich.
    There is some information you are not providing us. For example, how are you bringing in the Illustrator artwork? And with what settings are you exporting PDF?
    In the first case, the most efficient way to bring Illustrator content into InDesign is to save the Illustrator artwork as PDF/X-4 and place the resultant file into InDesign. InDesign is more likely to reuse the content for PDF export if the content is placed in that manner.
    In the second case, content with transparency can yield very bloated PDF if you export PDF with flattened transparency such as you would get with the PDF/X-1a or PDF/X-3 export settings from InDesign (or for the Illustrator-based imported content, PDF saved from Illustrator with such settings). Again, we recommend PDF/X-4 for PDF export maintaining live transparency and original color spaces with ICC profiles and avoiding the bloat caused by transparency flattening and conversion of RGB to CMYK.
              - Dov

  • Unable To Use DVDSP4 Presets for HD-DVD in the H.264 Format

    I recently prepared a 23 minute slide show using Fotomagico from high resolution Hasselblad slides scanned in at 1200 dpi. Within Fotomagico I rendered the Fotomagico slide show to Apple ProRes 422 HQ, took it into Final Cut Pro 6.03 and added an intro and closing section. I then sent this to Compressor and selected the 30 minute HD-DVD preset which uses mpeg2. All went fine with the encoding to mpeg2 and I got a successful build and format out of DVDSP4 after importing the resulting .m2v file into DVDSP4. However, while the disk plays back fine in my Mac Pro it plays back with stuttering (audio and video) on my Toshiba HD-A2 HD-DVD player. I used a Verbatim Datalife DVD+R, but several other discs from other manufactuers including a DVD-R disc showed the same problem.
    Please note that I have the latest firmware on my Toshiba HD-A2 and I have successfully burned RL HD-DVD discs using my PC and Windows software (Ulead's DVD Movie Factory 6+) which play fine without stuttering on my HD-A2.
    I then decided to send the project to Compressor and use the 60 minute HD-DVD preset that encodes to H.264. Once again Compressor successfully executed the encode of my 23 minute slide show and it plays fine in QuickTime or MPEG StreamClip. However, every time I try and import this .mov file encoded in H.264 using the Compressor preset for HD-DVD into DVDSP4, DVDSP4 brings it in to the assets folder, but after a couple of seconds DVDSP4 crashes. Using console I get a message that DVDSP4 quit unexpectedly due to a "segmentation fault".
    I also tried to take the ProRes Fotomagic project in Final Cut Pro 6.02 and send it out with Quicktime Conversion using the H.264 codec. Again I have a file that plays fine in QT, but when I try and import this .mov file into DVDSP4, I get the message "imcompatible format".
    In summary, I am completely frustrated after many many hours of work at trying to prepare an HD-DVD on red laser of my slide show in DVDSP4. I cannot figure out what I am doing wrong, and I would be most appreciative of any suggestions anyone may have.
    Thanks in advance.
    Tom

    Am I the only person who has ever tried to use the Presets in Compressor 3 for encoding HD-DVD disks? I would like to use these presets for burning HD-DVD's to standard red laser media as I have done on my PC. With the mpeg2 Preset I can get nothing but stuttering video when played back on my Toshiba HD-A2 and when I use Compressor 3 to encode with either of the H264 presets, the resulting .mov file causes DVDSP4 to crash when I import the file. Has no one else experienced this? Does anyone have any thoughts on addressing these issues other than to go back to working on my PC?
    Tom

Maybe you are looking for