Missing text/rtf clipboard format in AIR

When cutting and pasting rich text, AIR and Safari act
differently. Dumping the dataTransfer.types in the browser shows a
number of formats (many fairly arcane for the Mac) including
text/plain and text/rtf. In AIR, only text/plain shows up; text/rtf
doesn't (and neither do the other arcane formats). The AIR API
seems to support text/rtf so what gives here? Perhaps there's a
security issue I'm overlooking?

Just to make sure: This is a bug, right? Not a feature? I'm
assuming so since things work a bit better on the Windows platform;
I get text/plain, text/html and air:rtf when dragging from an
external browser into an AIR-based HTML control.
While sometimes the drag is initiated from an HTML control
from within AIR, often our users need to drag from Pages (or Word).
Losing the format is a huge loss.
Unfortunately, I don't have the luxury of being in an
application sandbox.

Similar Messages

  • Using Create PDF from Web Page; Resulting PDF is missing text

    Trying to create pdf's from various web pages.  Generally process works very well but some pages have missing text and bad formatting.   Specifically; http://www.robinhood.ca/Recipes/Occasions/Spring/Apricot-Tartlets
    When I create the PDF; I am missing the text under "directions" and the description is truncated and forced to the far right.  
    Seems like I am missing a formatting or font setting but I have adjusted everything I can think of and have had no luck.  
    Running Acrobat Pro XI.  
    Anybody have any thoughts?  

    yes; looking at the source; seems that <table> is being captured correctly but the part that is missing is a <div>.    I'm not an expert at deciphering the page source but seems like that is the problem.
    Is there a work around? 
    when I print via the firefox plugin it prints fine.  but i ultimately want to capture several layers on the site if I can get the formatting resolved. 

  • Issue Using C# to Get RTF Text From Clipboard to Outlook With Formatting and Without Encoding Tags

    I have created a little application that gathers data from various text boxes and then combines the data into a formatted richTextBox.  A person using the tool asked if I could then add a button that would allow that text (with formatting) to be copied
    and pasted into an Outlook Email.  When I do this, I can get the text into an email, but I either strip out the formatting or I get all the RTF encoding tags to come along with it. 
    I have tested to see that the copy of the data from the richTextBox has indeed made it to the clipboard correctly.  This has been verified by the fact that I can manually press "ctrl" + "v" and I can past the text with proper
    formatting into the mail body.
    I do know that I can brute force things by trying to manually wrap HTML tags around my textBox fields and then pipe that into an HTMLBody property.  In fact I can get a lot of things to work with the HTMLBody property, but while it is nice that will
    work, I feel that I must be missing something really simple while trying to work with RTF.
    I currently am pasting (using the Clipboard.GetText(TestDataFormat.RTF)) the RTF data into the Body property of the mail item.  This is bringing in all the RTF encoding tags.  I have tried to paste this directly into the RTFBody of the mail item,
    yet an execption gets thrown when executed.  Oddly, though, if I change RTFBody to HTMLBody, I do not get the exception, but I still have the RTF encoding tags in it.  Though if I feed the HTMLBody property straight, HTML text with the encoding tags,
    it will render properly.
    This has me confused then why if I feed HTMLBody HTML text with the encoding tags that it will render, but if I try and do the same for RTFBody and feed it RTF text with encoding tags it still throws an exception.  Any help in the matter would be greatly
    appreciated.  I have included the code snippet below for sending the richTextBox information to the clipboard and then attempting to retrieve it and paste it into an Outlook email.
    Thanks for the help.
    Some pertinent information:
    Blend for Visual Studio 2015 CTP6 (I switched from VS2012 as intellisense was added to Blend in 2015)
    Because of this Systems.Windows.Forms is not in use
    private void buttonEmail_Click(object sender, RoutedEventArgs e)
    //Copy richTextBox information to Clipboard
    Clipboard.Clear();
    richTextBox.SelectAll();
    richTextBox.Copy();
    //Get current date to add to email subject line
    DateTime myNewDate = new DateTime();
    myNewDate = DateTime.Now;
    //Create Email
    Outlook.Application myNewApplication = new Outlook.Application();
    Outlook.MailItem myNewMailIoI = myNewApplication.CreateItem(Outlook.OlItemType.olMailItem) as Outlook.MailItem;
    myNewMailIoI.To = " "; //An attempt to ensure that the focus moves down to the body field
    myNewMailIoI.Subject = "IoI - " + myNewDate.Date.ToString("d");
    myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatRichText;
    //Pasting data into body of email
    myNewMailIoI.Body = Clipboard.GetText(TextDataFormat.Rtf); //This will past the text with encoding tags into email
    //If this section is uncommented, it will add a properly formatted HTML text to the email
    //myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;
    //myNewMailIoI.HTMLBody = "<p>This stinks!!!</p>" + "<p style='color: green; font-size:10pt; font-family:arial'>different font and color</p>";
    myNewMailIoI.Display(); //Allow for window to be minimized
    myNewMailIoI.Display(true);

    Ok, I found the solution.  Part of the issue was caused by the confusion of the HTML body property acting as a text encoder for HTML text when a string is passed in vs the RTF Body property needing to have a plain text file taken and encoded into a
    byte stream.  Even though the RTF text is in readable text (albeit with the RTF Encoding Tags) it needs to be reencoded into a series of bytes. 
    This is where I failed to understand the previous answers.  I knew that RTF Body needed to have a array of bytes, and the previous answers seemed to indicate that the data in the clipboard was already in this byte format (this may have just been my
    misunderstanding) and that I needed to somehow take this byte array and do something with it.  My misunderstanding was that all the methods for getting values from the clipboard returned strings and not bytes.
    after some digging last night and with the few hints that were offered before, I came across a post on CodeProject (apparently I cannot post links, so I will try and include this so that you can find the postcodeproject(DOTCOM)/Questions/766917/How-to-convert-richtextbox-output-into-bytearray). 
    This showed that I needed to take the raw, RTF text with its RTF encoding tags from the clipboard and and encode it to a byte array and then pass this into the RTF Body property.  Included below is the final code such that I hope that it helps some other
    person as there seem to be a lot of searches for this on the web, but not a lot of direct answers.
    using System.Text;
    using Outlook = Microsoft.Office.Interop.Outlook;
    private void buttonEmail_Click(object sender, RoutedEventArgs e)
    //Copy richTextBox information to Clipboard
    Clipboard.Clear();
    richTextBox.SelectAll();
    richTextBox.Copy();
    //Get current date to add to email subject line
    DateTime myNewDate = new DateTime();
    myNewDate = DateTime.Now;
    //Create Email
    Outlook.Application myNewApplication = new Outlook.Application();
    Outlook.MailItem myNewMailIoI = myNewApplication.CreateItem(Outlook.OlItemType.olMailItem) as Outlook.MailItem;
    //Add Subject
    myNewMailIoI.Subject = "IoI - " + myNewDate.Date.ToString("d");
    //Set Body Format to RTF
    myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatRichText;
    //Converting RAW RTF data from string to bytes. THIS IS THE FIX THAT WAS NEEDED TO MAKE IT WORK
    string myNewText = Clipboard.GetText(TextDataFormat.Rtf);
    byte[] myNewRtfBytes = Encoding.UTF8.GetBytes(myNewText); //This line cost me way too many hours of lost sleep!!!
    //Inserting RTF bytes into RTFBody property
    myNewMailIoI.RTFBody = myNewRtfBytes;
    myNewMailIoI.Display(); //Displays the newlycreated email
    //If this section is uncommented, it will add a properly formatted HTML text to the email
    //myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;
    //myNewMailIoI.HTMLBody = "<p>This works for the HTMLbody property!!!</p>" + "<p style='color: green; font-size:10pt; font-family:arial'>this renders properly</p>";

  • PDF has missing text when created from FM 9

    My Software:
    Windows XP Professional Version 2002 SP 3
    FrameMaker 9.0p255
    Adobe Acrobat 9 Pro Version 9.4.1
    When generating a PDF document from FrameMaker, the PDF document has random missing text, including whole paragraphs, sentences and some text in tables. We have several FrameMaker books and they are all having the same issues. These books were fine when we last published updates within the last month and we have not made any changes to fonts.
    When generating a PDF from FrameMaker, we always print the book to a postscript file first following these steps:
    - Go to File > Print Book.
    - Select the Adobe PDF printer.
    - Select the Print to File option and specify a .ps filename.
    - Select the Generate Acrobat Data option.
    - Use Acrobat Distiller to convert the PS file to PDF.
    Note that I also tried File > Save As PDF and got the same results.

    Did you reboot after the hotfix? fwiw, other users on the forum have had difficulty with the hotfix not being installed correctly the first time around.
    once you download the hotfix from MS you have to run the .exe, and then  when it’s finished you have to reboot. Then check the Add or  Remove programs in Control panel, and click the “show updates” button,  then scroll way down to see the hotfixes, to be sure that #952909 is  shown.
    What fonts are you using in your documents? Specific type (PS, TT, OTF) and any other info you have (foundry, etc).
    Do the "gaps" seem to occur when there are font changes in the document, e.g. when words in a sentence are bold or when a paragraph in a different weight (e.g. bold italic) follows, say, a "regular" text weight paragraph? As another test, can you highlight a segment of good+bad+good text in the PDF, do Control+c to copy it to the clipboard, then Control+v to paste it into a different file (Word, text editor, even another new FM document).  Do the words of the "missing" text segments show up?
    edit: the hotfix download process is a bit confusing; if I remember correctly it has to be requested, then MS sends a link to the download webpage, then the downloaded .exe has to be run.

  • Randomly Missing Text in PDF Created from FrameMaker

    This problem relates to a structured FM document, but I suspect it might be a general issue and have posted it here in the general forum for that reason.
    I am generating PDFs that are missing text somewhat randomly throughout. I tried searching the forum for solutions, but none of the suggested fixes worked and none of the posts specifically addressed the issue I am experiencing.
    I am working in structured FM. The templates we use were originally created for FM8. We use both FM8 and FM10 in our work group. We are able to duplicate the same problem in both versions and on multiple computers.
    I thought I had narrowed the problem down to certain paragraph formatting, since it only ocurs in three or four paragraph formats (a bullet list, table text, etc.) Garden variety formatting. But in most places in the document, these formats appear perfectly. The strangest occurence is a single intance where the page number is missing from the footer.
    I thought it might be a font issue, as I've had similar issues in the past. I had a missing font warning in the console, but I am pretty sure that this has nothing to do with it, since they are fonts we are not using and all the other text from the same formats appears.
    I tried turning off "Remember Missing Font Names" in preferences. No help.
    I checked that the fonts are in the local directory and appear as embedded subsets in the PDF.
    I also tried checking and unchecking the "Rely on system fonts only; do not use document fonts" option in the PDF output settings. Also no help.
    The randomness of the missing fonts bewilders me and I've exhausted my own troubleshooting abilities. I would be happy to share a source file if anyone thinks they could help me that way.
    Thanks in advance,
    Douglas

    There is a known bug in Windows XP that causes random dropped text in
    PDF. The hotfix is here, though the link does not seem to be working at
    the moment:
    http://support.microsoft.com/?id=952909
    However, the above link directs you to a download link that is here:
    http://support.microsoft.com/Hotfix/KBHotfix.aspx?kbnum=952909&kbln=en-us <http://support.microsoft.com/Hotfix/KBHotfix.aspx?kbnum=952909&kbln=en-us

  • Missing text in PDF when I use Acrobat 9.2 and FM 9

    I was able to PDF ok from FM9 using Acrobat 6, but when I upgraded to Acrobat 9.2,
    I'm getting some missing text in the PDF. Some non-bold text is missing. The number
    for Chapter 3 is missing in the TOC. Any suggestions?

    I was able to PDF ok from FM9 using Acrobat 6, ...
    What font name, format (TTF, PFB/PFM, OTF?) and vintage?
    Did you upgrade the fonts when upgrading the apps?
    Any chance you have multiple copies of the same typeface name installed? Historically, having both the TTF and PFM (Type 1) of the same name installed could have undesired results.
    ... but when I upgraded to Acrobat 9.2, I'm getting some missing text in the PDF. Some non-bold text is missing.
    What is "some text"? Some entire typefaces (all text thereof), or just some characters of a typeface, like, say, the ligatures in Helvetica.
    The number for Chapter 3 is missing in the TOC.
    What font is Frame looking for?
    Also, are you embedding the fonts during PDF creation?

  • How to copy paste a table structure from word document into Text Field [field format Rich Text]

    In our current implementation we have a Blank page with Text Field [field format Rich Text] on generated PDF Document.
    Once the PDF document is generated, user can copy paste content form any word/rtf document to into the Text Field.
    Pasted content retains all text formatting [Bold, Italic, Underline, Indentation] except the Table format. Text Field is removing table metadata from the content and converting it into plant text.
    Is there anyway to copy paste table structure as it is from word document into Text Field?

    Hi,
    I don't think you can! While you can paste formatted text into the rich text field, the table metadata means nothing to the textfield.
    Niall

  • Text in Table format

    Hi, I am unable to paste my text in Table format from MS Word
    like I use to in Dir MX 2004...
    Do I need a plug-in now or do I need to do it the long way
    round, 1st make the text into HTML then do some scripting in Flash,
    export it and import it into Director?
    Please help?
    http://justkuankuan.bravehost.com/Table.zip

    Things I have tried...
    Copy the text in MS Expressions/Dreamwaver and importing the
    html in Dir, result: text not align.
    Exporting text in rtf, html from MS Word, result: error 85,
    or -1.
    Please Help?

  • Image to text convertor app for MacBook Air

    hi any one can help me regarding "image to text convertor app for MacBook Air". Actually I want to make soft text document of some my collected material which contains text information. Is any software/app is availeble to convert image to text? please help me...!!!!?

    Your Air has Apple Pages built in. That should work fine. Depending what format your electronic essay system requires, you may have to export to either Word or PDF, both of which Pages can do.
    Alternatively, Libreoffice (libreoffice.com) is free and has most of the features of Microsft Office. You can of course buy Office but that's the most expensive option.
    Matt

  • Missing Text In Pages 08 Document

    I'm having an issue with a Pages 08 document. I recently opened it and seemingly random chunks of text are missing. The document retains the original formatting, so it looks as if the "missing" text was turned to white. But, that is not the case. It is missing altogether. What's even stranger, the missing text shows up in Quick Preview. Can anyone help?

    You have to make sure you have the latest update of Pages'08. The version is 3.0.3
    Also validate your fonts in the Font book in you Application folder. Delete duplicates.
    It is always wise to do Repair Permission when having done a major installation like the system update.
    Starts with these advises. There are others thing that can be tried too.

  • Hw could copy a unformatted text from a formated paragraph

    Dear all,
    I am trying to copy an unformatted text from a formatted paragraph i have a code snippet, Please check it out and tell me that how can i copy a unformatted text from a paragraph. Result of this script should be a unformatted selected text...
    var par = app.selection[0].paragraphs[0];
        if (app.selection[0] instanceof InsertionPoint)
            if (par.characters[-1].contents != "\r")
                par.insertionPoints[-1].contents = "\r";
                par.characters.itemByRange(app.selection[0], par.insertionPoints[-1]).select();
                app.copy();
            else
                par.characters.itemByRange(app.selection[0], par.insertionPoints[-1]).select();
                app.copy();

    It's not the copy that 'removes' formatting, it's the paste that pastes without.
    Text can exist on the clipboard in any number of internal formats. It's possible to copy InDesign formatted text and paste it into a plain text editor -- so you won't get the formatting. But if you paste the same text again in InDesign, the formatting is still there.
    When copying, it's the responsibility of the copying program to put its copyable content in any useful format onto the global Clipboard.
    When pasting, a program should go through the list of supplied data formats (regardless of the source) and pick whatever it thinks is best. So, apparently, the usual Paste picks up InDesign "Native objects", while "Paste w/o Formatting" uses the plain (unformatted) text form.
    The only way to get an unformatted copy on the pasteboard would be to copy the string contents (raw ASCII characters) instead -- but InDesign's Javascript does not allow this. The app.copy() command only works on native InDesign objects.
    So, long story short, what you need can't be done.

  • How to Print a text in bold format in a classic report ??

    How to Print a text in bold format in a classic report ??

    hi
    u can use
    <b>FORMAT  INTENSIFIED ON.</b>
    regards
    ravish
    reward if useful

  • Why each time I try to save my day's work,version WITH mark-ups and version w/o, does it say "you have placed a large amount of text on clipboard do you want to access this? What is clipboard and how can I just save my work in its proper file?

    I don't get this clipboard thing! I have created two files, one for the MS with mark-ups, and one for the unmarred version, each living in their own spot in my "house." It seems to be merging the two versions and I have to go in and re-paste and then it always says "you have placed a large amount of text on clipboard do you want to be able to access this?" and it prompts me to say no but I am afraid I'll lose my day's work so I just tap cancel. I highlight the day's revision and select "copy" to paste into the unmarked doc. before I save on the marked up or working doc. It is when I try to close that one that the clipboard issue pops up. What can you tell be about saving doc. in two places and how to NOT get it on clipboard? Thanks! I am not super computer savvy so layperson's language much appreciated!

    Are you using Microsoft word?  Microsoft thinks the users are idiots. They put up a lot of pointless messages that annoy & worry users.  I have seen this message from Microsoft word.  It's annoying.
    As BDaqua points out...
    When you copy information via edit > copy,  command + c, edit > cut, or command +x, you place the information on the clipboard. When you paste information, edit > paste or command + v, you copy information from the clipboard to your data file.
    If you edit > cut or command + x and you do not paste the information and you quite Word, you could be loosing information.  Microsoft is very worried about this. When you quite Word, Microsoft checks if there is information on the clipboard & if so, Microsoft puts out this message.
    You should be saving your work more than once a day. I'd save every 5 minutes.  command + s does a save.
    Robert

  • How to ouput a text as xhtml format in AIF

    Dear Gurus:
        Would you like to help me on output a text as xhtml format in AIF?
        E.g.  i would like to output a text as  "M2M" ,the text is passed from one field of  interface structure, I try to put the text as "M<sup>2</sup>M"  in the field of interface structure , but it just outputs full text "M<sup>2</sup>M" , doesn't show "M2M" as my expectation, I already set the field format as "Rich Text" and data format as "XHTML"  for the object of text field in AIF.
       Please help. thank you very much .

    Hi Naveen:
      please find below screen-shots , thanks
    1) the content from interface
    2)Output in the AIF form
    My requirement is Prize is M2M, like left cell Prize2
    3) field property

  • How to print text in paper format iin smartforms

    Hi all,
      I want a question that  how to print text in paper format like  paper divides into 2 parts and if the firstpart is full of text i.e., it exceeds the first page the text will be displyed in the second part of the first page.
    Usefull answers will be awarded.
    Thanks all...

    Hi,
    U create two windows in the page and same as like second page.
    but in first page first window select the condition print only on first page.
    in second window select conditin print only on second page.
    first try without creating a secondpage. if that doesn't workout create secondpage and try.
    Assign points if useful.
    Regards
    (YUGANDHAR.P)

