FlashPaper & Command Line Conversion

Hello,
I need for work purposes to use FlashPaper for ppt pdf swf
conversion, but I want to do such things from our J2EE FlashCom
webapp (calling run.exec("C:\Program Files.....\flashpaper.exe...
")) as if we were running FlashPaper from command line. Is there a
way to run it from the command line lets say :flashpaper -inputfile
- outputfile. If yes does somebody know the synopsis for doing
that?
Thanks & Cheers,
A.Dafinei

quote:
Originally posted by:
JC!
Yes. If you run the FlashPaper.exe file with the file to
convert and specify the output file name with a -o flag, you can do
it via the command line. What this does is launch Acrobat Reader,
load the file, and print to SWF. It isn't elegant, but it works.
FlashPaper.exe MyFile.pdf -o MyFile.swf
The problem with simply sticking this into a loop is that the
command returns immediately, even though the conversion hasn't
completed yet. Since Acrobat Reader is actually doing the
conversion, you have to wait until the PDF file exists before you
process the next file.
Here is a Perl script a co-worker found that basically does
this for a folder, recursively. Move the source and output files
elsewhere and pop the whole thing into another loop and it should
go indefinitely. It is pretty simple, and should be easy to convert
into the scripting language of your choice.
<legal mumbo-jumbo>
This script is provided as-is, with no guarantee that it will
be appropriate for your use.
</legal mumbo-jumbo>

Similar Messages

  • Command line: Mass compile and LLB Conversion

    Using LabView 8
    Using a script (Perl or VBScript) I would like to extract some VI from our source control,
    mass compile them to be to the current LabView version and then create a LLB from that directory.
    The need for this is to have a synchonisation between 2 applications.
    Since this needs to be done from a script, I need a way to perform this from the command line.
    (The other solution we have, is to perform this manually every time a modification is made to the original files,
    But sometimes memory can be defective and then .... )
    Any suggestions, ideas...
    Thanks
    EricG

    Eric,
    That sounds like quite an undertaking, but I think you might be able to implement it (or at least most of it). LabVIEW does not have command line arguments for all that you want to do, so I would recommend building a VI that does what you want and then building that VI into an executable that utilizes command line arguments.
    In this VI, opening VIs and mass compiling them can be accomplished through VI Server in the form of an Invoke Node -- these functions are methods under the Application class. Bear in mind that mass compiling can only bring VIs forward in versioning, not backward. For the LLB functions, you can use the Libraryn VIs that ship with LabVIEW -- they are "hidden" in the LabVIEW root directory under vi.lib/Utility/libraryn and are pretty intuitive. As far as the source code control, you are on your own, as that will be dependent on the specific SCC software you are using and will most likely require using ActiveX.
    Once you have a VI built that does everything you want and you are ready to build it into an executable, you will want to configure it to accept command line arguments. There is a great online Knowledgebase on this subject, which I have linked here. And of course, if you run into any specific problems along the way you can get help from this great online community!
    Best of luck!
    E. Sulzer
    Applications Engineer
    National Instruments

  • Error while running the Discoverer report from the command line.

    Hi All,
    I've to run a discoverer report from command line and export the results in xls/html on to my local machine. This report I've to run it as batch and scheduled it.
    I have a parameterized worksheet and this has to be run from command line specifying the parameter value I wanted to run the report for. I do not get any results. Here is the command line I am using.
    dis51usr /connect user/password@database /opendb "TIMS-PCJ status Report" /sheet "TIMS observation status report (based on performed date)" /parameter "Test Number" '40351' /parameter "From Date" '05-MAY-2008' /parameter "To Date" '06-MAY-2008' /export HTML "C:\DISCOVERER_REPORT_SCHEDULING\DIS_OUTPUT\PCJStOutputinHTML123"
    I even added the TO_DATE conversion for the parameters and also gave the format of the date as 'DD_MON_YYYY'.
    Discoverer Desktop opened up, logged in and gets terminated saying 'Oracle Discoverer Desktop has encountered a problem and need to close. We are sorry for the inconvenience.'
    Please anyone reply me.
    Regards & Thanks,
    P. Gayathri Devi

    Hi Gayathri,
    Try changing your parameter names to be a single word. (Change "Test Number" to Test_Number).
    Does the report run fine when run through Desktop for the same parameter values? Which version of Discoverer are you using?
    Thanks.

  • Command Line Modifying File

    Hello -
    I have done an IDOC->XI-File scenario, everything looks good except for one line that needs to be added.
    Without using XSLT/JAVA mapping (not that complex scenario), is it possible to modify the file that has been received to add an extra line.
    For e.g after i have received the file, looks like this:
    <xml>
    <a>
    <b>test</b>
    </a>
    Can i write a command line program for the file receiver adapter in the communication channel to modify the receiver file to add an extra line.
    For e.g.
    <xml>
    This is a test
    <a>
    <b>test</b>
    </b>
    This is an example but in the real case its a huge file and believe me its a straight mapping from IDOC to the file but only thing needed is an extra line of text that needs to be added for which i do not want to use the XSLT or JAVA mapping programs.
    Is it possible through the command line to read the Received file and modify the file by writing that extra line.
    Any clues would really help.
    Thanks,
    Tirumal

    Yes, if you are using file content conversion all you need to do is add this parameters.
    The URL tells yuo how u should use it.
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards
    Vijaya
    Message was edited by: vijaya kumari

  • How to use sqlplus with utf8 on windows command line

    I expected sqlplus to work interactively with the following settings:
    - Lucida Console font for command window
    - chcp 65001 (UTF8-Windows-Codepage)
    - set NLS_LANG=.AL32UTF8
    But it turned out that
    1) sqlplus apparently does not use WIN32-API function ReadConsoleW and WriteConsoleW (these wide char functions must be used instead of ReadFile and WriteFile for Console I/O)
    2) cmd silently ignores all .cmd and .bat files with codepage set to 65001.
    I fear that such a problem regarding a minority of command line freaks has low priority for Oracle and for Microsoft, so I wrote two small filters in C.
    rconsu8 passes keyboard input to stdout, using ReadConsoleW
    wconsu8 passes stdin to console, using WriteConsoleW
    both set the UTF8-codepage 65001 and restore the previous codepage at exit.
    Anybody interested?
    (Yes, I know that I could use sqldeveloper.)
    Sample session:
    C:\>set NLS_LANG=.AL32UTF8
    C:\>rconsu8 | sqlplus scott/tiger@DBUTF8 | wconsu8
    SQL> select '€' from dual;
    '€'

    SQL> select * from test_cyrillic;
    NAME
    Йозеф
    Euro €

    Console Output
    works for characters covered by Lucida Console font if the first character in a line is ASCII (code < 128, e.g. blank)
    CHCP 65001
    sqlplus
    SQL> select ' ', unistr('Josef \0419\043E\0437\0435\0444') from dual;
    Josef Йозеф
    SQL> select ' ',unistr('Euro \20AC') from dual;
    Euro €
    Sven, windows is able to render the output (as covered by Lucida Console), but there is a quirk in MSVCRTxx (C Runtime-Lib), function fwrite(). The first byte in a line is passed separately to an isolated single write() call, which causes conversion of an utf8 sequence to fail.
    Console Input
    For non-ascii characters (code >= 128), ReadConsoleW must be called, e.g. through a simple filter converting UTF-16 stdin to UTF-8 stdout.

  • Command line printing - PDF to Postscript

    I wish to convert a PDF file to postscript using the windows command line suppressing all messages.
    Example: Acrord32.exe samplepdf.pdf c:\output\samplepdf.ps
    Are there any command line options to perform this conversion?
    Many thanks.

    Command line arguments arew unsupported, but documented in the Acrobat
    Developer FAQ
    Aandi Inston

  • Starting managed servers from admin console vs. command line

    Will the arguments I enter in the "Arguments" section of the "Server start" admin console page also be used if I start the managed server from the command line using startManagedWeblogic.sh?
    And conversely, will changes I make to the scripts take effect when I start the server from the admin console?

    No,
    the arguments that you set thru Console GUI are effective when Node manager start your server.
    Ammar Sajdi

  • Command line processing

    Here the situation:
    1) every day, I download (using a wget based scheduled batch) a pdf from a supplier.
    2) To make it available for reading on the web, I use Google Docs, so I send an email to some people with the correct link for opening the daily file with Google Docs. This step is also automatically executed in the batch file.
    I encountered some difficulties when the source pdf is larger than 20 Mb because of the Google Docs limitation. Considering that the file will be at max 25 Mb, I can solve the problem saving it with a different compatibility setting: the source file is Adobe Reader 5 compatible and I can shrink it by using Adobe Reader 7 or 8 compatibility.
    That trick will save the over 20 Mbytes.
    My question is: is there a way to do that from command line? I'd like to make the over-20-mb-conversion a step of my batch file.
    Bye,
    Dario

    Found a working solution using GhostScript.
    Thanks anyway for the clarification.
    Bye

  • Problem running DNG Converter from command line in Windows XP

    I'm a frustrated user trying to run Adobe DNG converter from the Windows command line - more specifically from a batch file.
    - Am reasonably conversant with writing batch files
    - Have read the PDF file provided by Adobe
    I just can't figure the correct syntax for adding the command line parameters and, unfortunately, the Adobe PDF file doesn't have verbose examples for idiots like me. Nor can I find any such examples on the Net, or any discussion of this problem in the forums.
    The Adobe PDF instructions state...
    "The parameter list includes the conversion options you want to use, followed by the names of the files to convert."
    As there is no switch to prefix 'the names of the files to convert' I assume I just leave a space and include the path to the source files at the end of the parameter list?
    Here is the batch file line I am trying to use...
    "C:\Program Files\Adobe\Adobe DNG Converter.exe [parameter list]"
    Where I want to specify in the [parameter list] that...
    (a) The destination directory (-d <directory> parameter) is c:\DNG_files
    (b) And the source files are in directory c:\RAW_files
    Here is the batch line with the parameters entered...
    "C:\Program Files\Adobe\Adobe DNG Converter.exe -dC:\RAW_files c:\DNG_files"
    I've tried variations of this with space between -d and C:\RAW_files and C:\DNG_files\*.* for the source files parameter.
    I just keep getting DOS erros like "The filename, directory name or volume label syntax is incorrect"
    Can anybody help me. I'm clueless how to solve the problem. :-(
    I'm running DNG COnverter version 4.2
    Thanks in anticipation.
    Rob

    Thanks for responding G Sch.
    LOL. Well this lemming doesn't habitually rename .exe files (e.g. Adobe DNG Converter.exe) to a non-spaced alternative either! (Adobe_DNG_Converter.exe)
    Still no luck...
    *** Here is my batch file...
    REM Copy and DNG-convert files from CF
    CD c:\RAW_files
    dir c:\RAW_files
    "C:\Program Files\Adobe\Adobe DNG Converter.exe" -d C:\DNG_files
    dir c:\DNG_files
    pause
    ***Here's the DOS shell output...
    <<BEGINS>>
    C:\RAW_files>dir c:\RAW_files
    Volume in drive C is Local Disk
    Volume Serial Number is D084-58ED
    Directory of c:\RAW_files
    12/03/2008 10:29 AM <DIR> .
    12/03/2008 10:29 AM <DIR> ..
    11/03/2008 07:00 AM 10,661,632 _3110455.ORF
    11/03/2008 07:01 AM 10,661,632 _3110457.ORF
    11/03/2008 07:01 AM 10,661,632 _3110458.ORF
    11/03/2008 07:02 AM 10,661,632 _3110460.ORF
    11/03/2008 07:02 AM 10,661,632 _3110461.ORF
    11/03/2008 07:03 AM 10,661,632 _3110462.ORF
    11/03/2008 07:03 AM 10,661,632 _3110463.ORF
    11/03/2008 07:04 AM 10,661,632 _3110464.ORF
    11/03/2008 07:04 AM 10,661,632 _3110465.ORF
    9 File(s) 95,954,688 bytes
    2 Dir(s) 2,619,731,968 bytes free
    C:\RAW_files>"C:\Program Files\Adobe\Adobe DNG Converter.exe" -d C:\DNG_files
    C:\RAW_files>dir c:\DNG_files
    Volume in drive C is Local Disk
    Volume Serial Number is D084-58ED
    Directory of c:\DNG_files
    12/03/2008 02:46 PM <DIR> .
    12/03/2008 02:46 PM <DIR> ..
    0 File(s) 0 bytes
    2 Dir(s) 2,619,731,968 bytes free
    C:\RAW_files>pause
    Press any key to continue . . .
    <<ENDS>>
    As you can see (a) Source files exist(b) DNG command line runs without generating an error (c) no output files in destination.
    DNG Converter did not run.
    If I remove everything after the command (i.e. the parameter list stuff) it fires up DNG Converter in interactive mode. Not what I'm after.
    Any other thoughts on what the problem is?
    Thank you.
    Rob

  • Documaker - Command Line Utilities

    From one of my training classes several years ago, I have a list of command line utilities that are found in the DLL folder of the Documaker RP install. Though it is very helpful, I think it is from 11.1 and I think there are newer features that may also be useful. In particular, I noticed in the conversion tools in DM Studio 11.5 there is a conversion utility for AFP to Sections. Can someone tell me which executable that would happen to be? Or direct me to the documentation for command line utilities in Documaker? A quick search through about a dozen electronic guides hasn't panned out.
    Thanks!
    Tony

    Hi Tony,
    OVL2FAP - Converts an AFP overlay into a FAP file.
    Please refer to page 134 of faq_book.pdf for frequently used AFP utilities.
    AFP files can be directly opened using an Image Editor.
    Use Printcommander (version 5.x or greater) to produce AFP files from DOC files. Then open the AFP files in Image Editor.
    Thanks,
    Akhil

  • Run AME in command line

    Hey guys, is it possible to run the application using the command line? I would like to start a video conversion in a console by setting all my parameters. Is this feature supported?
    Thank you

    what is the best way to use multi machine video processing?
    The only way I'm aware of at the moment is to process different groups of videos on different machines.  I don't believe there is any kind of render farm functionality with AME.

  • [Solved] Assembly - Passing Integer Command Line Parameters

    This is as good a place to ask as any I suppose, so here goes.
    I'm really only interested in knowing if it is at all possible to push actual values, in this case integers, on the stack from the command Line, i.e. passing arguments and if so how, because as far as I can gather, it is simply impossible to pass anything other than strings.
    Yes I am a noob at assembly, if anyone should doubt that.
    Best regards.
    I thought the best thing to do is simply to explain what I'm actually doing.
    In short, I need to derive the Lightness/Luminance level of a pixel. This of course can be done a number of way. Initially I experimented with image magic, but when I couldn't figure it out, I thought: "Hey, why not learn something along the way?"
    So here I an, trying to do some assembly under linux.
    For those interested the process is actually rather sinbple:
    1. get and convert the rgb input as needed.
    2. Determine the highest and lowest channel (progress so far):
    mov ax, $1;
    mov cx, $2;
    mov dx, $3;
    cmp ax, cx;
    jng else;
    mov ax, ax;
    mox bx, cx;
    jmp next;
    else:
    mov ax, cx;
    mov bx, ax;
    next:
    cmp dx, ax;
    jng else2;
    mov ax, dx;
    jmp end;
    else2:
    cmp bx, dx;
    jnl end;
    mov bx, dx
    end:
    3. add the two values and divide by two. possible implement a way to check if the addition is even or not, so to enable proper rounding.
    4. output the result in one form or another.
    Last edited by zacariaz (2012-09-03 20:30:14)

    Lux Perpetua wrote:
    zacariaz wrote:
    Well, at the same time it makes sense and it don't.
    I makes sense to have a "common language", so to speak, so that various applications can be piped together.
    At the same time however, it's a waste to have the majority of the code dedicated to making conversions. First one for the input and then one for the output.
    But that life I guess.
    Thanks for now.
    When you run a program on a Linux system, it ultimately all boils down to the following function:
    int execve(const char *path, char *const argv[], char *const envp[]);
    Without going into full detail: the first argument is the path to the program being executed. The second argument is literally the "argv" argument list the program sees (which is a null-pointer-terminated array of pointers to null-character-terminated strings). The third argument is the environment. Relevant to you is the second argument. It doesn't matter if it's an assembly program, a C program, or a shell script; the "command-line" arguments to the program, i.e., the argv array, are pointers to strings.
    Lest you have the brilliant idea to take an integer apart into bytes and stick them in a string as one of the argument as some others have suggested, you should consider the following: what if one of the bytes of the integer is 0? That technically ends the "string," and everything following that byte is discarded by execve. Adding 1 to all the bytes wouldn't work, since 0xff would wrap around to 0 again. To make it work, you'd need to encode the integer in some other complicated way to avoid null characters and then decode it inside your program. In other words, you might as well just pass an ordinary string and parse it with atoi or strtol.
    You are of course right, and thanks for the very nice explanation, however it's still a pain in the but.
    I like working with number, not with letters, but enough of this.
    Thanks to all and to all a good night, day or whatever you please.
    Best regards

  • Using Command Line Arguments with JAVA

    Hi,
    we are using an app called ImageMagick to scale and modify images before they are uploaded to a webserver.
    ImageMagick is called from our Objectiv-C app via
    command line.
    is there a way to this in Java?
    Regards
    Eckbert

    So, ur question is not developing a Java application that
    will do the 'image conversion'; but, your message
    conveys that u want to know how to invoke a Java program built by 'imagemagick' that takes command line arguments?
    Am I right?
    If that's the case, u must look into the documentation
    given along with the download'ed piece of software
    for identifying the 'starting point of the program'. i.e., the
    class that contains the 'main' method! And after you
    identify that class [Eg. ImageMagickStart] then you'll
    have to invoke as follows:
    [you must have Java installed in ur system!]
    c:>java ImageMagickStart
    If the program was written intelligently it must print all
    the command-line arguments required by the above
    program by executing the above command, and from that
    you can identify!
    -RK

  • Open and Close a command line exec via OpenG.lib in seperate VIs

    Hi,
    I'm aiming to perform tests on my UUT - over a command line based executable which established a USB connection, so - sendings commands and checking the return string. 
    So far i'm reusing the pipeNight.vi which is shared in the following post.
    http://forums.ni.com/t5/LabVIEW/How-to-pass-input-to-a-DOS-executable-that-is-running-in/m-p/1763182...
    However i wish expand from LabVIEW and utilise NI-TestStand sequence files to ramp up the test coverage and perform the tests automatically.
    The issue i've encountered - every time i call the pipeNight.vi from a TestStand sequence Step, the USB connection is build up and torn down.
    Although i'm not encountering any performance issues to date, i would ultimately like to open a session (i.e.establish the usb connection) - at the beginning of a sequence file, send a bunch or commands and check return strings, before closing the session at the end of the sequence file. This is surely a more effecient and elegant solution.
    Is it somehow possible to split the pipeNight.vi into several VIs to realise this objective?
    - Open 
    - Write/Read
    - Close
    i'd appreciate and help or alternatice solutions on this!
    B.Regards
    Kech
    Solved!
    Go to Solution.

    I had tried to explain in my initial post, that if i call the pipeNight.vi from a TestStand sequence file step, then establishes a USB connection and tears it done - for every command that i send/ respectively every sequence step that i run in TestStand. As i envisage multiple (several hundred) test steps, i woul like to improve effeciency by establishing the ESB connection once instead of multiple times.

  • How to send report output to  two  detinations at a time from command line?

    Hi ,
    how to send my report to two detinations at a time from command line i.e FILE and Mail ?
    i created batchfile in that i mentioned one line for file(DESTYPE=FILE) perpose and another line for mail perpose(DESTYPE=Mail).i don't want to mention to lines.
    i want to send my report out put two destinations at a time insted of running two times.
    thx in advance.....
    raghu

    hello,
    did you try to use distribution for that ? check out the reports distribution facilities available in 6i.
    regards,
    the oracle reports team

