rtf

Reading RTF File Containing an OLE Embedded Object

依然范特西╮ 提交于 2019-12-25 17:18:22
问题 Question : I need to read an RTF File that contains an OLE Object as innerdocument. RTF File = [ Ole object (word document) is embedded into it.] Sample RTF File that contains word as OLE Embedded into it. Reference I have done : OLE as Image in RTF Here they have done a program to extract the image embedded as OLE in RTF. I had extracted the program which is marked as correct answer , but its does not work for me. Using OpenXML SDK. (it cannot be able to open RTF Files.) some other SDK like

Import, parse, edit and save RTF documents with formatting preserved in iPad and Droid apps

那年仲夏 提交于 2019-12-25 02:23:08
问题 My goal... I've .rtf template files at my web server. I need to import those files into my iPad and Droid app. I need to show the contents of imported template file with exact formatting in an RTF editor in my iPad/Droid app. I need to make small changes in templates and save resulting document as rtf/pdf on my iPad or Droid. What I am NOT asking... I know we can display RTF, DOC and PDF formats in web view but that is a readonly view and is of no use in my case. So PLEASE DON'T TELL ME that

Find coresponding open/close brackets

余生长醉 提交于 2019-12-25 01:59:40
问题 A follow up on a previous question: PHP how to best edit an RTF File I believe I have a solution, but need some more help. I found that if I use merge fields in my template builder, my php code could find/replace fields that are in this pattern: "{\field}" The problem is, though, that I would need to find the whole string, remove all RTF tags, and compare the text left behind. The first step, though, is to find the full markup. And this is where I am stuck. I would need to be able to find the

concatenating 2 rtf fields stored in blobs with a sql script

只愿长相守 提交于 2019-12-24 23:32:11
问题 I need to concatenate 2 rtf fields stored in 2 separate blob columns (actually they are nvarbinary(max) in sql server). I need to do this with a database script, not in an application. Is there a way? Or the only solution is to remove all the rtf headers, concatenate the "body" of the 2 fields and then recreate the headers? By headers I mean \rtf1\ansi\ etc... 回答1: If you can cleanly remove the headers and fix any CRC/length issues, then a simply string concat (which is valid for binary types

The “rtf” file extension is disappearing during the execution of the mime/extension validation script using “finfo” PHP class

橙三吉。 提交于 2019-12-24 23:23:54
问题 I am trying to create a cross validation of uploaded files through phpmailer using the "extension X mime" file values, the system is working to almost all files that i need to do this, but exceptionally with .rtf files the script isn't working. The extension just disappear, the script can't get this if the file is .rtf . I'm using this script: https://stackoverflow.com/a/33349901/4623271 with some adaptations. Bellow in the code, is the variable $ext where i can get the extension of any files

Cocoa NSAttributedString Pasting Changes Font

谁说我不能喝 提交于 2019-12-24 15:42:22
问题 I have an NSAttributedString which has an NSAttachment and some text. I have copied it to the pasteboard. I have also made sure that the string has no font attributes. When I paste it, it always changes the font to Helvetica. Is there any way to prevent this behavior? let wrapper = NSFileWrapper() wrapper.preferredFilename = "image" let attachment = NSTextAttachment(fileWrapper: wrapper) if let im = NSImage(data: data) { attachment.image = im } let image = NSAttributedString(attachment:

iTextSharp: Writing RTF in a PDF document

ⅰ亾dé卋堺 提交于 2019-12-24 10:38:19
问题 I'm using iTextSharp (with C# and VS2008) to generate a report from a database table row. Generate PDF is not a problem... but when I try to add RTF text into the PDF I cant't find a way into iTextSharp object structure. How can I do it? Thanks a lot! 回答1: Consider converting your RTF to HTML and then writing your HTML to PDF using iTextSharp. I've never done this but here are some resources that might help: Writing Your Own RTF Converter Need help with creating PDF from HTML using itextsharp

Merging two rtf fields showed in bad style

我只是一个虾纸丫 提交于 2019-12-24 09:26:58
问题 In my application episode of each book saved in SQLite database as rtf format. I merging episode by this code: rtbText.ResetText(); rtbText.Clear(); rtbText.Rtf = null; DataTable dt = DAL.DataAccessClass.MultiMedia.FetchTexts(PointId, OutPointTitleId); if (dt.Rows.Count != 0) { string TextForRtf = string.Empty; RichTextBox rtftxt = new RichTextBox(); foreach (DataRow Row in dt.Rows) { string Temp = Row["PointTitleContentRTF"].ToString(); TextForRtf += Temp.Replace("\n}", "\n").Trim(); }

how to print Rich text box contents on any device contenxt with proper formatting?

梦想与她 提交于 2019-12-24 09:09:42
问题 i would like to print the rich text box contents with formatting to any device context, for example I would like to print on panel or any other control which is associated to actual print device. I am simulating print preview using panel by drawing some contents from a custom designed form, rich text content is one among the content of that form is there any best solution to address this?? 回答1: below is code that prints an rtf control's contents to the printer. i could be adapted to print to

Runtime exec and a custom built RTF editor

ⅰ亾dé卋堺 提交于 2019-12-24 07:01:28
问题 I have a class that manages the creation of RTF documents and a method in that class that calls the RTF editor with a XML file for display. All but one user can access this editor without any issues. This one user consistently runs into an issue where their application just hangs. There are no errors in any logs. Normally this kind of problem is easily identified, reproduced and corrected, however, I can't for the life of my reproduce it so my attempts at debugging are failing. Basically the