Modify character spacing in a PDF form field - forms

This question was originally posted by esilver but he seemed to answer his own question, which then didn't make any sense. In his post he mentioned 'combing' of which I have found no reference to.
Here is what his question is and my slight amendment is at the bottom:
esilver's question:
"I'm trying to build a web app to programmatically fill out a PDF form. I am going to configure my form first in Adobe Acrobat, then write a Java app with iText to fill out all the form fields via user input from the web. The base form I need to fill out comes from the US government. They created form fields with extremely large kerning (character spacing) values I need to change. However, there appears to be no way to modify this value in the Acrobat UI.
Does anyone know how to manipulate character spacing on form fields in Acrobat 8.0 for Windows? I could try to use iText to programmatically manipulate the kerning of the original document, but this would be much more tedious.
Thanks!"
His answer:
"I believe I figured this out: kerning is called "combing" in acrobat, and each of the form fields have been "combed". The strange thing is this option isn't checked when I view the properties of the form field, but "combing" is the behaviour I was attempting to replicate."
My amendement:
I am using Acrobat Pro 9 to generate this form. Now my question is: Does anyone know how to manipulate character spacing on form fields in Acrobat Pro 9 for Windows?

It sounds like you're referring to comb fields, not kerning. Kerning is adjusting the spacing between characters so that letters like AV can be pushed closer together and still look good.
A comb field is a field where each letter has a specific visible box that it fits into. I believe it's named a comb field because the spacing resembles the teeth of a comb. Comb fields are common on government forms and are used to encourage you to print your answer.
Comb fields don't make a lot of sense for an electronic form, but sometimes the electronc form has to exactly match the print form for legal reasons.
Try loading the form in LiveCycle Designer, which comes with Acrobat. If it's an XFA form (vs an AcroForms form), then you'll be able to edit the kerning in Designer.

Related

Libreoffice impress notes formatting removed from slideshow

I am creating a Libreoffice Impress (powerpoint) set of slides and the one thing I can't figure out is notes formatting. The core issue is that I can format the notes, but when I start the slideshow, all of the formatting is removed and I end up with a difficult to read text blob wherein only newlines are preserved.
Is there any way to carry over the notes formatting into the notes display mode during a slideshow? I've searched for an answer to this and have found nothing so I feel like I'm missing something really simple.
If you're notes are unreadable because line spacing does not carry forward you may want to add spaces between the notes that you want separated, this should make them easier to read.
Notes formatting is useful for printing or exporting as PDF. During the presentation, formatting is not shown. However the font size can be adjusted by using the zoom controls. According to https://wiki.documentfoundation.org/images/8/86/IG4208-SlidesNotesHandouts.pdf:
Notes provide a convenient way to create reminders or add extra
information to slides in a presentation. Notes are not displayed
during a slide show. However, using dual displays, you can display any
notes on the second display as a presentation cue. You can also print
the notes and use them as handouts.
If the notes are unreadable without formatting, then perhaps it would help to enter more newlines. If you have so many notes for one slide that they become a "difficult to read text blob", then maybe you need to simplify the notes.
Also see https://wiki.openoffice.org/wiki/Presenter_Screen.

Non Editable element in TinyMCE (related to Mathjax)

I'm building an extended editor around TinyMCE and I have to implement a Math formula module. I've choosen Mathjax for formula rendering, using plain html/css. So far, I've managed to create a plugin that popup a panel with a textarea, you can enter your latex in, there's a preview in the panel.
Once you validate the formula, it's injected into tinymce content. This new content is A LOT of spans with inlined styles, and OF COURSE, I don't want tinymce to be able to edit that directly. (sidenote: we only store latex, not the rendered html output from mathjax)
Basically, I want that a piece of html inside Tinymce to be ignored totally, but displayed in place. I want my carret to be able to move before that piece of html, and after, but not inside.
The "non editable content" plugin seems to be close of what I'm looking for, but it has some limitation (you can't ADD no editable content on the fly, having nested html content inside an element flagged as "non editable" broke some things, etc.)
Is someone could help with that ? I started to tweak the non editable plugin, but it's really really hard to understand existing code. Has someone already did something like that, or is there another third party plugin ?
thanks

