Export to pdf using presets

Hi
I want to create a pdf using export to pdf option with a preset in Indesign.
I have found this following code in Adobe Scripting Guide: VBScript. But it is not working when I tried to run this script by converting this into vbs and added into scripts folder of Indesign.
Set myInDesign = CreateObject("InDesign.Application.CS3")
myInDesign.ActiveDocument.Export idExportFormat.idPDFType, "c:\myTestDocument.pdf", False, myInDesign.PDFExportPresets.Item("[Press]")
Is this anything I have to do with "c:\myTestDocument.pdf" ( I dont understand whether I have to place a pdf in this location before run this script). Please explain.
Thanks a lot.
Regards,
Muthuraj. D

That parameter is the output file name, as described in the Javascript help. I would know where to look for VB scripts -- isn't that built-in?

Similar Messages

  • 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

  • Report Title and Text Area issue when exported to pdf using Viewer

    Hi there,
    We are using OracleBI Discoverer Version 10.1.2.55.26
    We have reports that displays Report title containing the following
    - Report Title
    - Runt Date and Time
    - Page No
    And text area which displays 'Last Page'
    Following properties are set at the worksheet level using page setup
    Report Title --> 'Print on every Page'
    Text Area --> 'Print on last page'
    The report when exported to PDF using Discoverer plus works fine and displays report title and text area as defeined.
    But when we try to export the same report to pdf from Discoverer viewer, it displays
    - Report title on first page only.
    - text area on all pages
    All our users accesses report using discoverer viewer so we cannot open discoverer plus to them.
    Is there a solution which will enable us to export the report in pdf using discoverer viewer and displays the same output as discoverer plus.
    Please let me know... If you have any questions then please feel free to ask.
    Thanks in advance for your help...
    Manish

    but when opened on other os x machines some text is colored differently than it should be
    Well, if typographic objects are colour managed, the colour appearance is dependent on the source ICC profile that describes the colourants in the typographic objects and the destination ICC profile that describes the colours the display is able to form and the RBC colourant combinations that will form those colours.
    In general, typographic objects should have special treatment, since the expectation is not that typographic objects should be colour managed, but that typographic objects should simple be set to the maximum density of dark. On a display, that is R=0 G=0 B=0 and on a seperations device (a lithographic press) that is C=0 M=0 Y=0 K=100.
    If for some reason typographic objects are colour managed, and if the ICC profiles for the displays are off by half a mile or more in relation to the actual state of the display system, then the colours will not be the same. On the other hand, if those displays are calibrated and characterized, then the colourants will be converted to form the same colours on the displays.
    /hh

  • Indesign export pdf used preset include comment

    Is there a way including the summary of the used preset as comment within the exported pdf? Within Acrobat Distiller you have an option called "save adobe pdf settings inside pdf file", is there also such an option available in Indesign?
    As a receiver of pdf files, then you have the possibility detecting which preset is used.
    Regards,

    There is no such option.
    Instead, you should use Acrobat Pro's Preflight tools to check for issues like image resolution or colors spaces which are important to your workflow.

  • Export to PDF using a server

    I work as the IT admin for a design studio.
    They all use Indesign CS2 and seem to spend hours processing large 100 page plus jobs to PDF.
    Is there a program that I can install on the server so that the processing can be done on the server?
    I looked at distiller server, but it seems making the necessary file for input to distiller takes as long as pdf'ing in the first place.
    Pleas distiller server is really expensive for a small studio.
    Is it just a case of putting up with it?

    hi Thomas,
    do you mean you have InDesign Server or you have File Server without InDesign ?
    if you have File Server and you can install on it regular version of InDesign (not Server version) - I can help you - I have application to watch selected folders and export (or print) automatically new files - SPE_WatchDog
    and there is second application - SPE_Manager - used to prepare information about which pages should be exported (or printed) from each InDesign file
    each monitored directory will have assigned PDF/Print Preset, output directory, beginning of PDF's file name and numbering style
    or you can convert regular computer with InDesign to PDF-Export(Print)-Server ;)
    if you have InDesign Server - I can try to modify my tool to work with it
    robin
    www.adobescripts.com

  • Error when exporting to pdf using Infoview.

    Hi,
    If I preview one of our reports (built in CRXI) in the CMC for CR server and then attempt to export the output to a PDF after waiting for a few mins I get the error:
    Error
    Your request could not be completed because a failure occurred while the report was being processed. Please contact your system administrator. 
    The report has 6 supreports each that take 2 parameters. Previously we have had problems with this report when trying to change the database connections for the subreports (we were getting a 'Missing prompting units' error until we started making the database connection change in CRXI, running from CRXI not the CMC and then saving the file to the repository once it had run successfully with the new connection settings).
    All our other reports preview fine, they do not generally use sub-reports or multiple parameters though.
    Thanks for your help.

    There's so many variables for each Enterprise action, even with an effort to improve these over the years, the Enterprise error messages are usually so vague you have to trace to really identify the issue.
    Exporting directly from Crystal Reports is a good start.
    Sometimes it's just a matter of the report has streamed the 1st/beginning pages to you, but it is still processing in the background when the export to pdf is executed. Since the report is not complete, it fails. Try scheduling it directly to pdf to eliminate this possibility.
    Else you will have to trace the Page Server or RAS to get more info.

  • Why does an InDesign document exported to PDF using data merge result in very different sized PDFs?

    I've got a small sheet that I update on occasion and use data-merge to add people's names to the sheet. It's very much like an invitation where every invite has a different name on it. I use the data merge feature to select a list of names and then they get inserted into the document. Then I use the Export to PDF command in the data merge window to create a pdf that has all of the invitations in one big file. They are four-up per page on letter sized paper. Sometimes I print 2000 of them and the resulting PDF is about 2mb, sometimes I print 1000 of them and it's 20mb. Document, settings, method of issueing the commands to output the files are all the same. The only difference is the list of names and those are all almost identical in length. Anyone know what could be happening?
    One clue is that it takes about a minute to run when the result is going to be a small file and about 5 or more minutes when the result is going to be a large file.
    My guess is that sometimes it includes a copy of the images once per page, and sometimes it only includes them once per document, but I'd love to know why and how to control that. Thanks.

    And you verified that the links panel shows everything as up-to-date?
    The only other things I can suggest at the moment are the standard two trouble shooting steps: Remove minor corruption by exporting and Replace Your Preferences

  • I am having problems exporting to PDF using InDesign for Mac.

    Hi all!
    I just started using the Creative Suite on Mac and have run into a couple problems. One is that when I set up a document in InDesign using "Facing Pages" and then export to PDF, the document exports each set of "Facing Pages" as one singular spread (my 20 page InDesign document becomes a 10 page PDF). Once it is a PDF, there are no page break lines in the center of the spread to indicate that they are two separate pages, and when I try to set up viewing preferences in Acrobat (single or double page), it too recogrnizes each spread as a single page.
    When I used to do this in InDesign using Windows, whether I exported to PDF or printed to PDF from a document set up with "Facing Pages," each page would still be considered separate once converted to PDF (20 page InDesign docment becomes a 20 page PDF).
    This also leads me to my next question : I see that on Mac, there is no option for printing to PDF, but I notice a quality difference specifically when it comes to linework (vector information) that has been "placed" in the document from Illustrator. Is there any way to achieve the quality of printing to PDF on Mac?
    Thank you in advance!
    Gabby

    Hi Bob, I just tried your suggestion, but the interactive PDF is in spreads by default, no way to change the setting. When I choose to view by single page in Acrobat, it displays a single spread.
    When I choose to view by spreads, it displays 4 pages, two spreads. That's the topic of this whole discussion, I believe. I do own CS 6 at home, however my employer supplied me with CS 5.5. And I have very little, if any, influence on purchasing.
    So, I have no good way to make an interactive PDF (with differing recto/verso headers and footers), that is accessible and shows the correct header/footer. It's either single pages (with one header/footer), or recto/verso headers/footers but PDF only as a spread, as well as I can tell.
    Unless you know something else I can do...
    Best, Marilyn

  • Problem exporting crystal PDF using printoutputController.export method

    Has anyone used PrintOutputController().export() method in ReportClientdocument to export Crystal PDF report to a JavaIOStream. I am getting an error when I try to export it using this method. The error I get is unable to connect RAS.rptappsrver followed by classcast unable to export to IXMLSerializable. Here is the code I am using.
    Is there some setting I need to enable on the server to use the export function or any other idea will be appreciated?
    IReportAppFactory reportAppFactory = (IReportAppFactory) enterpriseSession.getService("","RASReportFactory");
    ReportClientDocument reportClientDoc = reportAppFactory.openDocument(reportID, 0, Locale.ENGLISH);
    return reportClientDoc.getPrintOutputController().export(exportOptions);
    Here is the exact Exception:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Unable to connect to the server: FICLDEV303VWIN.RAS.rptappserver. --- com/crystaldecisions/sdk/occa/report/exportoptions/ReportExportFormat incompatible with com/crystaldecisions/xml/serialization/IXMLSerializable---- Error code:-2147217387 Error code name:connectServer
    Caused by:
    java.lang.ClassCastException: com/crystaldecisions/sdk/occa/report/exportoptions/ReportExportFormat incompatible with com/crystaldecisions/xml/serialization/IXMLSerializable
         at com.crystaldecisions.proxy.remoteagent.FetchReportViewingRequest.saveContents(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.FetchReportViewingRequest.save(Unknown Source)
         at com.crystaldecisions.xml.serialization.XMLObjectSerializer.save(Unknown Source)
         at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.z.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.fmr.fic.fund2fund.web.servlet.CrystalReportServlet.getReportByteStream(CrystalReportServlet.java)
         at com.fmr.fic.fund2fund.web.servlet.CrystalReportServlet.processUsingReportExportControl(CrystalReportServlet.java)
         at com.fmr.fic.fund2fund.web.servlet.CrystalReportServlet.doGet(CrystalReportServlet.java:128)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
         at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
    I
    Is there some setting I need to enable on the server to use the export function or any other idea will be appreciated?
    Edited by: Dilshad Ahmed on Nov 5, 2008 5:55 PM
    Edited by: Dilshad Ahmed on Nov 5, 2008 6:09 PM

    Here is the answer. After getting ReportClientDoc from factory we need to set the DatabaseController userid and password (if report on Crystal server is accessing oracle database as datasource). In addition we need to set parameters on the ReportClientDoc for reports and subreports before doing the the export.
    Here is snippet of code: The code below is used to get ReportClientDocument and export it as PDF using bytestream.
    /* Code for getting report client document */
    private static synchronized ReportClientDocument getReportClientDocument() throws Exception
             int count = 3;
             ReportClientDocument rpt = null;
             while (count > 0 && rpt == null)
                  try
                       if (_enterpriseSession == null)
                            ISessionMgr _sessionMgr = CrystalEnterprise.getSessionMgr();
                            _enterpriseSession = _sessionMgr.logon(CRYSTAL_USERID, CRYSTAL_PASSWORD, CRYSTAL_SERVER, CRYSTAL_AUTH);
                             LOG.info("Successful Logging into Crystal Server: " + CRYSTAL_SERVER);
                             _reportAppFactory = (IReportAppFactory)_enterpriseSession.getService("", "RASReportFactory");
                             _infoStore = (IInfoStore)_enterpriseSession.getService("InfoStore");
                             IInfoObjects result = _infoStore.query("Select SI_ID, SI_NAME From CI_INFOOBJECTS Where SI_NAME = '" + CRYSTAL_REPORT_NAME + "' And SI_INSTANCE = 0");
                             IInfoObject infoObject = (IInfoObject)result.get(0);
                             _reportId = infoObject.getID();
                             LOG.info("Located Report Id on Crystal Server: "+_reportId);
                        LOG.info("Created or found CR session");
                        rpt = _reportAppFactory.openDocument(_reportId, 0, Locale.ENGLISH);
                        break;
                  catch (Exception e)
                       rpt = null;
                       _enterpriseSession = null;
                       if (--count == 0)
                            throw e;
              return rpt;
    /* report for setting parameter */
    private synchronized void setReportParameters(ParameterFieldController fieldController, String reportName,
                  String[] reportParameterValues,     DataDefController subDataController) throws SalesforceException
             try
                  Fields params = subDataController.getDataDefinition().getParameterFields();
                   for (Iterator it = params.iterator(); it.hasNext();)
                        ParameterField paramField = (ParameterField)it.next();
                        int paramIndex = getElementIndex(_reportParameters, paramField.getName());
                        if (paramIndex < 0)
                             throw new SalesforceException("Parameter not defined in the configuration");
                        ParameterFieldDiscreteValue dVal = new ParameterFieldDiscreteValue();
                        dVal.setValue(reportParameterValues[paramIndex]);
                        fieldController.setCurrentValue(reportName, paramField.getName(), dVal);
                   LOG.info("Completed setting parameters for report " + reportName);
             catch (ReportSDKException e)
                   LOG.error("Set Report Parameters error: ", e);
                   throw new SalesforceException("Set Report Parameters error", e);
         catch (Exception e)
                   LOG.error("Error from getElementIndex: ", e);
                   throw new SalesforceException("Set Report Parameters error", e);
    /* main method used to getReport based on passing information */
        private synchronized byte[] getReport(String contactId) throws SalesforceException
             try
                  String[] reportParameterValues =
                       new String[] {_sessionId, _viewId, _requestId, contactId, _language};
                   DataDefController reportDefController = reportClientDoc.getDataDefController();
                   reportParameterValues[0] = (_cache.equalsIgnoreCase("true") ? "CACHE:Main" : "Main");
                   setReportParameters(reportDefController.getParameterFieldController(), null,
                             reportParameterValues, reportDefController);//.getDataDefinition().getParameterFields());
                   IStrings subRepNames = reportClientDoc.getSubreportController().getSubreportNames();
                   for (Iterator iname = subRepNames.iterator(); iname.hasNext();)
                        String subName = (String)iname.next();
                        reportParameterValues[0] = (_cache.equalsIgnoreCase("true") ? "CACHE:" : "") + subName;
                        setReportParameters(reportDefController.getParameterFieldController(), subName, reportParameterValues,
                                  reportClientDoc.getSubreportController().getSubreport(subName).getDataDefController());//.getDataDefinition().getParameterFields());
                   InputStream is = reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
                 byte[] reportBinaries = new byte[is.available()];
                 is.read(reportBinaries);
                 is.close();
                 LOG.info("Completed exporting Crystal Report as InputStream using export() method: "+contactId);
                 return reportBinaries;
             catch (ReportSDKException e)
                   LOG.error("Report generating error: ", e);
                   throw new SalesforceException("Report generating error", e);
             catch (IOException e)
                   LOG.error("Report exporting error: ", e);
                   throw new SalesforceException("Report exporting error", e);

  • Can't use touchscreen on my exported fillable pdf using my HP W8 tablet

    I've used FormsCentral to create and then export fillable pdf - (Tablet is WIFI only and sometimes I don't have a connection - hence I can't use it online all the time so I've exported as a pdf) - anyway. Tablet is Windows 8.1 Pro, 64bit, HP EliteTab 900. My problem is that unless I have my keypad plumbed in (which works fine) - I can't get the PDF to prompt for the onscreen keypad when I click on the open text fields. I don't always have the keypad on me - not practical for tablet use. Is there a setting or option or a different reader I should be using??

    Hi;
    I am going to assume by the Windows 8/8.1 Adobe Touch app you mean "Adobe Reader Touch" (the full screen Metro app as opposed to traditional desktop application). 
    If you do indeed mean the "Metro" version of Reader for Windows 8/8.1 devices you can post your issue in the related forum here: http://forums.adobe.com/community/adobe_reader_forums/metro
    I do not know why this isn't working in the Reader Metro, or if it is a feature that has been added there yet or not...  I am inquiring to find out.  In the mean time your crew members can always use the "desktop" Adobe Reader (Free download get.adobe.com/reader/) and the Submit button using the Email method will work from there.
    Thanks,
    Josh

  • Export to PDF using PDF Writer other than Adobe

    Post Author: m_z_iqbal
    CA Forum: Exporting
    Hi,
             How can i change the printer for CRVIEWER when exporting to PDF ?     Your reponse in this regard will appreciated. Thanks  

    That parameter is the output file name, as described in the Javascript help. I would know where to look for VB scripts -- isn't that built-in?

  • Call and Save Reports/Export to PDF using Dataplugin?

    Hello,
    My dataplugin is for various '.csv' files, and works perfectly when reading and loading the files. But, what would really be nice is if I could then somehow bring the data in those files into their appropriate report templates and then export that report as a '.pdf'.
    So, I tried adding:
          Call DataFileLoad([Filepath],[Script]
          Call DataFileSave([Filepath], ".TDM","TDM")
          Call Report.LoadLayout([Report Path])
          Call Report.Sheets.ExportToPDF([Path to save .pdf] ,False)
          Call Report.Refresh
          Call Data.Root.Clear()
    When I test the dataplugin by manually indexing a file, I receive the error: Variable is undefined: 'DataFileLoad'"
    So, if it is reading it as a variable does that suggest that it does not recognize functions unless they are stated in the sub?
    Is it possible to do what I would like it to do?
    Thanks.
    Solved!
    Go to Solution.

    Hi Kevin,
    DIAdem does not provide scheduling services, so some entity needs to tell DIAdem to start.  You can either manually set up a DIAdem to poll for files to pricess in an endless loop, or you can use the Windows Task Scheduler to launch a DIAdem instance periodically that automatically looks for files to process for a certain duration (after which it shuts itself down to avoid any potential long term memory leaks).
    R&D is interested in improving our offering for this use case, but as of DIAdem 2014 we do not have anything new available.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Is it possible to export 2 PDFs (using different settings) at the same time from InDesign?

    As above. The purpose being to end up with one high res (print) pdf, and one low res (online) pdf.

    Cheers pal.
    I'm currently using a 'batch process' in Acrobat Pro on all my Print PDFs (to convert to online PDFs). Guess I'll stick with that then.
    Was hoping there would be something magic I could do when making the original PDFs from InDesign.

  • How can I auto export a PDF File using the "Smallest File Size" preset and set the Exported File Name based on information from an Imported PDF?

    Greetings all,
    I am trying to create a script to automate a PDF export process for my company for inDesign. I’m fairly new to inDesign itself and have no previous experience with javascript, although I did take C++ in high school and have found it helpful in putting this code together.
    We have an inDesign template file and then use the Multi-page PDF importer script to import PDF files. We then have to export two version of each file that we import, then delete the imported file and all of the pages to reset the template. This has to be done for nearly 1000 pdf files each month and is quite tedious. I’m working on automating the process as much as possible. I’ve managed to piece together code that will cleanup the file much quicker and am now trying to automate the PDF exports themselves.
    The files are sent to us as “TRUGLY#####_Client” and need to be exported as “POP#####_Client_Date-Range_North/South.pdf”
    For example, TRUGLY12345_Client needs to be exported as POP12345_Client_Mar01-Mar31_North and POP12345_Client_Mar01-Mar31_South.
    There are two templates built into the template file for the north and south file that are toggled easily via layer visibility switches. I need to get a code that can ideally read the #s from the imported Trugly file as well as the Client and input those into variables to use when exporting. The date range is found in the same place in the top right of each pdf file. I am not sure if this can be read somehow or if it will have to be input manually. I can put North or South into the file name based on which template layer is visible.
    I am not sure how to go about doing this. I did find the following code for exporting to PDF with preset but it requires me to select a preset and then type the full file name. How can I set it to automatically use the “Smallest File Size” preset without prompting me to choose and then automatically input some or preferably all of the file name automatically? (If the entire filename is possible then I don’t even want a prompt to appear so it will be fully automated!)
    PDF Export Code (Originally from here: Simple PDF Export with Preset selection | IndiSnip [InDesign® Snippets]):
    var myPresets = app.pdfExportPresets.everyItem().name;
    myPresets.unshift("- Select Preset -");
    var myWin = new Window('dialog', 'PDF Export Presets');
    myWin.orientation = 'row';
    with(myWin){
        myWin.sText = add('statictext', undefined, 'Select PDF Export preset:');
        myWin.myPDFExport = add('dropdownlist',undefined,undefined,{items:myPresets});
        myWin.myPDFExport.selection = 0;
        myWin.btnOK = add('button', undefined, 'OK');
    myWin.center();
    var myWindow = myWin.show();
    if(myWindow == true && myWin.myPDFExport.selection.index != 0){
        var myPreset = app.pdfExportPresets.item(String(myWin.myPDFExport.selection));
        myFile = File(File.saveDialog("Save file with preset: " + myPreset.name,"PDF files: *.pdf"));
        if(myFile != null){
            app.activeDocument.exportFile(ExportFormat.PDF_TYPE, myFile, false, myPreset);
        }else{
            alert("No File selected");
    }else{
        alert("No PDF Preset selected");
    So far my code does the following:
    1) Runs the Multi-Page PDF Import Script
    2) Runs PDF Export Script Above
    3) Toggles the Template
    4) Runs #2 Again
    5) Deletes the imported PDF and all pages and toggles template again.
    It’s close and much better than the original process which was almost 100% manual but I’d like to remove the Preset prompt from the PDF script and have it automatically select the “Smallest File Size” preset. and then if there’s a way to have it auto-fill in the file name so no user input is required at all other than selecting each file to import. (If there’s a way to setup a batch action for the multi-import script that would be even better!)
    Thanks in advance and if there’s anything else I can provide that would help please let me know! Even a nudge in the right direction will be a big help!

    If you hold down the option key, it will typically show the location. Or you can often hit option-return on the file and it will reveal the file in the Finder, instead of opening it.
    Final option is to open it, and just option-click the filename in the toolbar of Preview and it should show you the location.
    It's probably an attachment to an email you've received. If you have Mail set to cache emails and their attachments it'll be stashed in a subdirectory of ~/Library/Mail. Which is fine.

  • [JS]::[CS3] - Exporting a PDF

    Hi folks,
    I am having some difficulties exporting a pdf using javascript.
    The code I am using looks like this:
    myDocument.exportFile( ExportFormat.PDF_TYPE, new File(pathToFile) );
    myDocument is a business card sized document. When my script is run from CS4 on a mac this code works fine. It exports a business card sized PDF.
    However in CS3 on Windows it exports the artwork into a letter sized PDF. I don't think that it is a Windows problem I just happen to only have access to CS3 on windows and CS4 on a mac.
    I'd appreciate if anyone can shed some light on this and give me some pointers on how I can ensure my pdf is the correct size (the same size as the document).
    cheers
    Ben

    Have you setup the exportPresets?
    Look at the ExportPDFWithOptions.jsx from the indesign_scripting_guide_scripts?
    Your export settings might be different in the two applications.
    (app.pdfExportPreferences)

Maybe you are looking for