Jump to content

Space Above Field


daniel

Recommended Posts

Sure, you can get the "space before paragraph", aka "lead before paragraph" value from a data field if you want, something like this:

return '<p leadbefore="' + Int(Field("SpaceAbove")) + '">';

Where the value specifies hundredths of points (of which there are 7200 per inch). If the field value is in inches, you can do this:

return '<p leadbefore="' + (Int(Field("SpaceAbove")) * 7200) + '">';

Link to comment
Share on other sites

thanks for the quick reply! On second thought how can I just add padding defined by pts or pixels to a text frame so that the first text inputed by the user will start in a different position? Or is that way you gave me the best way to define starting position of the text?
Link to comment
Share on other sites

thanks for the quick reply! On second thought how can I just add padding defined by pts or pixels to a text frame so that the first text inputed by the user will start in a different position? Or is that way you gave me the best way to define starting position of the text?

You mean it's just a static value, not a "user input" value as in your original question? That's easy. In the Text Editor, with the cursor in the first paragraph, you can click Paragraph, then in the Paragraph Formatting dialog, set the "Space above" value. Or, in the Text Frame Properties palette, set the "Text Inset Y" (the box right above "Overflow"). Or, even simpler, just move the whole text box down a bit on the page to where you really want the text to start.

 

By the way, with a few exceptions (such as JPEG output), FusionPro always deals in physical sizes such as points, never in logical sizes such as pixels. You're generally composing output that's going to have a specific page size for printing.

Link to comment
Share on other sites

I think Text Inset is something I'm looking for except I want the user to be able input the number to set the Text Inset. Is that something I can assign to a field?

No. When you said, "On second thought how can I just add padding defined by pts or pixels to a text frame so that the first text inputed by the user will start in a different position?" I thought you were asking about setting a static inset value. If you want the value to come from a data field, then you should use the solution from my earlier post. Other options I can think of include: setting an empty line of text with fixed leading, setting fixed leading on the line containing your data field, and outputting a table with a single empty cell with a specified height. But none of those are any easier than what I suggested before (using a <p leadbefore=***> tag).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...