need to style input from a form with css in real time

Ok im struggling to find anything on this as im probably searching the wrong keywords.
I have a backed form thats use to display content on a page. When entering the details i want to be able to use a basic text editor to style the text, like bold, bullets, underline.
On top of that i would also like to allow them to wrap section in paragraph tabs, apply a certain style i.e style id="x".
Its more for backend so it doesnt have to be really user friendly but if there was an uncomplicated way of showing the styles in the form as i apply them, basically a WYSIWYG view. If not i will settle for applying the styles without having to see all the hmtl and css tags in the editor but when the information is passed via the INSERT query it will show pass all the relevant code like My Style and so on.
Now im quite happy to spend the time learning how to do this if you point me in the right direction but i have no idea what keywords to search. Ideally if there is a script out there i can just edit to my needs would be great too rather than starting from scratch.
Finally since im learning php and mysql still keeping it dumbed down will help and also since my values im passing is going to be full of characters the code wont like what functions should i look up to pass the code and content into the database to avoid breaking the code
I'm not entirely sure what you mean, but it seems you can achieve what you want using an editor like for example TinyMCE in combination with JQuery?
With JQuery you can show/hide items and ander your css like
$("p").mouseover(function () {
$(this).css("color","red");
});

Crystal report (or SSRS) flowing text around image

I want to have this layout in Crystal Reports:
How can I do this? If it cant be done in CR or SSRS, is there any other alternatives?
I don't believe this can be done with Crystal Reports. I'm not as familiar with SSRS, but after looking through the field options I don't believe it can be done with it either. In general field locations are set static in reporting solutions.
I think this would be best done with html/css or even XSL. I don't know the scope of the issue, but I'd assume that you should be able to output an html or xml file from your application which could be opened with a web browser. For html you should be able to use the align or even float attributes or text-align in css to accomplish this.
I hope this helps.
If you want to have multiple columns of static text in Crystal Reports, then you'd just have to get creative with multiple text boxes, i.e. create 2 text boxes side-by-side and add text to each one until it looks right.
If you want to have 2 columns of data, here's how:
Keep it simple and start with a blank report.
Add your fields of interest to the details section. Resize them so that they only use the first 4 inches of space.
Go into your Section Expert->Details and turn on the Format with Multiple Columns option.
A new tab will appear called Layout. For this example, let's set the Width to 4 inches and leave the Gaps at 0.
Preview your report. If you have enough data in your dataset, it will automatically flood over to the right side of your screen.
It'll take a few minutes of fidgeting with the measurements to get everything looking the way you want. You can even have more than 2 columns if you set the Detail Width small enough.
Also, there is also an option in the Layout menu called "Format Groups with multiple column". It's hard to describe in text, but play with this if you have any grouping levels.

Text editing best practices (with tags, etc.)

I want to create a text field with some text, that is styled with tags. Think of MS Word, some ext is bold, some is a headline, etc. The tags that style the text are not visible to the user, he just sees the text in bold.
How do I preserve these tags? I mean when I backspace over the closing bold-tag, for example, how do I preserve that and prevent that the rest of the text is now bold until the end?
I guess this is a pretty basic question for experiences programmers. Are there any algorithms or best practices? This problem surely has been solved before, any pointers?
(If this is of any concern, I develop for the iPhone OS and the text field will be a UITextView, but my question is more general I guess.)
Thanks in advance!
Rather than thinking of the styles as open/close tags embedded in the text, think of them in terms of NSRanges and adjust them accordingly.
As of 3.2 you can use NSAttributesString. Even if you roll your own, it is a good reference.
An attribute is applied to a range of characters. When characters are added or removed, the ranges are adjusted accordingly.
Tags are for a flattened format like HTML or RTF. In memory during editing you need complex data structures like DOM or NSAttributedString.