Export PDF with option dialog

Hi,
When I use 'kAISaveDocumentAsAction' to play action event, the pdf option dialog shows up, as in the following piece of code:
result = sAIActionManager->AIActionSetString( valueParameterBlock, kAISaveDocumentAsNameKey, szPDFullFileName );
//file format
result = sAIActionManager->AIActionSetString( valueParameterBlock, kAISaveDocumentAsFormatKey, kAIPDFFileFormat);
//file extension
result = sAIActionManager->AIActionSetString( valueParameterBlock, kAISaveDocumentAsExtensionKey, kAIPDFFileFormatExtension );
//show pdf option dialog
result = sAIActionManager->AIActionSetInteger( valueParameterBlock, kAISaveDocumentAsGetParamsKey, 1);
//play event
result = sAIActionManager->PlayActionEvent( kAISaveDocumentAsAction, kDialogOff, valueParameterBlock);
But when I replace it with 'kAISaveDocumentACopyAsAction' the option dialog failed to show.
/play event  fails
result = sAIActionManager->PlayActionEvent( kAISaveDocumentACopyAsAction, kDialogOff, valueParameterBlock);
I want to use the kAISaveDocumentACopyAsAction option and want the pdf option dialog to show.
Is there anything I can do?
Please help
Thanks
Abdo

Solved my problem by using   'sAIDocumentListSuite' to open the current document which sets the opened document active and used 'kAISaveDocumentAsAction' to show the pdf option dialog and then close this document without ever altering the original document.
Abdo

Similar Messages

  • Export to PDF with Options

    Hi,
    I would like to export the active document to PDF with options [Standard options] using vbscript.
    Is there any sample or references for this?
    Thanks,
    Shailesh

    A quick copy to help you getting started.
    myInDesign.ActiveDocument.Export "Adobe PDF", TargetPDFfilepath, False, IDPDFPresetName
    The command can be found in VB reference guide (and scripting guide I believe)

  • Error "Failed to Export PDF" with big image on CS6 (32) and CC (64)

    Hi everyone,
    I'm on indesign CS6 (v8.0.2) and when I try to export pdf with a very big image ( *.tiff, 25000*35000 pixels, ) , the action failed with this message :" Failed to export a PDF".
    To be sure that there is no any corrupted elements, I made a very simple layout (one page , and just one element for my image,I turnoff prefilgth and all  ressource intensive options, and export with no downsampling or resampling) and try to export with different size image:with 20000*30000 -or smaller -image the export works, always failed with image .The export failed to in scripting mode.
    If I diveded my image in four , the export works but this solution is not convenient (I actually made tests for a fully automatised process, and we want to be sure that the indesign  component is  enough "safe")
    I try the same action with an evaluation version of indesign CC 64 bits (v9.2) and have the same behavior.
    I can imagine that there is a memory issue there, but my config seems to be strong ( windows server 64 with  16GB ram, DD with more than 100GB free). I don't undersant why-in a "full" 64 bit environnement- it is not possible to manipulate and export very large image ?
    I'm wonder If the background task is a part of the problem, and if it 's possible to disable it in CS6 or CC as in cs5 ( creates an  “DisableAsyncExports.txt” file in  Adobe InDesign executable directoty don't seems to disable it  in CC or CS6).
    Thank you for your help and good ideas..
    DC.

    this is a .tif (not a "big"tiff) compressed in LZW or ZIP.
    I just tried with another format (png), the error is the same...

  • Exporting PDF with standard PDF/X-1b

    Hello All,
    We received the request from one of our client to generate the PDF with the standard 'PDF/X-1b', but while exporting the PDF from InDesign, we don't have this option, could you please check and advise how to meet this requirement?
    Thanks in advance,
    Praveen

    You should ensure that 1b is meant. I suppose it is a typo.
    If your client requires a CMYK, then 1a would be the correct version.
    You could ask for a joboption file. You can install it, open Acrobat Distiller and drag and drop the joboption file into the open Distiller window. This will install this joboptions for all programs with PDF export like InDesign too.

  • Exporting PDF with cropmarks

    I've got some artwork and  need to make a PDF with cropmarks from Illustrator 10.
    I add cropmarks using Object/Cropmarks/Make and that looks fine.
    But I can't get them into a PDF.
    If I "Save as PDF" or "Save a copy", the result contains everything EXCEPT the cropmarks.
    (Oddly enough PDF is not offered as an "Export" format.)
    I can create a PS file with Print command, and distill it, but that's rather tedious.
    Failing a way to export cropmarks, is there a simple way to convert them into normal lines, or do I have to redraw them by hand?

    Alan Sargent wrote:
    No, not in my version (10). I only see those mentioned under "Separation setup".
    Not sure about Version 10... but couldn't have changed that much..
    Your AI file:
    Save As
    Choose PDF from the file save options
    PDF save dialogue opens
    Choose the quality of the PDF files from the drop down at the top of the dialogue panel
    In the left panel of the dialogue panel / window there are options... look for the 'Marks and Bleeds' (or similar)
    In the options there, should be under 'All Printer's Marks', choose / select 'Trim Marks'
    That'll include the crop marks... Maybe the interface has changed a bit since version 10, but if you explore the options under the PDF saving panel, am sure you'll find them. Alternatively, try the Help...
    Edit: Further, i see from your attachment, that you have a bleed. You can set that under the "Use Document Bleed Settings'... make it about 3-5mm on each side... otherwise you'll get the crop marks without the bleed...
    BTW... how are you creating the crop marks? Hopefully the very base of the page (bottom-most layer) has a base colour to which you have added the crop marks from the menu?
    If none of the above works, wait for Jacob to come around... he still uses version 10
    Edit 2: If you see it under "Separations", check it there and see...

  • Cannot Export PDF with Hyperlinks and Bookmarks

    August 1, 2008
    Hi Everyone,
    I've recently upgraded to InDesign CS3. I opened a 40 page document that was completed in InDesign CS2. When I try to export to a PDF (with include hyperlinks and bookmarks) the program quits once it reaches the 5th page.
    I've tried exporting without hyperlinkes and bookmarks checked and PDFing works fine. I had no previous PDFing issues when working in CS2.
    Any suggestions/tips/guesses would be appreciated.
    Thank you,
    NB
    Windows XP
    InDesign CS V.5.0.3

    Hi! I need help w indesigns hyperlink...
    I am working on a long document and have 5 files, I was able to use hyperlink on each one that way the reader could jump fr one file (or page) to another. The hyperlink worked perfectly on PDF. Now I need to merge these five PDF's into 1 PDF file but the hyperlink that I have created on individual files doesnt work in a combined PDF. Is there a run-around on this? Any suggestions? I'm just new in indesign and need inputs. Thanks!
    Im using Windows XP and CS3.
    Nelle :)

  • Exporting pdf with spot colour

    Hi, Im having trouble exporting a pdf with a spot colour from ID. Just one part of my logo is showing as thicker once its exported. I can place in the exact same artwork but using a CYMK colour and the thick shape doesnt show. does any one know why this is happening? Im placing an ai. file.

    I'm not convinced that has anything to do with the presence of a spot color. Assuming you are viewing the PDF in Acrobat (or Reader), have a look at your Page Display preferences under Rendering. If "Enhance thin lines" is ticked, un-tick it and see if that makes the thick I go away.

  • Export PDF with TOC

    If I didn't miss something important, it is currently impossible to add a table of contents (TOC) to the exported PDF that will show up in the sidebar of the Preview application. IMO Pages would be a great tool for publishing manuals and other documentation, but without a TOC in the sidebar, this is completely useless.
    Is there perhaps any sort of hack to get around this? (the files are XML, so this doesn't seem entirely impossible). Anyone know of plans that Apple might eventually add this absolutely needed feature?
    Andre

    Henrik Holmegaard wrote:
    This is sound, but it depends on what you are trying to decide. The trouble is that the everyday enduser expects content to be searchable, but below PDF 1.4 there is no support for content structure and even if there is support for content structure in PDF 1.4 there are plenty of preparation processes that produce non-searchable PDF 1.4.
    If - or should one say when - the operating system supports creation of searchable content instead of simply supporting Spotlight as a search service, there is still no list for these problems.
    Funny response.
    The PDFs generated from Pages are perfectly searchable. As far as I know, when we search in a PDF displayed by Preview, it's not Spotlight which does the duty. Same thing when the document is open with Adobe Reader.
    The missing feature is not the search tool, it is the TOC one. It's not a huge task (it was available in the old printToPdf pseudo printer driver under Mac OS 9).
    It's just missing because it is supposed to be useless for many of us. Is it really useless, is it really useful ? I don't know the response at statistically meaningful level.
    To be honest, when I saw that there are two paths to create PDFs from Pages, my first thought was:
    1 - Print in a PDF file generates a flat PDF
    2 - Export to PDF is able to generate one with a TOC.
    I was wrong but I didn't cry for that. I may live without this feature. Missing the search tool would be more annoying.
    Yvan KOENIG (from FRANCE dimanche 20 juillet 2008 19:55:27)

  • Export PDF with Notes

    Hi Experts
    I have comments(Notes) in my INDD file. Now I want to export the INDD files as PDF with Comments(Notes). Is there anyway to do this? I am using ID CS3 WinXp.
    Thanks in advance
    Regards
    arul

    Hello,
    Sorry to drag this old thread up.
    We have a plugin that includes InDesigns notes on interactive PDF export.
    Would anyone be interested in being a beta tester. We only need 1 tester.
    Your reward would be to keep the plugin, generouse aren't we.
    All the best.
    P.

  • Export pdf with visibility control

    ik have a pdf with layers placed as an object in my CS5.5 document
    now i want to export pdf's with control over the visability of the layers of that pdf-object
    i can set the visability but, exporting gives 1 failure
    how can i solve this

    then there is something in your document which might be causing the issue...
    try and isolate the problem by hiding the layers first ,
    ex:- you have 2 layers then hide one and check bu making pdf , if it works then the issue is in that layer which is hidden
    once you wll find the layer you can locate the object on the layer causing this issue.
    and Is it possible to share the file ....

  • How to export PDF with Bookmarks from Headings?

    Does anyone know if it's possible to export a PDF with Bookmarks (not internet bookmarks, but rather the Table of Contents in Preview.app bookmarks) from the style headings? Word 2007 does it with the Save to PDF add-on. Here is what i mean:
    http://img180.imageshack.us/img180/7883/word2007saveaspdfqz6.png
    Thanks!

    http://discussions.apple.com/thread.jspa?messageID=5827357&#5827357
    http://discussions.apple.com/thread.jspa?messageID=6072285&#6072285

  • AS - IDCS3: export pdf with permissions password

    Hi All,
    How do i set permission password while exporting ID document to PDF. I was able to set the document open password with "set change security password to "abcd". But i couldn't find any property for setting the permissions password.
    Any help would be appreciated.
    Rgds
    JaiSanM

    Preview is not capable of handling the advance features of exported PDFs.
    Bob

  • Error exporting pdf with progressive jpg

    When i export in ind 5.5 to pdf i get an error "error encountered while reading jpeg image..." The solution is to save the "bad" jpg with baseline standard not progressive. But how to find the jpg that's causing the problems (manual search is a pain). Is there an option to disable this error or automatically convert jpg that is causing the problem?

    Well, you can report it.
    If you cannot reproduce the bug, it is extremely difficult to make progress. So the first order of business is finding a reproducible test case.
    The best way to report a bug is to open a support case with Adobe Supprt (http://adobe.com/go/supportportal), because then you get a bug number and followup and you can understand what is going on.
    You can also fill out the form at http://adobe.com/go/wish but I would advise going through support. The wishform won't give you a bug number and I think the chances of your bug getting fixed are substantially lower as well.

  • Exporting PDFs with document filename

    I am new to InDesign scripting and I'm am trying to edit the Adobe ExportPDFWithPreset.jsx so that it will just name the PDF export the same as the InDesign file name. Currently it just names it ExportPDFWithPreset.pdf. How would I go about doing that?
    //ExportPDFWithPreset.jsx
    //An InDesign CS6 JavaScript
    //Shows how to export as PDF using a given PDF export preset.
    main();
    function main(){
        mySnippet();
        myTeardown();
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
              if(app.documents.length != 0){
                        if (app.activeDocument.stories.length != 0){
                        else{
                                  alert("The document does not contain any text. Please open a document containing text and try again.");
              else{
                        alert("No documents are open. Please open a document and try again.");
    //<snippet>
    function mySnippet(){
              //<fragment>
              var myDocument = app.documents.item(0);
              //The document.export parameters are:
              //Format as (use either the ExportFormat.pdfType enumeration
              //or the string "Adobe PDF")
              //To as File
              //ShowingOptions as boolean (setting this option to true displays the
              //PDF Export dialog box)
              //Using as PDF export preset (or a string that is the name of a
              //PDF export preset)
              //The default PDF export preset names are surrounded by square breackets
              //(e.g., "[High Quality Print], [Press Quality], or [Smallest File Size]").
              var myPDFExportPreset = app.pdfExportPresets.item("[Press Quality]");
              myDocument.exportFile(
                        ExportFormat.pdfType,
                        File(Folder.desktop + "/ExportPDFWithPreset.pdf"),
                        false,
                        myPDFExportPreset
        //</fragment>
    //</snippet>
    //<teardown>
    function myTeardown(){
    //</teardown>

    Hi,
    have to replace this line:
    File(Folder.desktop + "/ExportPDFWithPreset.pdf"),
    by:
    File(Folder.desktop + "/" + myDocument.name.replace("indd","pdf")),
    enjoy

  • Name Exported PDFs with a filename generated from text frame on page

    Does anyone have an idea how to do the following? We are on InDesign CS5 on a Mac running OSX 10.6
    We are plan on creating a document of say 100 pages. On each page will be a photo of a product and some text frames. In one of the frames will be the product's SKU code - which we will enter manually.
    What I want is that we can then export each page as a separate PDF and the filename of each PDF will be taken from the SKU code present in the text frame with .pdf appended.
    Has anyone done something like this?
    Thanks

    Ask in the Scripting forum... InDesign Scripting

Maybe you are looking for

  • How do I duplicate a pdf document in the cloud?

    How do I duplicate a pdf document in the cloud?

  • Output Issue for order confirmation

    We have a sales order contains 3 line items 10,20 & 30. We have found the line item 30 has been created in the sales order change log,. after the line items 10 and 20 has created.  The print output copy is having 4 pages. In that print preview the he

  • Using jdk6 with oracle database

    hi.. i've installed jdk6 into my pc. i would like to write a simple program using jdk6. then i would like to load it into oracle database. is that okay if i use jdk6 version to write my program? is it compatible with oracle 10g when we want load the

  • 15-n067sr problems with AMD Radeon HD 8670M (windows 8.1 x64)

    Hello,  below i'll explain the problem i'm experiencing.  I've decided to install Windows 8.1 x64 to this notebook model (15-n067sr). The problem is that ATI drivers which i download from HP support site doesn't allow me to install Display driver, it

  • Toolbar is stuck...

    My toolbar is stuck in customize mode without the drop down menu that will allow me to click "Done". I have tried quitting Aperture, restarting and repairing my library to no avail. When Aperture starts up again, the toolbar is in customize mode but