View Single Post
 
Old 06-29-2016, 06:18 AM
ArchanaV ArchanaV is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Jun 2016
Posts: 2
ArchanaV is on a distinguished road
Default

Is there a way I can get or retain formatting without paragraph mark? I could get the input rtf while copying the text from word in my application and found that the font Courier New, 10 with which the text was created was missing in the rtf not having the para mark. please find the rtfs attached below with & without the para mark copied. I understand that without the font details there is nothing we can do but is there an alternative because we cannot force clients to copy content with para mark. They should be able to copy any piece of text from the word document.

Rtf of the text copied with paragraph mark:

{\rtf1\adeflang1025\ansi\ansicpg1252\uc1\adeff3150 7\deff0\stshfdbch31506\stshfloch31506\stshfhich315 06\stshfbi31507\deflang1033\deflangfe1033\themelan g1033\themelangfe0\themelangcs0{\fonttbl{\f0\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f2\fbidi \fmodern\fcharset0\fprq1{\*\panose 02070309020205020404}Courier New;}
{\f2\fbidi \fmodern\fcharset0\fprq1{\*\panose 02070309020205020404}Courier New;}

{\rtlch\fcs1 \af2 \ltrch\fcs0 \cf18\insrsid3284070 "Segoe UI Bold (TrueType)"=""
\par }

Rtf of the text copied without paragraph mark:

{\rtf1\adeflang1025\ansi\ansicpg1252\uc1\adeff3150 7\deff0\stshfdbch31506\stshfloch31506\stshfhich315 06\stshfbi31507\deflang1033\deflangfe1033\themelan g1033\themelangfe0\themelangcs0{\fonttbl{\f0\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f0\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}

{\rtlch\fcs1
\af31507 \ltrch\fcs0 \cf17\insrsid3284070 "Segoe UI Italic (TrueType)"=""}

I have pasted the rtfs in fragments where font details and text copied is captured above. Please find the complete rtfs attached for reference and give your inputs on if something can be done to retain the formatting?
Attached Files
File Type: txt clipboard_with_para.txt (41.4 KB, 8 views)
File Type: txt clipborad_without_para.txt (40.2 KB, 8 views)
Reply With Quote