Maybe you are looking for

  • Flash player freezes in Firefox

    Flash player is causing Firefox to freeze for about 30 seconds whenever I access a website which uses flash. I am using the latest version of Firefox (v19.0.2) and the latest version of Adobe Flash (v11.6.602.171). This same problem has existing for

  • I pod switch on by itself!!

    Help! - my new ipod will just switch on by itself even when its on HOLD. i have even seen it happen myself! of course this ***** battery power. any ideas any one?

  • Are there license limitations on Student and Teacher edition?

    I am a student in the UK and have been hoping to purchase Flash CS5.5 Student and teacher edition. However, I have been trying for some time to find out if I would be legally allowed to use the software for commercial use, and have never been able to

  • Osx 10.9.5 multiple duplicates of same draft or email in Mail. If I search mail, sometimes 15 copies appear.

    For the past months, MAIL does not seem to be working right. Sometimes it stores 15 copies of the same mail, sometimes the drafts stay in the draft's folder after they have been sent, sometimes not. Some mails disappear altogether. I also feel that t

  • Safari shortcuts dont work for navigating through open tabs

    I read that Control-Tab or Control-Shift-Tab are shortcuts that navigate left and right through open windows in Safari. I also ready that CMD-Shift-left arrow navigates to the left.  But only moves once, and if you select same with right arrow, nothi