🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.indesign.sdk
Article #564

Copy indesign text using IScrapSuite does not maintain font info

#564
From: pallavik
Date: Mon, 05 Jan 2009 13:42
33 lines
1938 bytes
Hello All ,
  Using IScrapSuite and IClipboardController I am try to copy the text in indesign cs application.
I text is in indian language and I have set the paragraph style to text.For first paragraph all text get copied correctly , but for next paragraph onwords font information is lost.So how to maintain the font information ?

code is :-
InterfacePtr<IScrapSuite> pscrap(static_cast<IScrapSuite*>(Utils<ISelectionUtils>()->QuerySuite(IID_ISCRAPSUITE)));
		if (pscrap)
		{
			InterfacePtr<IClipboardController> clipController(gSession, UseDefaultIID());
			if (clipController == nil)
			{
				MessageBox(NULL,L"clipController invalid", L"Suite", MB_OK);
				return -1;
			}
			if (pscrap->CanCopy(clipController) != kTrue)
			{
				MessageBox(NULL,L"Can not copy text",L"CanCopy",MB_OK);
				return -1;
			}
			if (pscrap->Copy(clipController) != kSuccess)
			{
				MessageBox(NULL,L"Can not copy text",L"Copy",MB_OK);
				return -1;		
			}

Font is two byte font.For first paragraph text get copied correctly . but for paragraph after the firt no font information is maintained.
text is like :-
   <e101><e101><e101><e101><e101><e101>
<e101><e101><e101><e101> <-till this we can see text with font <e102><e102><e102><e102> <e102><e102>
<e102><e102> <e102><e102> <e102><e102> <-Can not see the text with font deails

Thanks & Regards,
Pallavi.
Technical Details
Message-ID: <59b76da4.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f63e9,d5c4f98d17041c9c,start
X-Google-Attributes: gidf63e9,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: pallavik@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.indesign.sdk
Subject: Copy indesign text using IScrapSuite does not maintain font info
Message-ID: <59b76da4.-1@webcrossing.la2eafNXanI>
Date: Mon, 5 Jan 2009 05:42:44 -0800
Lines: 42
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit