Load external PDF JobOptions

Hi All,
Is it Possible to load pdf export presets?
Trying Script:
var mypdfExportPresets = app.pdfExportPresets.everyItem().getElements();
alert("mypdfExportPresets: " + mypdfExportPresets.length);
for(i=0; i<mypdfExportPresets.length; i++)
    var myPresetsName = mypdfExportPresets[i].name;
    var myPreset = app.pdfExportPresets.item("aaa");
if(myPresetsName != app.pdfExportPresets.item("aaa"))
    alert("Please load provided aaa.joboptions")
    var myProfile = app.pdfExportPresets.add(File.openDialog("Choose the PDF preset"));   //Problem in this line only
I think its available for loadPreflightProfile, loadSwatches, loadXMLTags, loadFindChangeQuery etc...
Check with forum too. But I can't suceed.
Please help.
Thanks in advance
Siraj

Try this,
var myProfile = File.openDialog("Choose the PDF preset");
app.importFile(ExportPresetFormat.pdfExportPresetsFormat, myProfile);
Vandy

Similar Messages

  • Load external PDF in Acrobat Reader

    Hi Guys,
    I'm creating projectors for both Mac and PC and I want to get my button to load an external PDF into Reader and not the browser. Not sure how to do this the best in AS3? external .bat file maybe (I tried but with no success)???
    Any help/advice would be great.
    Cheers,
    Corey

    Sure I understand the OS prefs for each file type. But the std Flash external PDF link opens the file in your browser and not the default PDF reader that is set in your OS. I would have thought that I could open my PDF using the OS deafult reader instead of the browser?

  • Loading external (PDF)file into BLOB colum in the table.  Need urgent help.

    Hi All,
    I've currently been working on loading many external binary files (PDF) into BLOB column. After some digging, I learn that the SQL*LOADER can be used to load data from external files into table. I also got help from another forummate mentioning to use PL/SQL procedure to do so. Since I have not done anything like this before. So, my question is what is the simple approach needed to upload PDF files into a table(there is only one table containing BLOB column in my database). In addition, the LOBs can not be query-able, I wanted to list the contents of the LOBs column to make sure that I did successfully upload data into the database. How can I do that?. I do need your help. Please direct me step by step how to do so. Your help is greatly appreciated.
    Regards,
    Trang

    Once the PDF file is inserted in the PDM table, i am not able to read the PDF data from the below code, This code converts the binary data into the Character data i.e BLOB data into the CLOB, but still the data is not proper which is getting inserted PDF is proprietary format of Adobe. And you cant just read it from pl/sql. You need Adobe software installed in your client machine to view it.
    Here is an example of how to do it.
    [url http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:232814159006] Display PDF Stored in Database from ASKTOM 

  • A working method to load local PDF and HTML files on iOS

    I had a lot of trouble getting this to work, and I'm hoping this post saves someone time. Some of the information that's been posted in other locations is either wrong, incomplete, or might only work on Android. By the time you read this message the information here may no longer be accurate, so here's the testing environment:
    Window 7
    Flash CS 5.5.0
    AIR 2.7.0.19530, which was compiled on June 28, 2011
    iPad 1, version 4.3.5 of iOS
    Let's get started.
    On iOS, you load external PDF and HTML files using the StageWebView class.
    On Windows, StageWebView works but the HTMLLoader class is a better choice if you're creating a desktop app.
    You can also load HTML files by reading in the file's text. The information in this post is only for loading external HTML files.
    StageWebView will not load a file that's in File.applicationDirectory. All files bundled in your app are placed in File.applicationDirectory, which means you'll have to copy any external file you wish to load with StageWebView to another directory.
    So where can you copy your file? File.applicationStorageDirectory won't work. File.documentsDirectory does work.
    Several people have recommended copying to a temporary file using File.createTempFile(). This works, but there's a catch: it seems that, like Windows, StageWebView relies on a file's extension when determining how to load it. When you create a temporary file on iOS using File.createTempFile(), the file will have no extension (and on Windows, File.createTempFile() creates a file with the extension .tmp, which is equally problematic).
    The solution to the file extension problem is to rename the temporary file by appending the original file's extension. AIR currently does not have a <file>.rename() function, so you'll have to do it using <tempFile>.moveTo().
    Here's some code I've successfully tested several times on both iOS and Windows. The file is copied to the temp directory. The file's extension is restored by just slapping the original file name to the end of the temp file.
            private function loadExternalFile():void
                var webView = new StageWebView();
                webView.stage = this.stage;
                webView.viewPort = new Rectangle( 0, 0, 1024, 555 );
                // Works with either html or pdf files.
                // These are stored in the root of the application directory.
                var fileName:String = "euei.pdf";
                //var fileName:String = "euei.htm";
                var sourceFile = File.applicationDirectory.resolvePath( fileName );
                var workingFile = File.createTempFile();
                try
                    sourceFile.copyTo( workingFile, true );
                    // You have to rename the temp file
                    var renamedTempFile:File = workingFile.resolvePath(workingFile.nativePath + fileName);
                    workingFile.moveTo(renamedTempFile, true);
                    webView.loadURL( renamedTempFile.url );
                catch (err:Error) { }

    I tried this with Flash CS5.5 and AIR 4.0 SDK. Any pdf loaded simply fills the viewPort with black. Also tested with a png version of the pdf and that displayed just fine.
    What's the purpose of copying to a temp work file? I found that webView.loadURL( sourceFile.url ); gave me the exact same results.
    Any ideas?
    Thanks!

  • Error loading/saving PDF presets

    Error loading/saving pdf presets
    I am using CS4 and Windows 7. I have a .joboptions file I want to load in InDesign, but when I try, I get the error message: Cannot create the file. The folder may be write protected.
    I am a local administrator on the computer.
    I have tried manually copying the .joboptions file into the folder C:\Users\<my profile>\AppData\Roaming\Adobe\Adobe PDF\Settings, but it doesn’t show up in the list of available presets.
    I used the same version of InDesign with Windows XP and was able to load and save presets this way just fine.

    Thank for the tip. But unfortunately it is only a partial solution.
    When I 'run as administrator' in Windows 7 I have no problems, that is a bit of a solution, but for me it is a mere workaround.
    I want to find out how I can load and save PDF export settings without running as Adminstrator, since we have 7 people using the presets and they don't want to run InDesign everytime as an Administrator.
    I have all the rights (local admin) to all folders, therefore I was hoping somebody already fixed this in his/her system...
    Hope Adobe comes up with some sort of solution for this apperently Windows 7 problem.

  • Loading external swf (no code)

    Hello
    i have a strange issue since update of my app for ios 8: my app is loading external swf (doesnt containing code, its just pdf converted to swf using swftools)
    while its working ok when debugging on device, these external swf don't show up since the app have been accepted on itunes. And i dont have any error message
    what i don't understand is why it's working good with the debug version and not the production version. they are supposed to be exactly the same, and i don't see why it would be a crossdomain or applicationdomain issue. Did somebody experienced the same problem ?
    the thing is its a bit hard to debug, as the prod version isnt firing any message, and the debug version is just fine...:/
    thanks !

    hello
    here is the command generated by flash builder 4.7 (flex 4.13, air 15.0.0.302)
    java.exe -jar D:\SDK\Flex4.13_air15beta\lib\adt.jar -package -target ipa-app-store -provisioning-profile C:\Users\Gabriel\Adobe Flash Builder 4.7\WeesooMobile\libs\certificates\IOS\09102014\iConfDistri_09102014.mobileprovision -storetype pkcs12 -keystore C:\Users\Gabriel\Adobe Flash Builder 4.7\WeesooMobile\libs\certificates\IOS\09102014\CertificatsProd_0910214.p12 -storepass <Value cannot be displayed> WeesooMobile3.ipa WeesooMobile3-app.xml assets [email protected] [email protected] Default-Landscape.png [email protected] [email protected] [email protected] Default-Portrait.png [email protected] Default.png [email protected] WeesooMobile3.swf
    i missed the "proloader" part...is it now mandatory to user proloader if loading external swf assets ? is it a normal behavior that the swf can be loaded with the debug version, and not the shop version ?
    thanks for your help. by the way, i'm making a small video to show you the problem,as i'm not 100% sure you understand it in my case

  • Impossible to load the PDF preset "Rich Content PDF"

    hello,
    The loading of the preset "Rich Content PDF" failed.
    I Choose Edit > Adobe PDF Presets. I Click Import, and I select the "Rich Content PDF.joboptions" file.
    But I have an error message (Impossible to copy the PDF preset).
    Can you help me?
    David

    What is the answer to this issue?
    Adobe support (blogs, forums, etc) sucks big time!!!!

  • How do you load external XML into a dataProvider?

    I have been looking through the docs and have found a couple
    of entries discussing how to load external XML. Unfortunately, that
    is where the example stops and there is no example of doing
    anything useful with that data.
    I have managed thus far to get my XML file loaded into
    actionscript/flex:
    function getExternalXML():void {
    request = new URLRequest('source.xml');
    loader = new URLLoader();
    loader.load(request);
    loader.addEventListener("complete", loadXML);
    function loadXML(e:Event):void {
    combo.dataProvider = loader.data;
    obviously, the above doesn't work at all. I don't know how to
    convert the loader.data into a format that the
    ComboBox.dataProvider understands. I can't believe I have to write
    a function to parse this XML. Surely there must be a way to simply
    convert the XML to an array or something???

    That link uses the flex beta 3 docs. You may want to use the
    current livedocs.
    Here
    is a direct link to the section I was talking about.
    Scroll down about halfway to the part that says "However,
    using a raw data object..."
    If you want the PDFs (easier to read IMO) you can get them
    here.
    Here
    is a direct link to the Developer's Guide:

  • How to load a PDF from page 1 in IE

    I am currenty working on a fllex based web application that needs to load multiple PDF documents. The pdfs are loaded and displayed properly but after the user scrolls couple of pages/ lines and switches to a new document, IE saves the last visit cursor position of the pdf document. On user revisit to the first PDF the IE loads it from the last cursor position.
    I need to reload the PDF document from Page 1 everytime the user selects to load a pdf document.
    Is there any setting in the Adobe Acrobat Page display settings or in the IE that would help me accomplish my task.
    Please respond ASAP.
    NOTE: The pdf is loaded inside  an IFRAME.
    Thanks,
    -Karun

    > I have a feeling that removing the save button will not be possible.
    You cannot remove the save button, no, but you can replace its execute method with something that, say, pops up a warning to the user instead.
    > Is there any way to just load the file using a URL?
    The ActiveX control definitely loads a URL. See the "src" property of the ActiveX control. If you download the SDK, the ActiveView sample actually loads a PDF from a URL by default.

  • Unable to load external swf which has runtime sharing with another swf.

    Hi,
    I am getting issues on loading external swf say "importer.swf" file into another swf file say "loader.swf" for second time like
    ReferenceError: Error #1065: Variable testSymbol is not defined. VerifyError: Error #1014: Class testClass could not be found.
    at global$init()
    In the external swf "importer.swf", i am trying to import the symbol "testSymbol" from another swf file say "exporter.swf", which exports through runtime sharing option for the symbols.
    I am having some buttons in loader.swf file and on each button click i am loading different swf files into the loader.swf after unloading the previous one.
    I am able to load and unload different swf files but unable to load the importer.swf file which is sharing symbols from external swf and that too for the second time i.e., when i click the button twice.
    When trying to debug with flash debugger, all the other swf files are being unloaded before loading of another swf but the swf which is sharing symbols/classes with another swf is not getting unloaded.
    Output when i am trying to load two files example and importer files into loader.swf file on two different button clicks. On first button click example.swf is loaded. On second button click , example.swf is unloaded and importer.swf is loaded which is successful. On first button click again importer.swf is unloaded and example.swf is loaded. On second button click again, example.swf is unloaded and importer.swf is loaded, here i am getting issues shown above.
    Attemping to launch and connect to Player using URL D:\runtime issue\loader.swf
    [SWF] D:\runtime issue\ loader.swf - 8181 bytes after decompression
    [SWF] D:\runtime issue\example.swf - 441708 bytes after decompression
    [UnloadSWF] D:\runtime issue\example.swf
    [SWF] D:\runtime issue\importer.swf - 1920 bytes after decompression
    [SWF] D:\runtime issue\importer.swf - 441708 bytes after decompression
    [SWF] D:\runtime issue\ example.swf - 441708 bytes after decompression
    [UnloadSWF] D:\runtime issue\ example.swf
    [SWF] D:\runtime issue\importer.swf - 1920 bytes after decompression
    ReferenceError: Error #1065: Variable xxxxxx is not defined.
    Debug session terminated.
    Code i am using
    b1.addEventListener(MouseEvent.CLICK, b1Clicked);
    b2.addEventListener(MouseEvent.CLICK, b2Clicked);
    var ldr:Loader;
    function b2Clicked(e:MouseEvent)
        if(ldr != null)
            ldr.unloadAndStop(true);
        ldr = new Loader();
        ldr.load(new URLRequest("importer.swf"));
        addChild(ldr);
    function b1Clicked(e:MouseEvent)
        if(ldr != null)
            ldr.unloadAndStop(true);
        ldr = new Loader();
        ldr.load(new URLRequest("example.swf"));
        addChild(ldr);
    If i try to open the swf using IE, i am not getting any issues at all. But i need to open this loader.swf in a air application. Also when i use loaderContext for the loader instance i am able to get rid of this issue but i cant use it in my application.
    So, please help me in resolving this issue.
    Thanks

    I got my answer. I had to append the photo url to the 'movie' value of the javascript embed method. Like this:
    <script language="JavaScript" type="text/javascript">
       AC_FL_RunContent(
          'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
          'width', '550',
          'height', '400',
          'src', 'lesson2',
          'quality', 'high',
          'pluginspage', 'http://www.adobe.com/go/getflashplayer',
          'align', 'middle',
          'play', 'true',
          'loop', 'true',
          'scale', 'showall',
          'wmode', 'window',
          'devicefont', 'false',
          'id', 'lesson2',
          'bgcolor', '#ffffff',
          'name', 'lesson2',
          'menu', 'true',
          'allowFullScreen', 'false',
          'allowScriptAccess','always',
          'movie', 'lesson2?photo=http://www.flash-mx.com/images/image1.jpg',
          'salign', ''
          ); //end AC code
    </script>
    Thanks,
    srb.

  • When I try to load a pdf in iframe and I disable PDF toolbar, Its working fine in Internet Explorer and lower versions of Firefox, but in Firefox 19 its not

    When I try to load a PDF inside Iframe and I disable toolar=0 (as guided by adobe). I am able to see the iframe with PDF with no toolbar in IE and lower versions of Firefox (till version 14).
    But in my current version 29, The PDF is visible with toolbar on top.
    Can you please let me know the way to display pdf with no toolbar in Firefox 29?

    I replied on your similar question here: https://support.mozilla.org/questions/1005225

  • How to load external subtitles in mov files (in QT)?

    Hi everybody,
    When I play an avi file, QT is able to load external subtitles (I've Perian installed). However, this week, I downloaded a file from apple, saved it as a mov file and created a subtitle file for it. Then, I put both files in the same directory and used the same name for them (one .mov and the other .srt). When I play it (with QT), the subtitle file doesn't load. Does anybody know what is happening? Is is a problem with mov files? Or is it a problem with files downloaded from apple (some kind of lock?!)?
    Thanks

    cowpox wrote:
    Hi everybody,
    When I play an avi file, QT is able to load external subtitles (I've Perian installed). However, this week, I downloaded a file from apple, saved it as a mov file and created a subtitle file for it. Then, I put both files in the same directory and used the same name for them (one .mov and the other .srt). When I play it (with QT), the subtitle file doesn't load. Does anybody know what is happening? Is is a problem with mov files? Or is it a problem with files downloaded from apple (some kind of lock?!)?
    Thanks
    You might do better reposting this in the QuickTime forum here:
    http://discussions.apple.com/forum.jspa?forumID=932

  • How to load a PDF from a stream

    Hi,
    I'm looking at how to load a PDF file from a stream in .NET, e.g. something like a MemoryStream or FileStream. All of the methods I've seen so far only allow the PDF to be loaded from a file which we don't want to do because of security issues. I know I can do this with a third party tool, but is this possible without using any additional tools?
    Cheers,
    Dave Harrington.

    > I have a feeling that removing the save button will not be possible.
    You cannot remove the save button, no, but you can replace its execute method with something that, say, pops up a warning to the user instead.
    > Is there any way to just load the file using a URL?
    The ActiveX control definitely loads a URL. See the "src" property of the ActiveX control. If you download the SDK, the ActiveView sample actually loads a PDF from a URL by default.

  • Opening an external PDF file

    I am using an application called PdfName.exe to open an
    external PDF file, this application just runs and opens the file. I
    configure this app correctly and put it on an fscommand folder and
    when I double click it it open the file I need. However when I try
    to open it with a button on my Flash presentation using the
    following ActionScript
    on (release) {
    fscommand ("exec", "PdfName.EXE");
    it fails, it opens the application just fine but it can't
    find the PDF anymore, which btw is in an external folder to
    fscommand (i also tried inside fscommand\)
    any ideas?
    any other way to open the PDF?

    http://jstart.flashjester.com
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. - www.flashjester.com
    "This has been one of the most impressive and thoroughly
    pleasant
    experiences of customer support I have ever come across -
    astounding!"
    Director - hedgeapple

  • Is there a good way to automate changing existing links to external PDFs to instead be to PDF attachments with same names?

    Greetings!
    Can anyone tell me a good way to automate changing a "main" PDF's existing hyperlinks to external PDFs to instead be links to PDF attachments to the main PDF (the attached PDFs to have the same filenames as the external PDFs) ?
    Format of current link in main PDF:
    Go to a page in another document
    File: C:\\path\filename.pdf
    Destination name: P:1
    When link is manually changed to link to a PDF that has been attached to the main PDF:
    Go to a page in another document
    File: PDF attachment
    Page: 1
    Zoom level: Fit page
    The new PDF link does not list the PDF attachment filename in the link.
    The main PDF (the one that has the links that I would like to automatically change) is generated with the hyperlinks to other PDFs from Adobe FrameMaker 11.  In FrameMaker11, we added special marker text "openpage filename.pdf:1" that is "automatically" changed to be hyperlinks to external PDFs when the main PDF is created (postscript file is processed) by Adobe Acrobat Pro 11.
    My first choice is to be able to change the format of the special marker text in Adobe FrameMaker source file, but I have not found way to specify a link to be to a PDF attachment with a certain filename.
    However, I would also really like the option of running a batch file on a main PDF to change the links there.
    Has anyone tried using that Adobe ExtendScript ToolKit CS6 to do this? That is, a script that could automatically modify the hyperlinks in a PDF to link to PDF attachments rather than external PDFs, or else modify the unprocessed links while they are still in Postscript file format, or else modify the marker text in FrameMaker to instead of creating a link to a PDF in the same directory as the main PDF being processed, to create a link to a PDF attachment files?
    Thank you,
    Judith Wallace
    [email protected]

    FrameMaker's Hypertext feature has no ability to "link" to an attachment on/in a target PDF.
    PDFs sourced from FM can have named destinations set in the FM authoring files such that a link from file01.fm to the specified named destination in file01.fm will be functional in the PDFs created from the FM files.
    Then, of course, there's the dynamics possible by use o FM Books. But that's the grist for the mills at the FM user-2-user forum.
    RE: Scripting - PDF scripting is via Acrobat JavaScript. That something still of and by Adobe although it may migrate to an ISO Standard (or be rolled up in a future ISO 32000).
    So, to the point - look to Acrobat JavaScript for scripting.
    Be well...

Maybe you are looking for

  • Looking for an app for my Tour

    I'm looking for an app for my tour. I own a small lawncare/landscape bus and am looking for something when i get done with a job i can pull up the clients record and just click if they have paid or were billed. And when i get checks in the mail that

  • Slider not working around 50% of the time.

    Hello, Slider not working around 50% of the time when I get a call. I hit the sleep button and home button several times and then it works. I've done the soft reset several times. I've restored settings completely 2 times. the screen is clean, my han

  • OrcDocDomain File Download Link - (BC4J/ADF) - How to?

    I am able to produce an Upload File in my web application - it works really nicely - , but I am lost on how to produce a download link for those files, once they are stored in the database. I am creating an application that deals with document files

  • Scale.tif opening in preview when starting OSX 10.8.2

    In the last few days, I've been having scale.tif opening in Preview everytime I start up.  It just shows a ruler in the Preview app. I can't get it to stop.  I've tried restarting and shutting down with the reopen windows box unchecked, but it still

  • Automator - i want multiple actions at once

    Hello fellas, i'm trying to write a little automator-action, that opens me 8x the terminal and writes yes > /dev/null. I'm pretty stuck in the feeling, automator can handle actions only one-after-another and not multiple-at-a-time. Could anybody help