Maybe you are looking for

  • I can not open files created in iWork 6 or iWork 8 with pages 5.2. I removed the older versions and emptied my trash.  what to do?

    i can not open files created in iWork 6 or iWork 8 with pages 5.2. I removed the older versions and emptied my trash.  what to do?

  • How to compare data between two worksheet in Excel for applescript

    Hi All, How to compare the data from two different worksheet in Excel and set the value into one worksheet according to the same name? Here is the example. Worksheet 1 & 2 current we have, the final worksheet is the result we want and the value can b

  • DAQ: error 10041

    I use a DAQ card to measure a voltage, and my program works. But when I create an application of my program (xxxxx.exe), there is an error: "error 10041, The specified task ID is invalid. For instance, you may have connected a taskID from an Analog I

  • Link  to a Datagrid

    I have a data grid with values as follows Jan | Feb 100 | 200 when I want the column data say 100, 200 have hyerlink and on clicking oh that i want to go to another grid which will show me the break up of Rupees 100 in next grid for the month jan. ho

  • Java process didn't stop.

    hello, i'm runing oas10gR with Forms services. i have 2 java processes consuming 100 % of the cpu time ( nice time ). when a stop the oas with "opmnctl stopall" the java processes hagings didn't end ! i'm asking why these java processes are spending