How to convert a text object to a Group?
There are some text object present on Adobe Illustrator document. Each text object is required to convert in individual group, so that some entities can be inserted under those objects turned groups.
In the APIs available with AI SDK, there can not be found an API to have the conversion directly. There is a provision of 'ReleaseToLayer' but it will not serve the purpose.
Will it be possible to have such coversion?
OR
It will also do, if a Group is created and the text object is able to be moved under the Group.
Is there any API to create a 'Group' ?
I'm not quite following what you're trying to do exactly, but I'm sure there's a way to do it.
You can create a group using the AIArtSuite (NewArt). You can iterate through a text object using the objects found in IText.hpp. You can load an IText object using the functions in AITextFrame.h (usually GetATETextRange). If you're trying to break up parts of text into separate groups, you'll have to do that manually using these APIs. If that's not what you're trying to do, I'm afraid I'm just not understanding your explanation; maybe you can try and clarify it.
Similar Messages
-
Post Author: ftpaxa
CA Forum: Other
I use a SQL server DataBase on Windows server 2003 with service pack 2. i use Crystal Report 10 with ODBC connection. I read that the nice DLL is "Crdb_odbc.dll".I saw a VB code "How to format a text object" on this site :http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=crxiTechrefenpdf&sliceId=&dialogID=7686352&stateId=1%200%207680692--' Create a new instance of the report.Dim oReport As New CrystalReport1Private Sub Form_Load()' Declare a TextObject object.Dim oTextObject As CRAXDRT.TextObject' Declare a generic Object.Dim oObject As Object' Declare a Section object.Dim oSection As CRAXDRT.Section' This variable is set to true once the' text object is found.Dim bText As BooleanbText = False' Search for all the report objects in each section.For Each oSection In oReport.SectionsFor Each oObject In oSection.ReportObjects' Find the first text object.If oObject.Kind = crTextObject Then' Get the text object and exit the loop.Set oTextObject = oObjectbText = TrueExit ForEnd IfNext oObjectIf bText Then Exit ForNext oSection' Format the text object and change the text.With oTextObject.BackColor = vbYellow.BorderColor = vbRed.BottomLineStyle = crLSDoubleLine.CanGrow = True.CharacterSpacing = 125.CloseAtPageBreak = True.FirstLineIndent = 25.Font.Italic = True.Font.Bold = True.Font.Size = 14.HasDropShadow = True.Height = 900.HorAlignment = crLeftAlign.KeepTogether = True.Left = 200.LeftIndent = 750.LeftLineStyle = crLSDashLine.MaxNumberOfLines = 16.RightIndent = 250.RightLineStyle = crLSDotLine.Suppress = False.SuppressIfDuplicated = True.SetText "Hello World".TextColor = vbBlue.TextRotationAngle = crRotate0.Top = 25.TopLineStyle = crLSSingleLine.Width = 3000End With' Set the report source of the viewer and view the report.CRViewer1.ReportSource = oReportCRViewer1.ViewReportEnd SubSo, i would like to do the same thingswith winbatch language. I tried this code :;Get CrystalRuntime Application Object HandleobjCra = ObjectCreate("CrystalRuntime.Application");Logs on to on or more SQL servers or ODBC data sources.objCra.LogOnServer("Crdb_odbc.dll","Magic","xxx","xx","zzzz") ; ("DLL file", "Server", "dbname", "username", "password"); open the saved reportobjReport = objCra.OpenReport("C:\Download\Perso\Programmation\Winbatch\Crystal Report\Final\rapport exploitation - abend.rpt")objReport.DiscardSavedData()TxtObj = objReport.Sections("PHb").ReportObjects("Text11")txtObj.Text = "testing" ; *** Error on this line : 1266: Ole:Bad Param Count;Export htmlPathHTML = strcat("C:\Download\Perso\Programmation\Winbatch\Crystal Report\Final\Resultat\rapport exploitation - abend.htm")hfile = PathHTMLcre = crr.ExportOptionscre.DestinationType = 1 ; diskfilecre.FormatType = 32 ; 24 = (HTML 3.2 standard), 31 = (PDF), 32 = (HTML4.0) cre.HTMLFileName = hfilecrr.Export(BOOL:@false)objectclose(cre)objectclose(objReport)objectclose(objCra)exit--
Everythings work good except this linetxtObj.Text = "testing" I receive this error :1266: Ole:Bad Param CountI may be don't have the nice recipe. If you have a solution, it is welcome.Post Author: KAM
CA Forum: Other
Try using SetText. Thanks. -
How to send a text message to a group of people and save the list for next time?
how to send a text message to a group of people and save the list for next time from an iphone 4s?
Hey there ipremacha,
It sounds like you need to enable Text Message Forwarding on your iPhone for your iPad to send MMS/SMS messages through your phone.
Connect your iPhone, iPad, iPod touch, and Mac using Continuity
Go to Messages > Text Message Forwarding, and enable the device(s) you would like to forward messages to.
Your Mac, iPad, or iPod touch will display a code. Enter this code on your iPhone to verify the SMS feature.
Thank you for using Apple Support Communities.
Regards,
Sterling -
How to create a text object at runtime?
Hi,
I am using crystal reports for visual studio 2010 and using c# to programming.
I need to create a text object in a specific section like section 2. and also I need to control the text object's position and text.
I tried to move a object like:
reportDocument1.ReportDefinition.Sections[j].ReportObjects<i>.Left = 0x8760;
but object's position doesn't change at all.
How can I do these (create a text object and change a object postion)?
ThanksHi Don,
Thank you.
I have downloaded a RAS ( report application Server ) sample.
The sample uses the Business Objects Enterprise XI release 2. I am using win 7 and crystal reports for vs2010. Can I use this version of crystal reports to create a text object at runtime? If not, what is the lowest version I have to purchase to achieve what I want?
Basicly I need following capabilities at runtime:
1) craete text objects, line objects, image objects.
2) change text object, line object and image object positions, sizes, values of text object. If can I like to be able to change font as well.
3) supress objects, sections.
4) change section's height -
How to convert a "text variable" to String with plugin
Hello,
I am currently developing a InDesign (CS5) plugin, where I need to manipulate text variable.
From the plugin I want to convert the "text variable" to string (in principle I should use the method "VariableToString (..)" of "ITextVariable")"
My problem is, how to find the text varial from its name (I think I should use the method "FindLocationsUsed(..)" of "ITextVariableSuite") and then convert it to String
I don't know how to use interfaces ITextVariable and ITextVariableSuite
Plugin implemented in C++ language
thank youInputStreamReader in=new InputStreamReader(fis);
StringWriter out=new StringWriter();
char[] buffer=new char[8192];
int sizeRead;
while ( ( sizeRead=in.read(buffer, 0, 8192) ) != -1 )
out.write(buffer, 0, sizeRead);
String content=out.toString(); -
How to convert the TEXT file into an XML using plsql code
Hi all ,
I need to convert an TEXT file into an XML file how can i do it
Below is my sample TEXT file .
TDETL00000000020000000000000120131021115854ST2225SKU77598059 0023-000000010000
I want the above to be converted into the below format
<?xml version="1.0" encoding="UTF-8"?>
<txt2xml>
<!-- Processor splits text into lines -->
<processor type="RegexDelimited">
<regex>\n</regex>
<!--
This is used to specify that a message should be created per line in
the incoming file;
NOTE: this was designed to work with all the processors, however it
only works correctly with 'RegexDelimited' processors (check the
enclosing top processor type)
-->
<maxIterationsPerMsg>1</maxIterationsPerMsg>
<!-- For lines beginning with FHEAD (File Header) -->
<processor type="RegexMatch">
<element>FHEAD</element>
<regex>^FHEAD(.*)</regex>
<processor type="RegexMatch">
<element>OriginalLine</element>
<regex>(.*)</regex>
<consumeMatchedChars>false</consumeMatchedChars>
</processor>
<processor type="RegexMatch">
<element>LineSeq,Type,Date</element>
<regex>^(\d{10})(\w{4})(\d{14})$</regex>
</processor>
</processor>
<!-- For lines beginning with TDETL (Transaction Details) -->
<processor type="RegexMatch">
<element>TDETL</element>
<regex>^TDETL(.*)</regex>
<processor type="RegexMatch">
<element>OriginalLine</element>
<regex>(.*)</regex>
<consumeMatchedChars>false</consumeMatchedChars>
</processor>
<processor type="RegexMatch">
<element>LineSeq,TransControlNumber,TransDate,LocationType,Location,ItemType,Item,UPCSupplement,InventoryStatus,AdjustReason,AdjustSign,AdjustQty</element>
<regex>^(\d{10})(\d{14})(\d{14})(\w{2})(\d{4})(\w{3})([\w ]{13})([\w ]{5})(\d{2})(\d{2})([+-]{1})(\d{12})$</regex>
</processor>
</processor>
<!-- For lines beginning with FTAIL (File Tail) -->
<processor type="RegexMatch">
<element>FTAIL</element>
<regex>^FTAIL(.*)</regex>
<processor type="RegexMatch">
<element>OriginalLine</element>
<regex>(.*)</regex>
<consumeMatchedChars>false</consumeMatchedChars>
</processor>
<processor type="RegexMatch">
<element>LineSeq,TransCount</element>
<regex>^(\d{10})(\d{6})$</regex>
</processor>
</processor>
</processor>
</txt2xml>
ThanksSorry, that doesn't make much sense.
The XML you gave is a configuration file for txt2xml utility. It doesn't represent the output format.
Are you a user of this utility? -
[b]How to convert a Socket object in a C socket file descriptor[/b]
Hi all,
I need to make a getsockopt() call using JNI, but I don't know how to convert a Java Socket object in the integer corresponding to the socket file descriptor.
Thank you in advance!
FernandoI was wrong in my previous post. FileDescriptor is used for PlainSocketImpl. This means I can give you a solution.
The solution does involve rebuilding some built-in Java classes to make certain fields accessible.
You have to modify access to three classes:
1. You can either use my SocketGetImpl or just rebuild java.net.Socket and change from
SocketImpl getImpl() throws SocketException {
to
public SocketImpl getImpl() throws SocketException {
2. In java.net.SocketImpl change from
protected FileDescriptor getFileDescriptor() {
to
public FileDescriptor getFileDescriptor() {
3. In java.io.FileDescriptor I would add the method
public int getFd(){ return fd; }
Then my test program becomes:
package myhack;
import java.io.*;
import java.net.*;
public class DoSock {
public static void main(String args[]) throws Exception{
Socket s= new Socket("mywebserver",80);
System.out.println("s="+s);
SocketImpl si = SocketGetImpl.getImpl(s);
System.out.println("si="+si);
FileDescriptor fd = si.getFileDescriptor();
System.out.println("fd="+fd);
System.out.println("fd int="+fd.getFd());
}And you still have to invoke as:
java -Xbootclasspath/p:. myhack.DoSock
or boot path pointing at jar file, etc. -
How to work with text objects in b2b frontend
Hi,
My functional team has assigned new text ids "0012","Z005" and "Z025" in text object "CRM_ORDERH"
and text procedure "ZORDER02".
Now they want me to add five new text input fields to b2b order creation page and they want the data entered by customer to be saved under these text ids.
Suppose there are five fields A,B,C,D and E.Now they want me to send the contents of A under "0012"
and concatenation of rest of four fields to "Z005" and "Z025".
I have no clues what all I need to do.Can anyone please let me know what all I need to write and how to get this requirement done.
Thanks in advanceHi Laxman,
Thanks for the quick turn around.
I dont get it in the get_head method. I am doing a crm_order_read and reading the output text table.
It has two text ids instead of three which i updated in change_head method.
I checked in debugging in the text_maintIn_ow function module and
i saw that this text id was failing to get updated , the message "Z* text id not maintained in procedure Z100001'. This procedure is assigned to TA and the text id id not assigned to TA. The process type is still TA the first time CRM_ORDER_MAINTAIN is called along with these extension updates. So the text maintain function gets the control data for TA and not for the ZPRO process type.
I have all the text ids maintained for process type ZPRO.
Here is the code when the user selects the process type ZPRO in ISA from the basket page.
And in our case we dont have any payment method page in ISA after this selection.
Code:
Change_head
READ TABLE ct_orderadm_h INTO ls_orderadm_h INDEX 1.
CHECK sy-subrc = 0. " and ls_orderadm_h-process_type = 'ZPRO'.
LOOP AT it_extension INTO ls_extension WHERE ref_guid EQ ls_orderadm_h-guid.
CASE ls_extension-name.
* Comments
WHEN 'ZCOMMENTS' OR 'ZPUR_EMAIL' OR 'ZCC_EMAIL'.
CALL METHOD fill_text
EXPORTING
iv_language = lv_language
is_orderadm_h = ls_orderadm_h
is_extension = ls_extension
CHANGING
ct_text = ct_text
ct_input_fields = ct_input_fields.
ENDCASE.
ENDLOOP.
** get_head_get_data*
APPEND is_basket_head-guid TO lt_header_guid.
ls_req_obj = 'ORDERADM_H'.
INSERT ls_req_obj INTO TABLE lt_req_obj.
ls_req_obj = 'PARTNER'.
INSERT ls_req_obj INTO TABLE lt_req_obj.
ls_req_obj = 'TEXTS'.
INSERT ls_req_obj INTO TABLE lt_req_obj.
ls_req_obj = 'STATUS'.
INSERT ls_req_obj INTO TABLE lt_req_obj.
CALL FUNCTION 'CRM_ORDER_READ'
EXPORTING
it_header_guid = lt_header_guid
iv_only_spec_items = 'X'
it_requested_objects = lt_req_obj
IMPORTING
et_orderadm_h = lt_orderadm_h
* et_customer_h = lt_customer_h
et_partner = lt_partner
et_text = lt_text
* et_sales = lt_sales
et_status = lt_status
EXCEPTIONS
OTHERS = 99.
IF sy-subrc <> 0.
ENDIF.
* check
READ TABLE lt_orderadm_h INTO ls_orderadm_h INDEX 1.
CHECK sy-subrc = 0 . "AND ls_orderadm_h-process_type = 'ZPRO'.
ls_ext-ref_guid = ls_orderadm_h-guid.
ls_ext-ref_type = 'A'.
* TEXTS
LOOP AT lt_text INTO ls_text WHERE stxh-tdobject EQ 'CRM_ORDERH'.
CALL FUNCTION 'CONVERT_ITF_TO_STREAM_TEXT'
EXPORTING
lf = ' '
TABLES
itf_text = ls_text-lines[]
text_stream = lt_text_stream.
CASE ls_text-stxh-tdid.
WHEN 'Z003'.
ls_ext-name = 'ZCOMMENTS'.
WHEN 'ZEML'.
ls_ext-name = 'ZPUR_EMAIL'.
WHEN 'ZECC'.
ls_ext-name = 'ZCC_EMAIL'.
WHEN OTHERS.
CONTINUE.
ENDCASE.
READ TABLE lt_text_stream INTO ls_ext-value INDEX 1.
APPEND ls_ext TO ct_extension.
ENDLOOP.
Edited by: sri226 on May 9, 2009 6:05 PM
Edited by: sri226 on May 9, 2009 6:12 PM
Edited by: sri226 on May 9, 2009 6:12 PM
Edited by: sri226 on May 9, 2009 6:13 PM -
How to convert a Image object to byte Array?
Who can tell me, how to convert Image object to byte Array?
Example:
public byte[] convertImage(Image img) {
byte[] b = new byte...........
return b;Hello,
any way would suit me, I just need a way to convert Image or BufferedImage to a byte[], so that I can save them. Actually I need to save both jpg and gif files without using any 3rd party classes. Please help me out.
thanx and best wishes -
How to convert CSV/Text files to XML format
Hi,
I am trying to convert a .csv/.txt(Flat) file(s) to XML format. How can i achive this?
Ex: I want to convert this text file to XML.
Book# first name last name ID# ID1# F#
B99 FRISBY NASIER LUCJ A A 3127 1
B131 HAWKINS MICHAEL LUCJ A A 3129 2
B313 KING JOSHUA CUCJ I I-DORM 10
B307 GRAVES KIMBERLY NUCJ F F-DORM 24-FL
R469 HEATH DARRELL SUCJ A A 3132 1
R212 PEREZ DARRELL SUCJ A A 3133 2
R62 COFFEY GREGORY NUCJ HC H C 3112 3FLOOR
R215 BLACKWELL DEREK LUCJ OOW W 01 1 Could anyone please suggest me if we have any open source java api to acheive this?
Thanks,
Srikanth.Have a look at [http://servingxml.sourceforge.net/|http://servingxml.sourceforge.net/] or [http://www.talend.com/|http://www.talend.com/]
-
How to convert a text file in lower case to upper case?
I've a beginner in java world and I just come through the tutorial in http://java.sun.com/docs/books/tutorial/essential/io/filestreams.html showing how to copy a text file:
import java.io.*;
public class Copy {
public static void main(String[] args) throws IOException {
File inputFile = new File("farrago.txt");
File outputFile = new File("outagain.txt");
FileReader in = new FileReader(inputFile);
FileWriter out = new FileWriter(outputFile);
int c;
while ((c = in.read()) != -1)
out.write(c);
in.close();
out.close();
And I would like to ask how to covert all lower case letters in input file to upper case letter in output file at the same time of copying.
I guess it'll be using Character.toUpperCase(c), but I don't know how to do it actually.
Any help would be much appreciated.Hope this helps
import java.io.*;
public class Copy {
public static void main(String[] args) throws IOException {
File inputFile = new File("farrago.txt");
File outputFile = new File("outagain.txt");
FileReader in = new FileReader(inputFile);
FileWriter out = new FileWriter(outputFile);
BufferedReader buff = new BufferedReader(in);
String c;
while ((c = buff.readLine()) != null)
out.write(c.toUpperCase());
in.close();
out.close();
} -
Do you know how to change the Text Object for Billing Document?
Hi,
If you execute Transaction VOTX or VOTXn it will take you to Text Determination. The Billing Doc & Sales Document both has the VBBK as Text Object for me and is it like that for all.
I need to change the Text Object to VBRK for Billing Doc, which is the ideal because I am using the Function Module READ_TEXT to retrieve text. This work perfectly for Sales Document which has VBBK as Text Object, but does not work for Billing Doc where it through as error message saying Text 0020000021 ID 0002 language EN not found.
Thank You
KishanHi kishan,
For updating these text you can use FM 'SAVE_TEXT'.
As for your problem, to get the parameter you need, go to the billing document, go to the text, and display it in plain page mode.
Then you do 'GO TO' -> 'HEADER', and a pop-up window open with the parameters you need Obect type, ID, Name, ...
Regards,
Erwan. -
How to convert the text field into currency field
Hi,
I have an requirement to converting the text field into currency.
If I convert directly it gives dump.
If I convert this to Numeric means it takes the decimals also as whole value.
Is there any FM to convert the text field into Currency field.
Please advice me.
Thanks in advance.Hi,
I am on an SRM sytem, which unfortunately does not have th FM: PSSV_TEXT_INTO_FIELD_CURRENCY.
But I also need to transfer a string value like '12,99' to a field with type curr.
Can i Do that manually, or is there another FM?
I have already checked code with write to or pack/unpack.
But without success yet.
Something like this:
DATA: g_str(11) type c.
DATA: g_p type p.
WRITE '12,99' TO g_str CURRENCY 'EUR'.
is no use for me. Finally I need to move g_str to my curr-field, which causes st22.
also: PACK g_str to <curr-field or g_p> dumps.
Help appreciated.
regards, matthias -
How to convert a Graphics object into a JPG image?
I have this simple question about how to make a Graphics object into a JPG file...
I just need the names of the classes or the packages ... I'll figure out the rest of the details...
Thanks...Anyway this might come in handy
JPEGUtils.java
============
* Created on Jun 22, 2005 by @author Tom Jacobs
package tjacobs.jpeg;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.awt.image.RenderedImage;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.imageio.ImageIO;
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGEncodeParam;
import com.sun.image.codec.jpeg.JPEGImageDecoder;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
* Utilities for saving JPEGs and GIFs
public class JPEGUtils {
private JPEGUtils() {
super();
public static void saveJPEG(BufferedImage thumbImage, File file, double compression) throws IOException {
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(file));
saveJPEG(thumbImage, out, compression);
out.flush();
out.close();
public static void saveJPEG(BufferedImage thumbImage, OutputStream out, double compression) throws IOException {
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(thumbImage);
compression = Math.max(0, Math.min(compression, 100));
param.setQuality((float)compression / 100.0f, false);
encoder.setJPEGEncodeParam(param);
encoder.encode(thumbImage);
public static BufferedImage getJPEG(InputStream in) throws IOException {
try {
JPEGImageDecoder decode = JPEGCodec.createJPEGDecoder(in);
BufferedImage im = decode.decodeAsBufferedImage();
return im;
} finally {
in.close();
public static BufferedImage getJPEG(File f) throws IOException {
InputStream in = new BufferedInputStream(new FileInputStream(f));
return getJPEG(in);
public static void saveGif(RenderedImage image, File f) throws IOException {
saveGif(image, new FileOutputStream(f));
public static void saveGif(RenderedImage image, OutputStream out) throws IOException {
// Last time I checked, the J2SE 1.4.2 shipped with readers for gif, jpeg and png, but writers only for jpeg and png. If you haven't downloaded the whole JAI, and you want a writer for gif (as well as readers and writers for several other formats) download:
// http://java.sun.com/products/java-media/jai/downloads/download-iio.html
ImageIO.write(image, "gif", out);
public static void main(String[] args) {
// TODO Auto-generated method stub
} -
Scaling text objects as a group
Hi
I'm on mac.
I'm working on a document created by another designer.
The main logo has been created as a number of text letter objects, which I want to group together and scale proportionally.
How do I do this?
I've tried selecting the text objects and using the cmd < arrow and also the cmd + shift keys, but these don't work??
Appreciate,
Clarehi clare
you can select all object then grouping by cmd+G and drag that side of object point using shift.
wish it help you
Maybe you are looking for
-
Unable to send emails from any Apple devices
Since BT made the changes to Yahoo mail i have had problems with sending emails from my ipad and iphone (IOS8). The only way that i can successfully send an email is to log onto my laptop and send from a windows platform. I have checked all of the se
-
Why do iPhoto slideshows have such low resolution?
I have used iPhoto to make slideshows. When you preview the slideshow the resolution is great, but when you actually create the slideshow the images are really low res. Why? iDvd does the same thing, what is up? Does version 6 have better res on slid
-
I can't update my itunes software. I get an error.
I can't update my
-
How to use ActiveX to open/write to Excel template but not to overwrite it
Hi there again (it's me...if anyone recognised me...) I managed to use ActiveX to open Excel and make it visible onto the screen. But I would like to know how can I make Excel open an Excel template and let me write data to the cells without overwrit
-
Mail application is deleted how can I reinstall it?
The mail aplication is no longer visible on the icon bar and is not in the applications folder in the finder menu. Uner preferences it says that 'mail' was ininstalled or disabled so I was wondering how to reinstall it?