How to Create a text frame?
Hai
i'm senthil....
i'm just now started working with Adobe Indesign plugin's..
Can anyone tell me how to create a text frame...
wat r the steps for creating a text frame?
what are the Interface pointers used for creating a text frame...
plzz reply me who knows...
bye.
See SDKLayoutHelper::CreateTextFrame.
You can also look at SnpCreateFrame::CreateTextFrame in SnippetRunner.
Regards,
Narayan
Similar Messages
-
Hello all! I've been working from the FM book for almost 2 hrs trying to figure this out, so now I need your help. I am almost to this point:
Problem I: Importing a graphic
First of all, which is the best way?
-Insert an anchor frame and then import the graphic into the frame OR
-Just insert the graphic and get the anchor frame by default
Here’s my importing and sizing problem:
I hit ENTER to make a new paragraph line (side note: the book says make a new paragraph by hitting ENTER, import the graphic, and then ESC m+p to shrink wrap so that you can avoid the graphic overlapping the above text. I do exactly this (I believe), but my graphic still overlaps the above text when I shrink wrap. What the...?)
I insert an anchored frame with position Below Current Line and alignment CENTER (I chose to the insert anchor frame, since this way I have control over its alignment, correct?)
Anchor frame is selected when I import my image file
In the Imported Graphic Scaling box, what do I select if my file is HUGE (3072x2304)?
-Fit in selected rectangle (when I choose this the image imports small and fits in the anchored frame with lots of white space around it)
-72 dpi
-75 dpi
-150 dpi
-300 dpi
-Custom dpi: 96 (I’ve tried changing this to a smaller number (20) and I get a message that says “cannot handle a bitmap of that size.”)
I’ve had the best luck with selecting FIT IN SELECTED RECTANGLE, and then I just scale the image with my shift+click. If I choose 72 dpi or Custom, my image imports HUGE, and I just can’t manage it. I don’t have a method for resizing these images outside of FM.
Problem II: Creating a text frame for a caption
Once I have chosen FIT IN SELECTED RECTANGLE, I try to insert a text box underneath the image (and inside the anchor frame) to type a caption in it.
In Create New Text Frame box, the default is Number 1 and Gap 0.25. I click SET.
Next, I double-click inside the text frame to begin typing, but the cursor is OUTSIDE and UNDERNEATH the text frame! What the heck??? I’ve done this before and it has worked just fine. Then I had another problem where when I did get the text inside the text frame, I would select the text frame to move it, and it left the text behind! (I moved the frame but the text was separated from it and left behind.)
THANK YOU in advance for your help. I hope I wrote this out clearly enough. I appreciate those who respond. P.S. I'm in FM 10.My favorite method is to use a one-cell table for graphics and captions.
Import the graphic by reference into the table cell. Create a "Caption"
paragraph tag and assign it to the table title. (The title can be set
for above or below the table cell. I prefer below.) Now, whenever you
insert this table, it will be ready for graphic and caption. Another
advantage of this method is that graphic and caption always stay
together at page/column breaks.
When you create the table format above, assign it to have a -2.0 space
above. Then, create a paragraph tag, such as "TableAnchor" and assign it
-2.0 pt font size and -2.0 space below. (You can substitute a different
point size, but it must be the same in all three places. The TableAnchor
paragraph will hold the table and these settings let tables fit against
the top margin where necessary. Otherwise, they dip down a bit.
I wrote this from memory, so I hope I remembered all the steps! -
Creating Scrollable text frames in InDesign
I've been trying to create scrollable text frames in InDesign CS6 and, for the life of me, cannot figure out how to do so for an interactive PDF.
I've done so for touchscreen devices before through DPS and the scrollable frame option, but I've never tried to do it for something non-touchscreen/mobile. I don't even know if it's possible, but I am sending this to someone who may not have touchscreen access with touchscreen scroll functionality and I wouldn't want to risk a good portion of text to go unread because of a lack-of functionality.
So, I guess my question is: Is there a way to create a scrollable text field for an interactive PDF that could be scrolled through using a mouse or keyboard?
Thanks in advance!No. It's DPS only.
-
Each time I create a Text Frame it appears colored with black?
Every time I create a Text Frame with the Type tool in InDesing CS5.5 in a document named "02_End.indd", (this happen only for this file) the it appears filled with black color. On the other documents this does not happen (the text frames are with no fill).
Can anyone tell me how can I change the default color of the Text frames?
Please help me?Make sure you don't have anything selected. Then look in the swatches palette. If you see the default fill is black, set it to [None].
If not, it may be your default object style, or possibly a document corruption -- if you suspect the latter, you could try to Remove Document Corruption as per the instructions at the top of this forum. -
How to find associated text frame with XML element?
Hello experts, I am new to InDesign CS SDK and have a question.
I am building an Extension to import an XML document into an InDesign template. As the content in XML can be unpredictable, in the Extension, I want to loop through all the XML elements and make sure it has associated text frames, and if it doesn't, I want to create a text frame and set the content to the text frame.
I think I figured out how to create a new text frame in page and set the content in the frame, but I am having difficulty finding an associated text frame for an XML element.
If anyone has a sample code finding a text frame for an XML element, I appriciate it. Or if anyone can tell me what document I need to look, it will be great too.
Thanks,Here's a code snipet with null checks removed:
UID MyClassName::GetFrameForXMLElement(IIDXMLElement* inXMLElement)
InterfacePtr< ITextModel > textModel( Utils< IXMLUtils >()->QueryTextModel( inXMLElement ) );
InterfacePtr< IFrameList > frameList( textModel->QueryFrameList() );
UID aFrameUID = frameList->GetNthFrameUID( 0 );
return aFrameUID; -
How to create a text file or XML file and add content through code into it...
Hi Everyone,
How to create a text file and add content through the code to the text file eform javascript ......orelse can we create a text file in life cycle designer...
Else say how to create a new XML file through the code and how some content like Example "Hello World".You can create a text file as a file attachment (data object) using the doc.createDataObject and doc.setDataObjectContents:
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.450.html
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.528.html
You can then export the file with the doc.exportDataObject method:
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.463.html
This won't work with Reader if it hasn't been given the file attachment usage right with LiveCycle Reader Extensions. -
How to create a text box in ascreen painter?
HI friends can anyone tell me how to create a text box in a screen painter?
And attachment BROWSER like what we attach for any documents in over mail.
Example when we click on browser the path of the computer has to be opened and by giving the document name attach and the document will be attached. Please tell me the procedure....
ThksTo get the best answers, I think you probably need to break down your post into several different one with a separate question in each, along with the business problem you are trying to solve... but here's a few pointers for you to research...
Textbox - there's plenty of info in SDN on creating a custom control with a textbox e.g. Re: Text Editor on modulepool Screen and sample code in SAP too.
Attachments - If this is for an email, then GUI_UPLOAD might help and the BCS class is the newer way to send messages... check out Re: Offline Approval: RBBP_NOTIFICATION_OFFAPP Vs RSWUWFMLEC for example... if this is an attachment for an SAP object such as an FI Document or Purchase Order, then the Generic Object Services (GOS) could be what you want e.g. https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3
Jonathan -
How to create a text item dynamically
Greetings to All Expert,
Could anyone please tell me how i create a text item with code.The scenario is like this....
Suppose there is a text item corresponding to department_id=10 and i dont know how many employees r there in this department.Now if the query returns 10 employee then how do i display these 10 employees name.....it may be 20 employees also...i dont know the actual number before executing the query..
Regards,
Wel
Edited by: 787312 on Aug 15, 2010 1:03 AM
Edited by: 787312 on Aug 15, 2010 4:19 AMHi,
You can create two blocks for this. One is an unbound block which consist of a text box with a command button. Other block is a bound block from your table(multiple rows block). In hierarchical, unbound block should above above bound block, which makes the focus control goes first to the text box. When the user type the dept code and click on the button it goes to bound block and execute the query.
you can write code in the command block as below
set_block_property('<boundblockname>',default_where,'deptno = '||:ti_DEPTNO);
go_block('<boundblockname>');
execute_query;Best Regards
MP -
Hi Experts...
Can you please explain me how to create a Text variable...
In my Cube i had 3 different date fields....
and as per my requirment i need to create a rolling report for which will display data for 6 months rolling.
As the date field which i need to use is not mapped to Time Char's (Cal Year,Cal Month...etc)
For that reason i created below customer exit variable and used offset variables to achieve the rolling 6 months report
Code used for Customer Exit VAriable:
WHEN 'ZC_Cmonth1'. " Current Cal Month Car Expiry
IF i_step = 2.
CLEAR l_s_range.
determine date
LV_SYDAT = SY-DATUM.
LV_YEAR_ACT = SY-DATUM+0(4).
LV_MONTH_ACT = SY-DATUM+4(2).
Set begin date of intervall
CONCATENATE LV_YEAR_ACT LV_MONTH_ACT '01' INTO LV_DATE_LOW.
Set end date of intervall
CONCATENATE LV_YEAR_ACT LV_MONTH_ACT '31' INTO LV_DATE_HIGH.
Fill ranges-tab with: include all values between beginning of year
and actual date
CLEAR E_T_RANGE.
CLEAR L_S_RANGE.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
L_S_RANGE-LOW = LV_DATE_LOW.
L_S_RANGE-HIGH = LV_DATE_HIGH.
APPEND L_S_RANGE TO E_T_RANGE.
ENDIF.
Now i need to create TEXT VARIABLE that will display the Month Name in the column name
Please update in detail step how to create a Text VariableIn your specific requirement select the which ever the keyfigure you want to analyse, go to edit mode of keyfigure propeties there select the newvariable type and create the Text variable by maintaining the proper offset start and length and also maintain the in whcih format u want see the month name in column headers. Maintain the Text format or key format. it totally depends on u r requirement.
Hope it will help ful for u.
Bye,
Chandu. -
Wondering how to create a text box with variables...
Hi everyone,
I was wondering how to create a text box, that at the beginning of the presentation, the audience fills in regarding what they think constitutes the role they have been chosen for.
I would like that same box to then appear at the end of the presentation, with the text they typed in at the beginning, so they can reflect on what they think now, and what they thought then. I understand this is done using variables, but i'm not 100% sure.
I hope I've worded this okay!This screenshot shows the properties panel, Style tab for the TEB. I relabeled it to My_TEB, used the X button to create a user variable v_choice that will replace the generic Text_Entry_Box_1/
This is the properties panel of a Shape, I went in Edit mode (double clicking)to make the Character section appear, where you find the X button. It opens the dialog box 'Insert Variable' and you can choose the var associated with the TEB. The Maximum Length will define how many characters will be displayed, the value of a variable has maximum 256 characters. -
How to Create header text in Quotations?
Helli Experts,
Can anybody of you tell me how to create Header text for Quotations in SD?
I want to fetch it into Layout Set. I want to hardcode it.
HarishHi,
Use the SAVE_TEXT and READ_TEXT Function module to create a header text through program.
Prabhudas -
I started a new two page, two column document and added all the text id multiple text frames in both columns on p.1. When I try to create a text frame on p.2, I only can get the cursor in the upper left corner of p.w in the margin, not in the defined area of the document.
Can anyone please give me a suggestion as to what I'm doing wrong?
Thanks!
LarryEvery document uses a master page, even if you don't choose to add new objects to it. The default master page will have a text frame or frames fitting the defined columns structure if you check off the "Master Text Frame" box in the document setup dialog.
It doesn't really sound like this is what is happening, though, in your particular case. A master frame would need to be overridden to interfere with creating a new frame on a document page. What it does sound like, though, is that you drew a frame to hold a background image or something similar that is filling the entire page area, but didn't actually put anything into that frame before trying to add your new text frame.
By default, clicking with the text tool in any empty frame or shape converts it to a text frame. If you understand this behavior you learn to work with it pretty quickly, or you can change the setting in your preferences if you find it annoying. -
Auto create threaded text frames
Pardon me if this solution has already been covered.
I am seeking a solution for auto creating several text frames on a single page. I have an excel/text file which contains the item numbers and prices, there are approximately 50-100 items per page. I would like to use data merge or some resource to import the file while placing each field in its own text frame for repositioning according to images. I played around with the data merge but it created 150 pages each with one text frame.
Thanks for any ideas.If it can be done with InDesign, then almost without exception, it can be scripted. The exceptions are few and far between: off the top of my head, a script can't control the preference to allow attached scripts -- the preference would be pointless if it could.
There are also things that can be done in a script that can't be done (as opposed to "would be very onerous to do") in the UI. For example, see this:
http://indesignsecrets.com/easily-add-captions-to-graphics-frames.php
For more info, check out the InDesign Scripting page on Adobe.com. You might also look at my blog here:
http://jsid.blogspot.com
Also, Pete Kahrel has an O'Reilly eBook that is a very good introduction.
Dave -
How to access the Text Frame, when we use scrollable frame,
Hi Friends,
How to access the Text Frame, when we use scrollable frame,
Thank you,
[ Nav ]That's the same question:
how can I access something (a page item) on a page…
Answer: you need something unique in that object you can get a handle on.
Or you use the selection a user of your script is doing and work with that selection…
A "scrollable frame" is nothing special. What it makes it a "scrollable frame" is the DPS software.
So you have to look for attached labels on the object, that identify the object for the PDS plug-in "Overlay Creator" as a "scrollable frame". That's possible with the "extractLabel("KeyString")" function. But you need to know the appropriate key-string in advance.
In another of your thread in the DPS forum, I basically answered the question how to obtain those key-strings.
When knowing the key-string you could loop through all your page items (you can skip all text frames) in the allPageItems-collection, to identify the "scrollable frame" by extracting the right label.
If you have more than one "scollable frames" you need a second unique identifier for the particular object.
That could be nearly any property.
Keep in mind, there is no "scrollableFrames" collection in the DOM !
Uwe -
How can I simply create a text frame with perfect rounded ends?
I'm recreating a new edition of a book that was originally created in Quark. It uses round-ended text frames. When using the simplest method of corner options, the ends aren't proper semicircles, even though the radius is set to half the height of the frame.
The other problem is that I can't reduce the width sufficiently to make it look balanced. I use the direct selection tool to close in the right-hand end, so that I don't distort the shape. There's no right indent for the paragraph, but as I reduce the width the text breaks into two lines, even though I've greater space after the text than the left indent. My best solution was to create the shape in Illustrator and copy and paste into InDesign, assign text content, centre thte text vertically, use 3mm left indent. I still couldn't pull the right-hand end in tight enough. So I had to resort to making a group of the lozenge shape with a normal rectangular text frame on top.
Does anyone know why these problems occur, and can Adobe improve the corner option?One last refinement: It's convenient if the script allows you to Undo/Redo its actions -- let me add that for completeness' sake. The following is the complete script again, no further editing required.
//DESCRIPTION:Overlay round corners on a single textframe
// A Jongware Script 2-Apr-2012
app.doScript(function(textframe){
if (textframe instanceof Group && textframe.pageItems.length == 2)
roundedRect = app.selection[0].polygons[0];
textframe = app.selection[0].textFrames[0];
textframe.properties = {strokeWeight:roundedRect.strokeWeight,strokeTint:roundedRect.strokeTint,strokeColor:roundedRect.strokeColor};
roundedRect.remove();
app.selection[0].ungroup();
left = textframe.geometricBounds[1];
right = textframe.geometricBounds[3];
height = textframe.geometricBounds[2] - textframe.geometricBounds[0];
center = (textframe.geometricBounds[2] + textframe.geometricBounds[0])/2;
radius = height/2;
leftRounded = textframe.parent.ovals.add({geometricBounds:[center-radius,left-radius,center+radius,left+radius]});
riteRounded = textframe.parent.ovals.add({geometricBounds:[center-radius,right-radius,center+radius,right+radius]});
rectBetween = textframe.parent.rectangles.add({geometricBounds:[center-radius,left,center+radius,right]});
roundedRect = rectBetween.addPath([leftRounded,riteRounded]);
roundedRect.properties = {strokeWeight:textframe.strokeWeight,strokeTint:textframe.strokeTint,strokeColor:textframe.strokeColor};
textframe.properties = {strokeWeight:0};
app.select(textframe.parent.groups.add([roundedRect,textframe]));
}, ScriptLanguage.JAVASCRIPT, app.selection[0], UndoModes.ENTIRE_SCRIPT, "Overlay Round Corners");
Maybe you are looking for
-
New WSUS on Server 2012 - problem with win8 clients
Hi, Two weeks ago we created a new Server 2012 and installed the WSUS role from scratch on it. Its version number is: 6.2.9200.16384. It replaced a Server 2008 WSUS server. After some time all the win7 clients updated and reported as they did on
-
Error message while executing international payroll with schema x000
Dear Team, I am getting the below error message while running international payroll with schema x000. "Jump from DAYPR to detailed log Incorrect generation of wage types" Request forum members to help me on the same. Thank you, Srinivas
-
Application Photo Shop Quit Unexpectedly
I am using a G5, 3GB 2x2.66 GHx Dual Core Intel Xeon with Photoshop CS with 28 GB remaining memory. It has been working fine for yearsbut unexpectedly quit and can not be relaunched. I have original disk, and tried to reinstall, but I continue to get
-
Characterstic is not showing up in Bex.
Hello, I have created a multicube with 4 basic cubes. All basic cubes have fiscal variant as time characterstic. As well, multicube also has fiscal variant in time dimension. However, in the Query designer (Bex), this characterstic is NOT showing up.
-
How to view or list cluster and block size of an ocfs2 filesystem
Hello all... Have read ocfs2 user guide and do not see a way to list block or cluster size of an ocfs2 filesystem and additional properties similar to tune2fs -l. Could someone post a way they have found?