HTMLLoader Breaks HTTP Attachments

It seems that it is not possible to replicate standard
browser behavior with Browser Attachments. If I go to any website
that allows the downloading of a file to disk, an Air application
can't be created such that it can save that HTTP attachment that
was given. This makes it impossible to create a fully functional
browser with Air.
The problem is, HTMLLoader in Adobe AIR 1.0 does not handle
the HTTP Content-Disposition response headers set to type
'attachment'. It simply ignores this header. This is bad, because
many sites on the web rely on user-agents handling this header
appropriately in order to initiate a download of a file to an
end-user's local disk.
An example is
Content-Disposition: attachment; filename="fname.ext"
This HTTP response header says to the user agent, 'Don't
render this response as HTML; instead write the response to a file
on the user's disk called fname.ext'.
When the Air HTMLLoader encounters an HTTP response with a
Content-Disposition similar to the example above, nothing is
re-rendered (which is the correct behavior), there is no way to
detect that the attachment Content-disposition header has been
served (bad), and there is no way to obtain the attachment itself
(worse).
The correct behavior for an HTTP client which receives an
HTTP response parameter of this type can be found in RFC 2616,
section 19.5.1. It is stated that "If this header is used in a
response with the application/octet-stream content-type, the
implied suggestion is that the user agent should not display the
response, but directly enter a ‘save response as...’
dialog". I suspect that Adobe hasn't had a chance to implement a
way for HTMLLoader to notify client code of this situation, or the
process for getting the HTTP response body.
Has anyone encountered a work-around? Does anyone know of
plans in place to correct this bug?

That's a fairly trivial and self-explaining error. The mentioned class (or more specifically, the JAR file with the class) is missing in the classpath. The solution is also obvious: get the JAR file from the O'Reilly site and place it in the classpath.
I would only recommend Apache Commons FileUpload over the O'Reilly thing. The FileUpload is much similar to the ancient (2001) O'Reilly thing and, above all, it is still in active development (O'Reilly stopped around 2005).

Similar Messages

  • CFMail breaks up attachments filename with non ASCII

    Hi CF-Devs out there!
    My problem is, that when attaching files via cfmailparam - no
    matter if inline or not - and using a filename that contains or a
    non 7bit-ASCII character or a simple space, the filename is not
    displayed correctly in Outlook nor Thunderbird. I am sure that this
    topic has been discussed here earlier but I really don't find any
    topic when using the Forum Search function... so please help anyway
    :) I am still using CFMX 6.1 :(
    My code is the following:
    <cfmailparam type="#variables.attachments
    .getContentType()#"
    file="#variables.attachments.getFilename()#"
    disposition="#this.dispositionType(variables.attachments
    .isInline())#"
    contentID = "#variables.attachments.getCid()#">
    When I revise the generated email code then I find the
    following:
    Content-Type: application/octet-stream
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename*2=nger.csv;
    filename*0*=UTF-8''emailempf; filename*1*=%c3%a4
    Content-ID: <DEE13419-D022-9396-C8A4DF2AAAA7C4EF>
    You can see that the filename (emailempfänger.csv)
    breaks up into several pieces which according to
    RFC 2231 is a
    valid format but obviously is not interpreted correctly by e.g.
    Outlook. Or am I missing something else?
    I would appreciate your help. Thanks in advance.
    Buergermeister

    The filename you used does not contain any non 7bit ASCII
    character. The problem only occurs if I use characters like
    "ä","ö","ü" but even [space] does provoke the error.
    The variables hold the following values (you can see them in
    the source posted, too):
    1) variables.attachments.getContentType() :
    application/octet-stream
    2) variables.attachments.getFilename() :
    [AbsoluteFilePath]/emailempfänger.csv
    3) this.dispositionType(variables.attachments.isInline()) :
    attachment
    4) variables.attachments.getCid():
    DEE13419-D022-9396-C8A4DF2AAAA7C4EF
    Cheers!

  • Air HTML HTMLLoader load https ssl with untrusted or unknown certificate, click 'yes' does nothing

    When i go to a https website with an untrusted certificate i get this warning.
    when i click "yes" the HTML component does not go anywhere. just a blank white screen.
    tried this out with adobe air 1.5 and 2.0

    Hi,
    I have the same problem on win 7 with my AIR project that worked fine with HTTP (HTTPService) and that has a chaotic behaviour with HTTPS, i.e. for each request the user need to clic 2 times on yes. The first time for accept the fact that the certificate is not validated by an offcial authority and the second time because the name in the certificate is not corresponding with the name of the server....
    Do these two actions for each request makes the application unusable ! I already tried to add my certificate to CA Root on my machine but it didn't resolve anything. Is there a solution to disable these warning from my air application ? Can I continue to use HTTPService for my communication ? Need I use low level classes as SecureSocket ?
    Thanks !
    Julien
    Message was edited by: JulienBu
    Additionnal info : I tried  to establish a socket connection on my server with SecureSocket class and I didn't find a way to bypass the blocking IOError #2031:Socket Error with the serverCertificateStatus = "principalMismatch". If I good understand, the socket do not want to connect to my server because it has not the good name and there is no way to accept to continue... That's it ?

  • Problem while reading http attachments - MultipartRequest

    hi all,
    Here i'm uploading a file from browser to a servlet.
    <form enctype="multipart/form-data" name="Upload_File" method="POST" action="https://203.199.21.20/servlet/nbSapNetWeaverFileUpload">
    Choose File:  <input type=file name="Upload_File" value="fileUpload" ><br><br>
    <input type=submit value="upload">
    </form>Trying to find the attached file using com.orelly.servlet.MultipartRequest class
    try{
               multi = new MultipartRequest(request,diretoryName,10*1024*1024,"ISO-8859-1", new defaultFileRenamePolicy());
           catch(Exception e)
               out.println(e);
         File file = multi.getFile("file");but i'm receiving the following exception..
    java.lang.NoClassDefFoundError: com/oreilly/servlet/MultipartRequestAlso i'm setting classpath correctly as wel upto my knowlege.
    Please help me.
    regards
    rajesh

    Crossposted and already answered: [http://forums.sun.com/thread.jspa?threadID=5347778].
    In the future, do not crosspost without mentioning about the crosspost. It is considered very rude to crosspost at forums. Others may spend lot of time and effort in helping you and they may got very angry when they discovered that you already got help and answer at aonther topic which you didn't mention about at all.

  • Pages ePub export - Can I use TOC for page breaks?

    I want to export a Pages file to ePub. Things work *almost* perfectly, except the page breaks disappear.
    I've read a few other threads, such as this one, that say that Pages uses the *first* style from the TOC to make page breaks. That doesn't work great for me, since I have multiple styles in my TOC that should all be page breaks.
    https://discussions.apple.com/thread/3722549?start=0&tstart=0
    Is there any way to force pages to use multiple styles from the TOC as page breaks, or will I have to enter them manually? Thanks.
    **Edit:** I noticed that the chapters are actually occurring correctly. So I guess what I want is to force the epub to start each chapter on a new page. Is that possible?

    Fair enough.
    I used the word "chapter" because that's what the epub document calls them, but section is a better word. Some headings look like this
    Test 29
    Section I - Logical Reasoning
    Test 30
    Section II - Reading Comprehsion
    Passage I - Wine
    Test 32
    Section I - Reading Comprehension
    Passage I - Wine
    Sometimes the Test # should appear in the TOC ( if it's the first section from that test) and other times it shouldn't. As things stand, I had to remove the Test # from the headings where the Test # doesn't appear in the TOC. Because a new section starts from the line styled to appear in the TOC, I was getting:
    "Test 30
    <section/chapter break>
    Section II - Reading Comprehension"

  • Mozilla to phase out non-secure HTTP

    Mozilla has announced its intent to phase out all use of "standard" HTTP, replacing it by the (more-)secure HTTPS.   This involves:
    Setting a date after which all "new" features will be available only to secure websites
    Gradually phasing out access to browser features for non-secure websites, especially features that pose risks to users’ security and privacy....
    The second element of the plan will need to be driven by trade-offs between security and web compatibility.  Removing features from the non-secure web will likely cause some sites to break.
    https://blog.mozilla.org/security/2015/04/30/deprecating-non-secure-http/

    Thank you, thank you, thank you FredMcD!! It was my AVAST anti-virus software. I had the "Web Shield" turned on, so all I did was turn it OFF, so now I can browse on the Internet on any website. When you first install Avast anti-virus, the Web Shield by default is turned on. This really should be turned off as not to freak out new users, especially by those that are not computer savvy. I cannot thank you enough! Take care. :-D

  • FCE - LOCATING TIMECODE BREAK - Why? Help please

    Hello!
    I'm trying to capture a video from camera miniDV.
    I select "CAPTURE NOW" but after few seconds (when a scene changes), appears this error :
    LOCATING TIMECODE BREAK
    http://img535.imageshack.us/img535/7316/schermata20100426a11402.png
    My settings are these :
    http://img202.imageshack.us/img202/3125/schermata20100426a11502.png
    Please help me...
    Thanks bye

    Timecode breaks could be caused by:
    1. Actual timecode breaks on the tape.
    2. Dirty heads in the playback system.
    3. Bad Firewire cable.
    4. Capturing to a USB hard drive
    5. Capturing to an improperly formatted hard drive
    6. Capturing while an anti-virus program is running
    If you're using Capture Now, try setting FCP's Device Control to Non-Controllable Device.
    -DH
    Message was edited by: David Harbsmeier

  • Ipad charger breaking a lot

    I tend to always have my Ipad on charge because what I do causes me to need constant charge, the cord isn't bent on a severe angle and I always pull it out by the connecter not the cord itself and it never changes location. I've spoken to apple online and done diagnostics on my ipad , they say the hardware is fine.
    And I know for a fact I'm not doing anything wrong because I've been doing the exact same thing for 3-4 year with an ipad 1 and I only ever had 2 chargers for that.
    So tell me, what should I do?
    <Edited By Host>

    This should be what you're looking for.
    Lightning cable keeps on breaking - https://discussions.apple.com/thread/5016869?start=15&tstart=0
    I have this cable durability problem on my iPad 4 too. The included cable only lasted one month, and I was able to get a free replacement from the Apple store under its one-year warranty.
    This contrasted with my old 30-pin connector, with which I have had no issues with for about 5 years.

  • NI VISA USB disconnect​ion events

    I am using NI VISA to control and acquire waveforms from a Tektronix oscilloscope in my application and so far everything works well but sometimes the USB connection can easily disconnect (and then connect immediately) and the MessagedBasedSession object then becomes invalid. My question is how can one setup events to know when a VISA device is connected and disconnected from an application so that these events can be captured and possibly notify the user or reconnect to the instrument. I know there are some functions such as Disable or Enable events but there are little documentation about these functions.
    Thank you.

    Hi falopsy!
    Thank you for contacting National Instruments.
    From what I understand of your problem you have a Tektronix scope connected to your computer via USB and you're communicating with it with the use of the VISA drivers. When the connection drops (briefly) and reconnects again, your MessageBasedSession expires and is no longer useful. I have found a few links that I think might help:
    Firstly, this method here simply detects an error; you can then notify the user of the error and ask them to reconnect.
    http://forums.ni.com/t5/LabVIEW/USB-Serial-VISA-pr​oblem-when-reset-happens/m-p/1442352
    You also mention VISA Events in your post, although I couldn't find a specific event for a connection drop I feel that it may still be of use:
    http://zone.ni.com/reference/en-XX/help/371361J-01​/lvinstio/visa_events/
    Lastly, I have attached an example VI of how to detect a serial break when transmitting data serially, this may also be of use.  It might also be a good idea to swap the USB cable in case this is causing the connection drop.
    I hope this helps! Let me know how these go and if there's anything else I can do - Have a great day!
    Max
    NOTE: If the attachement fails to open, it can be found in LabVIEW under Help>>Find Examples... and searching for "detect serial break".
    Attachments:
    Detect Serial Break Event.vi ‏35 KB

  • So is DMS in GroupWise a dead duck?

    Anyone know what the road map for DMS in GroupWise is? Is the
    document system in T+C taking over or is GroupWise going to retain
    its own DMS?
    any clue?

    looks like something big this way comes
    from: http://www.open-horizons.net/regiona...2008/hands-on/
    Lab160 - Connect Novell Teaming to GroupWise DMS using SOAP
    Find out how to create an integration between Novell Teaming & Conferencing
    and the GroupWise Document Management System using SOAP. This lab will
    demonstrate the significant work which has been done to integrate GroupWise
    DMS on the Linux Desktop with Teaming and Conferencing. A class to teach
    people to create their own portlets to interface into teaming and
    conferencing using SOAP will really add significant value to the GroupWise
    Summit.
    I can't see why SOAP access should be limited to Linux? but it is good to
    see access to DMS being enabled from Linux, even if it is not delivered out
    of the box yet
    after no development since, what GW 5.1 ? ish, (yes apart from breaking
    Office XP back in Jan 07, and recently breaking file attachments for
    non-librarians <sigh>) this has to go down as the most significant
    development in years, just a shame we will not see anything from the get go,
    and it will be down to 3rd parties to develop something....
    Simon
    >>> On 22 September 2008 at 00:53, in message
    <m8BBk.8595$[email protected]>, Tommy
    Mikkelsen<[email protected]> wrote:
    > They can't kill DMS, cuz too many big customers are using it....
    >
    > And with the SOAP API, who knows what's going to happen.....
    >

  • While loop using a timer object

    Hello Technet,
    I have a file that gets created every night by a batch job and I need to send that file every night. So, I came up with a method (if there's a better way, I'd like to hear). I created a 2 hour timer object to run a while loop. While the time elapsed is less
    than 2 hours, the loop will run.  In the loop, I have a if condition to test for a file.  If the file is not there, then sleep for 10 minutes.  If the file is there, then send it to me with send-mailmessage. The problem is, I will get the file
    sent to me at every interval because the loop is terminated by the timer. I would like the loop to terminate once the email message is sent to me.  Here is my code snip. Can someone please help on getting the loop to terminate when the message is sent?
    $file = "c:\file.txt"
    $timeout = new-timespan -hours 2
    $sw = [diagnostics.stopwatch]::StartNew()
    while ($sw.elapsed -lt $timeout)
    if(!(test-path -path "$file1"))
    file is not there...yet
    start-sleep -seconds 600
    else
    $SmtpServer = "relay"
    $To = "my@emailaddr"
    $From = "me@emailaddr"
    $Subj = "Got it"
    $Attm = "$file1"
    $Body = "Please see Attachment"
    Send-MailMessage -smtpserver $SmtpServer -from $From -to $To -subject $Subj -body $Body -attachment $Attm

    Hi,
    You can use break:
    http://ss64.com/ps/break.html
    EDIT: Alternatively, you can try this:
    $filePath = 'c:\file.txt'
    $found = $false
    Do {
    $file = Test-Path -Path $filePath
    If ($file) {
    Send-MailMessage -To [email protected] -From [email protected] -Subject 'Got it' -Body 'Please see Attachment' -Attachments $filePath -SmtpServer smtp.domain.com
    $found = $true
    Else {
    Start-Sleep -Seconds 600
    Until ($found -eq $true)
    This will loop until the file is found instead of relying on a timer.
    Don't retire TechNet! -
    (Don't give up yet - 12,700+ strong and growing)

  • Weird character in search result for HitHighlightedSummary property

    We have a INTEG search center and display managed property 'HitHighlightedSummary', which is a out of box managed property
    One of the results display as below in search result page:
    "Issue 9 brings us the latest news from the Home Oxygen Service team … Don't forget to read CorpNEWS next week to get the latest Home Oxygen Service update.  "
    Noticed that the last weird character? how does that happen? we have same setup in DEV env, but we don't get this issue, how to track down this issue.

    The Ascii code 8203 stands for line break :
    http://www.fileformat.info/info/unicode/char/200b/index.htm
    commonly abbreviated ZWSP ;  this character is intended for invisible word separation and for line break control; it has no width, but its presence between two characters does not prevent increased letter spacing in justification
    A third party editor may be adding them , if they are not originally present in your script/code.
    Are you using any such editor tools?
    It will be helpful to open a troubleshooting ticket with Microsoft so that we can look at the issue in more depth.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/23804eed-8f00-4b07-bc63-7662311a35a4/why-does-sharepoint-put-in-character-code-8203-in-a-richtext-field?forum=sharepointdevelopment

  • Design Question - Command Line Argument Processor

    Folks,
    I'm a java and OO newbie... I've been going through Sun's java tutorials
    I've "enhanced" Sun's RegexTestHarness.java (using Aaron Renn's gnu.getopt package) to expose the various Pattern.FLAGS on the command line.
    Whilst it does work the arguement processing code is awkward so I want to rewrite it... but I'm pretty new to OO, so before I spend days hacking away at a badly designed ArgsProcessor package I thought I'd run my deign ideas past the guru's... and atleast see if my ideas are impossible, or just plain bad.
    Any comments would be greatly appreciated.
    The starting point is RegexTestHarness.java/**
    *@source  : C:\Java\src\Tutorials\Sun\RegexTestHarness.java
    *@compile : C:\Java\src\Tutorials\Sun>javac -classpath ".;C:\Java\lib\java-getopt-1.0.13.jar" RegexTestHarness.java
    *@run     : C:\Java\src\Tutorials\Sun>java -classpath ".;C:\Java\lib\java-getopt-1.0.13.jar" RegexTestHarness -i
    *@usage   : RegexTestHarness [-vcixmslud]
    //http://java.sun.com/j2se/1.5.0/docs/api/java/io/package-summary.html
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.BufferedReader;
    //http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/package-summary.html
    import java.util.regex.Pattern;
    import java.util.regex.Matcher;
    import java.util.regex.PatternSyntaxException;
    //http://www.urbanophile.com/arenn/hacking/getopt/gnu.getopt.Getopt.html
    import gnu.getopt.Getopt;
    import gnu.getopt.LongOpt;
    * private command line options interpreter class
    class Options {
         public boolean verbose = false;
         public int flags = 0;
         public Options(String progname, String[] argv) throws IllegalArgumentException {
              LongOpt[] longopts = new LongOpt[9];
              longopts[0] = new LongOpt("verbose",               LongOpt.NO_ARGUMENT, null, 'v');
              longopts[1] = new LongOpt("CANON_EQ",               LongOpt.NO_ARGUMENT, null, 'c');
              longopts[2] = new LongOpt("CASE_INSENSITIVE",     LongOpt.NO_ARGUMENT, null, 'i');
              longopts[3] = new LongOpt("COMMENTS",               LongOpt.NO_ARGUMENT, null, 'x');
              longopts[4] = new LongOpt("MULTILINE",               LongOpt.NO_ARGUMENT, null, 'm');
              longopts[5] = new LongOpt("DOTALL",                    LongOpt.NO_ARGUMENT, null, 's');
              longopts[6] = new LongOpt("LITERAL",               LongOpt.NO_ARGUMENT, null, 'l');
              longopts[7] = new LongOpt("UNICODE_CASE",          LongOpt.NO_ARGUMENT, null, 'u');
              longopts[8] = new LongOpt("UNIX_LINES",               LongOpt.NO_ARGUMENT, null, 'd');
              Getopt opts = new Getopt(progname, argv, "vcixmslud", longopts);
              opts.setOpterr(false);
              int c;
              //String arg;
              while ( (c=opts.getopt()) != -1 ) {
                   //arg = opts.getOptarg();
                   //(char)(new Integer(sb.toString())).intValue()
                   switch(c) {
                        case 'v': verbose = true; break;
                        //http://java.sun.com/docs/books/tutorial/essential/regex/pattern.html
                        case 'c': this.flags |= Pattern.CANON_EQ; break;
                        case 'i': this.flags |= Pattern.CASE_INSENSITIVE; break;
                        case 'x': this.flags |= Pattern.COMMENTS; break;
                        case 'm': this.flags |= Pattern.MULTILINE; break;
                        case 's': this.flags |= Pattern.DOTALL; break;
                        case 'l': this.flags |= Pattern.LITERAL; break;
                        case 'u': this.flags |= Pattern.UNICODE_CASE; break;
                        case 'd': this.flags |= Pattern.UNIX_LINES; break;
                        case '?': throw new IllegalArgumentException("bad switch '"+(char)opts.getOptopt()+"'"); //nb: getopt() spits
         public String toString() {
              StringBuffer s = new StringBuffer(128);
              if (verbose) s.append("verbose, ");
              if ((this.flags & Pattern.CANON_EQ) != 0)               s.append("CANON_EQ, ");
              if ((this.flags & Pattern.CASE_INSENSITIVE) != 0)     s.append("CASE_INSENSITIVE, ");
              if ((this.flags & Pattern.COMMENTS) != 0)               s.append("COMMENTS, ");
              if ((this.flags & Pattern.MULTILINE) != 0)               s.append("MULTILINE, ");
              if ((this.flags & Pattern.DOTALL)  != 0)               s.append("DOTALL, ");
              if ((this.flags & Pattern.LITERAL) != 0)               s.append("LITERAL, ");
              if ((this.flags & Pattern.UNICODE_CASE) != 0)          s.append("UNICODE_CASE, ");
              if ((this.flags & Pattern.UNIX_LINES) != 0)               s.append("UNIX_LINES, ");
              if (!s.equals("")) {
                   s.insert(0,"{");
                   s.replace(s.length()-2,s.length(),"");
                   s.append("}");
              return(s.toString());
    * public regular expression test harness
    public class RegexTestHarness {
         public static void main(String[] argv){
              BufferedReader in = null;
              try {
                   Options options = new Options("RegexTestHarness", argv);
                   //System.out.println(options);
                   in = new BufferedReader(new InputStreamReader(System.in));
                   System.out.println("RegexTestHarness");
                   System.out.println("----------------");
                   System.out.println();
                   System.out.println("usage: Enter your regex (none to exit), then the string to search.");
                   System.out.println("from:  http://java.sun.com/docs/books/tutorial/essential/regex/index.html");
                   String regex = null;
                   while(true) {
                        try {
                             System.out.println();
                             System.out.print("regex: ");
                             regex = in.readLine();
                             if (regex.equals("")) break;
                             Pattern pattern = Pattern.compile(regex, options.flags);
                             System.out.print("string: ");
                             Matcher matcher = pattern.matcher(in.readLine());
                             if (options.verbose) System.out.printf("groupCount=%d%n", matcher.groupCount());
                             while (matcher.find()) {
                                  System.out.printf("%d-%d:'%s'%n", matcher.start()+1, matcher.end(), matcher.group());
                                  //start is a zero based offset, but one based is more meaningful to the user, Me.
                        } catch (PatternSyntaxException e) {
                             System.out.println("Pattern.compile("+regex+") " + e);
                        } catch (IllegalStateException e) {
                             System.out.println("matcher.group() " + e);
                   } //wend
              } catch (IllegalArgumentException e) {
                   System.out.println(e);
              } catch (Exception e) {
                   e.printStackTrace();
              } finally {
                   try {in.close();} catch(Exception e){}
    }... I haven't got a clue if it's possible, but I want my ArgProcessor.getArgs method to return a hash (keyed on name) of Objects of the requested "mixed" types... for example a boolean, a String, and a String[].
    I want the client code of my new fangled ArgProcessor to look something like this:class testArgProcessor {
         public static void main(String[] args) {
              //usage testArgProcessor [-v] [-o outfile] file ...
              try {
                   HashMap<Arguement> args = ArgProcessor.getArgs( args,
                        { //hasArg value, letter, name, type, value, default
                          {hasArg.NONE,     'v', 'verbose', 'boolean', true, false}
                        , {hasArg.REQUIRED, 'o', 'outfile', 'String', null, null}
                        , {hasArg.ARRAY,     '', 'filelist', 'String[]', null, null}
                   if (args.outfile != null) {
                        out = new BufferedWriter(......);
                   } else {
                        out = System.out;
                   for (String file : filelist) {
                        if (args.verbose) System.out.println("processingFile: " + file)
                        ... process the file ...
              } catch (IllegalArgumentException e) { //from ArgProcessor.getArgs()
                   System.out.println(e);
    }

    Paul,
    What are you trying to do, and why?Sorry I should have made myself a lot clearer...
    What I'm really trying to do is learn Java, and good OO design... so I'm going through the Sun tutorials, and I see that the standard Pattern class has a few handy switches, so I wanted to expose them to the command line... which I did using the handy gnu.getopts library...
    Are you trying to write a general purpose
    command-line processing library?Yes, I'm trying to write a general purpose command-line processing library? one that's "cleaner" to use than the gnu.getopts.
    I've been hacking away for a few hours and haven't gotten very far... what I have discovered is that gnu.getopts class is in fact very clever (surprise surprise)... and my idea to "simplify" it's usage leads to loss of flexibility. So, I'm starting to think I'm completely barking up the wrong tree... and that I was somewhat vanglorious thinking that I (a newbie) could improve upon it.
    Are you trying to write a command-line app to do
    pattern matching?Yep, That too... That's where I started... with an example from Sun's tutorials... where it's used to parse a long series of patterns and strings, exploring java's regex capabilities.
    I think I'll just give up on "improving" on gnu.getopts... my options processing code is ugly, and so be it.
    Thanx for your interest anyway.
    Keith.

  • Printing a PDF via Air

    Hey!
    With alivePDF I can create and save from Air a PDF-Document. I can also load this document in a new window in Air. But how can I print it from air?
    Printing via htmlLoader-Object raised the same error like in my post about printing a runtime created htmlloader-Object (http://forums.adobe.com/thread/591929?tstart=0).
    I like to use the start2() from Air2Beta2 option for printing without dialog. but how can i send this pdf content to the print-object?
    Is this possible?

    You have to be careful when using the ActiveX control to communicate with system functions like printing.  Because it can be embedded in anything that supports ActiveX, some functionality is limited from being called from JavaScript as it may interfere with the host application.
    Check out the IAC API Reference (also included with the SDK) and the methods under AxAcroPDFLib.AxAcroPDF.  There are some print functions in there (like PrintAll) that you can call on the ActiveX control directly, as in from your doPrint() method in your HTML page without using the hostContainer.  You would basically just call:
    pdfObject = document.getElementById("PDFObj");
    pdfObject.PrintAll();
    These methods were designed specifically to work with the ActiveX control when embedded in a host application, and can be used to print a PDF embedded in a web page.

  • Text in a Layer

    In a layer I have a number of lines of text, which is
    Indented Left. The layer fits exactly into the designed space,
    including its Right Vertical scroll. There is no Horizontal scroll.
    It's set to 'auto'. When I view the text in the Design window, it
    fits OK in the layer. However, when I view it in a browser, the
    last 3/4 characters wrap to the next line. I have tried to adjust
    the R number in the Clip property, but with no result. what should
    I do plese to remove this problem?

    You will always have problems with this arrangement. What
    will happen when
    I make my browser display the text larger than you used to
    get things
    arranged so well? It will break.
    http://www.great-web-sights.com/g_layer-overlap.asp
    Why do you need to do this?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Karlhevera" <[email protected]> wrote in
    message
    news:fldfqo$da5$[email protected]..
    > In a layer I have a number of lines of text, which is
    Indented Left. The
    > layer
    > fits exactly into the designed space, including its
    Right Vertical scroll.
    > There is no Horizontal scroll. It's set to 'auto'. When
    I view the text
    > in the
    > Design window, it fits OK in the layer. However, when I
    view it in a
    > browser,
    > the last 3/4 characters wrap to the next line. I have
    tried to adjust the
    > R
    > number in the Clip property, but with no result. what
    should I do plese
    > to
    > remove this problem?
    >

Maybe you are looking for

  • Send bulk emails with only the recipients name appearing in the TO field when they recieve it

    Hi I want to know if Mail or any third party software will enable me to send a bulk email to a group in my address book with the recipeant only seeing their name and not the names of all the others in the group email. I dont want to use cc or bcc bec

  • Error : Restore oracle database from TSM

    Hi , we have the RAMN backups of database in TSM. presently that database is droped in USNODE1. now we are trying to restore database from USSERVR23. i am getting below error,i think its TSM error. related to hostname changes.(ANS1302E (RC2) ) http:/

  • No Internet Connection - Apple, Where's The Help?

    I started using my MBA last week and have been unable to consistently connect to the internet through wireless networks in multiple environments (my home, my office, airport, hotels) when other Apple laptops are connecting without issue. Right now I'

  • Load balancing / fail over

    Dear forum, Is there an other and more simple / "cheaper" way for load balancing / fail over then using RAC ? E.g. starting more instances againts the (same) database ? Thanks in advance, Michel Edited by: Michel77 on Dec 9, 2008 12:06 PM

  • Cannot create root site in newly configured SP2013 farm

    I just finished running the configuration wizard and built the sp2013 farm. I then created the web application and now I am trying to create the root site in the web application. But on browser it says "Something went wrong. user cannot be found" In